summaryrefslogtreecommitdiff
path: root/gnss-service/src/globals.h
blob: c3b9afdd3eb7abfbd33ae3eda6133288b29fcff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**************************************************************************
* @licence app begin@
*
* SPDX-License-Identifier: MPL-2.0
*
* \ingroup GNSSService
* \author Marco Residori <marco.residori@xse.de>
*
* \copyright Copyright (C) 2013, XS Embedded GmbH
* 
* \license
* This Source Code Form is subject to the terms of the
* Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with
* this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* @licence end@
**************************************************************************/

#ifndef GLOBALS_H
#define GLOBALS_H

#include <stdbool.h>
#include <pthread.h>
#include <time.h>

#include "gnss.h"
#include "gnss-ext.h"
#include "gnss-meta-data.h"

extern pthread_mutex_t mutexCb;
extern pthread_mutex_t mutexData;

extern TGNSSSatelliteDetail gSatelliteDetail; //TODO: buffer full set of satellite details for one point in time
extern TGNSSPosition gPosition;
extern TGNSSTime gTime;


extern const TGnssMetaData gMetaData;

extern GNSSSatelliteDetailCallback cbSatelliteDetail;
extern GNSSPositionCallback cbPosition;
extern GNSSTimeCallback cbTime;

#endif /* GLOBALS_H */