All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pa_gnss.h
Go to the documentation of this file.
1 
19 #ifndef LEGATO_PA_GNSS_INCLUDE_GUARD
20 #define LEGATO_PA_GNSS_INCLUDE_GUARD
21 
22 #include "legato.h"
23 
24 //--------------------------------------------------------------------------------------------------
25 // Symbol and Enum definitions.
26 //--------------------------------------------------------------------------------------------------
27 
28 //--------------------------------------------------------------------------------------------------
32 //--------------------------------------------------------------------------------------------------
33 typedef struct {
34  uint16_t hours;
35  uint16_t minutes;
36  uint16_t seconds;
37  uint16_t milliseconds;
38 }
40 
41 //--------------------------------------------------------------------------------------------------
45 //--------------------------------------------------------------------------------------------------
46 typedef struct {
47  uint16_t year;
48  uint16_t month;
49  uint16_t day;
50 }
52 
53 //--------------------------------------------------------------------------------------------------
57 //--------------------------------------------------------------------------------------------------
58 typedef struct {
60  int32_t latitude;
61 
64  int32_t longitude;
65 
68  int32_t altitude;
69 
71  bool hSpeedValid;
72  uint32_t hSpeed;
73 
75  bool vSpeedValid;
76  uint32_t vSpeed;
77 
79  bool trackValid;
80  uint32_t track;
81 
83  bool headingValid;
84  uint32_t heading;
85 
87  bool hdopValid;
88  uint16_t hdop;
89 
91  uint32_t hUncertainty;
92 
95  uint32_t vUncertainty;
96 
99  uint32_t hSpeedUncertainty;
100 
103  uint32_t vSpeedUncertainty;
104 
108 
111  uint32_t trackUncertainty;
112 
114  bool vdopValid;
115  uint16_t vdop;
116 
117  bool timeValid;
119 
120  bool dateValid;
122 }
124 
127 
128 //--------------------------------------------------------------------------------------------------
129 // APIs.
130 //--------------------------------------------------------------------------------------------------
131 
132 //--------------------------------------------------------------------------------------------------
139 //--------------------------------------------------------------------------------------------------
141 (
142  void
143 );
144 
145 //--------------------------------------------------------------------------------------------------
152 //--------------------------------------------------------------------------------------------------
154 (
155  void
156 );
157 
158 //--------------------------------------------------------------------------------------------------
165 //--------------------------------------------------------------------------------------------------
167 (
168  void
169 );
170 
171 //--------------------------------------------------------------------------------------------------
178 //--------------------------------------------------------------------------------------------------
180 (
181  void
182 );
183 
184 //--------------------------------------------------------------------------------------------------
192 //--------------------------------------------------------------------------------------------------
194 (
195  uint32_t rate
196 );
197 
198 //--------------------------------------------------------------------------------------------------
204 //--------------------------------------------------------------------------------------------------
206 
207 //--------------------------------------------------------------------------------------------------
215 //--------------------------------------------------------------------------------------------------
217 (
219 );
220 
221 //--------------------------------------------------------------------------------------------------
227 //--------------------------------------------------------------------------------------------------
229 (
230  le_event_HandlerRef_t handlerRef
231 );
232 
233 //--------------------------------------------------------------------------------------------------
243 //--------------------------------------------------------------------------------------------------
245 (
246  pa_Gnss_Position_Ref_t positionRef
247 );
248 
249 //--------------------------------------------------------------------------------------------------
257 //--------------------------------------------------------------------------------------------------
259 (
260  const char* xtraFilePathPtr
261 );
262 
263 //--------------------------------------------------------------------------------------------------
270 //--------------------------------------------------------------------------------------------------
272 (
273  le_clk_Time_t *startTimePtr,
274  le_clk_Time_t *stopTimePtr
275 );
276 
277 //--------------------------------------------------------------------------------------------------
284 //--------------------------------------------------------------------------------------------------
286 (
287  bool *enablePtr
288 );
289 
290 //--------------------------------------------------------------------------------------------------
297 //--------------------------------------------------------------------------------------------------
299 (
300  void
301 );
302 
303 //--------------------------------------------------------------------------------------------------
310 //--------------------------------------------------------------------------------------------------
312 (
313  void
314 );
315 
316 #endif // LEGATO_PA_GNSS_INCLUDE_GUARD
int32_t altitude
Definition: pa_gnss.h:68
bool hUncertaintyValid
if true, horizontal uncertainty is set
Definition: pa_gnss.h:90
le_result_t
Definition: le_basics.h:34
uint32_t hUncertainty
Definition: pa_gnss.h:91
pa_Gnss_Date_t date
The date of the fix.
Definition: pa_gnss.h:121
uint16_t hdop
The horizontal Dilution of Precision (DOP)
Definition: pa_gnss.h:88
uint32_t vUncertainty
Definition: pa_gnss.h:95
uint16_t minutes
The Minutes.
Definition: pa_gnss.h:35
bool altitudeValid
if true, altitude is set
Definition: pa_gnss.h:67
Definition: pa_gnss.h:33
pa_Gnss_Time_t time
The time of the fix.
Definition: pa_gnss.h:118
uint32_t heading
Definition: pa_gnss.h:84
uint16_t year
The Year.
Definition: pa_gnss.h:47
Definition: pa_gnss.h:46
int32_t longitude
Definition: pa_gnss.h:64
bool trackUncertaintyValid
if true, track uncertainty is set
Definition: pa_gnss.h:110
void pa_gnss_RemovePositionDataHandler(le_event_HandlerRef_t handlerRef)
bool vSpeedValid
if true, vertical speed is set
Definition: pa_gnss.h:75
uint32_t headingUncertainty
Definition: pa_gnss.h:107
bool vSpeedUncertaintyValid
if true, vertical speed uncertainty is set
Definition: pa_gnss.h:102
uint16_t month
The Month.
Definition: pa_gnss.h:48
Definition: le_clock.h:97
bool hSpeedUncertaintyValid
if true, horizontal speed uncertainty is set
Definition: pa_gnss.h:98
bool headingValid
if true, heading is set
Definition: pa_gnss.h:83
le_event_HandlerRef_t pa_gnss_AddPositionDataHandler(pa_gnss_PositionDataHandlerFunc_t handler)
void(* pa_gnss_PositionDataHandlerFunc_t)(pa_Gnss_Position_Ref_t position)
Definition: pa_gnss.h:205
le_result_t pa_gnss_GetLastPositionData(pa_Gnss_Position_Ref_t positionRef)
int32_t latitude
Definition: pa_gnss.h:60
uint32_t vSpeedUncertainty
Definition: pa_gnss.h:103
uint32_t hSpeed
Definition: pa_gnss.h:72
uint32_t vSpeed
Definition: pa_gnss.h:76
bool vUncertaintyValid
if true, vertical uncertainty is set
Definition: pa_gnss.h:94
bool vdopValid
if true, vertical dilition is set
Definition: pa_gnss.h:114
uint16_t hours
The Hours.
Definition: pa_gnss.h:34
uint32_t hSpeedUncertainty
Definition: pa_gnss.h:99
le_result_t pa_gnss_SetAcquisitionRate(uint32_t rate)
le_result_t pa_gnss_LoadXtra(const char *xtraFilePathPtr)
bool headingUncertaintyValid
if true, heading uncertainty is set
Definition: pa_gnss.h:106
struct le_event_Handler * le_event_HandlerRef_t
Definition: le_eventLoop.h:752
le_result_t pa_gnss_Start(void)
uint32_t trackUncertainty
Definition: pa_gnss.h:111
le_result_t pa_gnss_Stop(void)
bool hdopValid
decimal place (308 = 30.8 degrees).
Definition: pa_gnss.h:87
bool longitudeValid
if true, longitude is set
Definition: pa_gnss.h:63
pa_Gnss_Position_t * pa_Gnss_Position_Ref_t
Definition: pa_gnss.h:126
bool dateValid
if true, date is set
Definition: pa_gnss.h:120
le_result_t pa_gnss_DisableXtraSession(void)
le_result_t pa_gnss_GetXtraValidityTimes(le_clk_Time_t *startTimePtr, le_clk_Time_t *stopTimePtr)
Definition: pa_gnss.h:58
le_result_t pa_gnss_GetXtraSessionStatus(bool *enablePtr)
bool hSpeedValid
if true, horizontal speed is set
Definition: pa_gnss.h:71
le_result_t pa_gnss_Release(void)
uint16_t seconds
The Seconds.
Definition: pa_gnss.h:36
le_result_t pa_gnss_EnableXtraSession(void)
bool latitudeValid
if true, latitude is set
Definition: pa_gnss.h:59
uint16_t vdop
The vertical Dilution of Precision (DOP)
Definition: pa_gnss.h:115
uint16_t day
The Day.
Definition: pa_gnss.h:49
bool timeValid
if true, time is set
Definition: pa_gnss.h:117
uint16_t milliseconds
The Milliseconds.
Definition: pa_gnss.h:37
uint32_t track
Definition: pa_gnss.h:80
le_result_t pa_gnss_Init(void)
bool trackValid
if true, Track is set
Definition: pa_gnss.h:79