Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_locPos_common.h
Go to the documentation of this file.
1 
2 /*
3  * ====================== WARNING ======================
4  *
5  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
6  * DO NOT MODIFY IN ANY WAY.
7  *
8  * ====================== WARNING ======================
9  */
10 #ifndef TAF_LOCPOS_COMMON_H_INCLUDE_GUARD
11 #define TAF_LOCPOS_COMMON_H_INCLUDE_GUARD
12 
13 
14 #include "legato.h"
15 
16 // Interface specific includes
17 #include "taf_locGnss_common.h"
18 
19 #define IFGEN_TAF_LOCPOS_PROTOCOL_ID "7524055dcdb06eb2aa3fcec77b6f8445"
20 #define IFGEN_TAF_LOCPOS_MSG_SIZE 32
21 
22 
23 
24 //--------------------------------------------------------------------------------------------------
27 //--------------------------------------------------------------------------------------------------
28 #define TAF_LOCPOS_TAF_LOCPOS_MAX_OBJ 1
29 
30 //--------------------------------------------------------------------------------------------------
34 //--------------------------------------------------------------------------------------------------
35 typedef struct taf_locPos_Sample* taf_locPos_SampleRef_t;
36 
37 
38 //--------------------------------------------------------------------------------------------------
42 //--------------------------------------------------------------------------------------------------
43 typedef struct taf_locPos_MovementHandler* taf_locPos_MovementHandlerRef_t;
44 
45 
46 //--------------------------------------------------------------------------------------------------
50 //--------------------------------------------------------------------------------------------------
51 typedef enum
52 {
63 }
65 
66 
67 //--------------------------------------------------------------------------------------------------
72 //--------------------------------------------------------------------------------------------------
74 (
75  taf_locPos_SampleRef_t positionSampleRef,
77  void* contextPtr
79 );
80 
81 
82 //--------------------------------------------------------------------------------------------------
86 //--------------------------------------------------------------------------------------------------
88 (
89  void
90 );
91 
92 
93 //--------------------------------------------------------------------------------------------------
97 //--------------------------------------------------------------------------------------------------
99 (
100  void
101 );
102 
103 
104 //--------------------------------------------------------------------------------------------------
108 //--------------------------------------------------------------------------------------------------
110 (
111  le_msg_SessionRef_t _ifgen_sessionRef
112 );
113 
114 
115 //--------------------------------------------------------------------------------------------------
119 //--------------------------------------------------------------------------------------------------
121 (
122  le_msg_SessionRef_t _ifgen_sessionRef,
123  bool isBlocking
124 );
125 
126 //--------------------------------------------------------------------------------------------------
133 //--------------------------------------------------------------------------------------------------
135 (
136  le_msg_SessionRef_t _ifgen_sessionRef,
137  uint32_t horizontalMagnitude,
139  uint32_t verticalMagnitude,
143  void* contextPtr
145 );
146 
147 //--------------------------------------------------------------------------------------------------
151 //--------------------------------------------------------------------------------------------------
153 (
154  le_msg_SessionRef_t _ifgen_sessionRef,
157 );
158 
159 //--------------------------------------------------------------------------------------------------
170 //--------------------------------------------------------------------------------------------------
172 (
173  le_msg_SessionRef_t _ifgen_sessionRef,
174  int32_t* latitudePtr,
176  int32_t* longitudePtr,
178  int32_t* hAccuracyPtr
180 );
181 
182 //--------------------------------------------------------------------------------------------------
194 //--------------------------------------------------------------------------------------------------
196 (
197  le_msg_SessionRef_t _ifgen_sessionRef,
198  uint16_t* yearPtr,
200  uint16_t* monthPtr,
202  uint16_t* dayPtr
204 );
205 
206 //--------------------------------------------------------------------------------------------------
217 //--------------------------------------------------------------------------------------------------
219 (
220  le_msg_SessionRef_t _ifgen_sessionRef,
221  taf_locGnss_FixState_t* statePtr
223 );
224 
225 //--------------------------------------------------------------------------------------------------
239 //--------------------------------------------------------------------------------------------------
241 (
242  le_msg_SessionRef_t _ifgen_sessionRef,
243  uint32_t* hSpeedPtr,
245  uint32_t* hSpeedAccuracyPtr,
247  int32_t* vSpeedPtr,
249  int32_t* vSpeedAccuracyPtr
251 );
252 
253 //--------------------------------------------------------------------------------------------------
268 //--------------------------------------------------------------------------------------------------
270 (
271  le_msg_SessionRef_t _ifgen_sessionRef,
272  uint32_t* directionPtr,
274  uint32_t* directionAccuracyPtr
276 );
277 
278 //--------------------------------------------------------------------------------------------------
288 //--------------------------------------------------------------------------------------------------
290 (
291  le_msg_SessionRef_t _ifgen_sessionRef,
292  uint16_t* hoursPtr,
294  uint16_t* minutesPtr,
296  uint16_t* secondsPtr,
298  uint16_t* millisecondsPtr
300 );
301 
302 //--------------------------------------------------------------------------------------------------
310 //--------------------------------------------------------------------------------------------------
312 (
313  le_msg_SessionRef_t _ifgen_sessionRef,
314  uint32_t acquisitionRate
316 );
317 
318 //--------------------------------------------------------------------------------------------------
325 //--------------------------------------------------------------------------------------------------
327 (
328  le_msg_SessionRef_t _ifgen_sessionRef
329 );
330 
331 //--------------------------------------------------------------------------------------------------
338 //--------------------------------------------------------------------------------------------------
340 (
341  le_msg_SessionRef_t _ifgen_sessionRef,
342  taf_locPos_SampleRef_t positionSampleRef
344 );
345 
346 //--------------------------------------------------------------------------------------------------
359 //--------------------------------------------------------------------------------------------------
361 (
362  le_msg_SessionRef_t _ifgen_sessionRef,
363  int32_t* latitudePtr,
365  int32_t* longitudePtr,
367  int32_t* hAccuracyPtr,
369  int32_t* altitudePtr,
371  int32_t* vAccuracyPtr
373 );
374 
375 //--------------------------------------------------------------------------------------------------
390 //--------------------------------------------------------------------------------------------------
392 (
393  le_msg_SessionRef_t _ifgen_sessionRef,
394  taf_locPos_SampleRef_t positionSampleRef,
396  int32_t* latitudePtr,
398  int32_t* longitudePtr,
400  int32_t* horizontalAccuracyPtr
402 );
403 
404 //--------------------------------------------------------------------------------------------------
418 //--------------------------------------------------------------------------------------------------
420 (
421  le_msg_SessionRef_t _ifgen_sessionRef,
422  taf_locPos_SampleRef_t positionSampleRef,
424  int32_t* altitudePtr,
426  int32_t* altitudeAccuracyPtr
428 );
429 
430 //--------------------------------------------------------------------------------------------------
439 //--------------------------------------------------------------------------------------------------
441 (
442  le_msg_SessionRef_t _ifgen_sessionRef,
443  taf_locPos_SampleRef_t positionSampleRef,
445  uint16_t* hoursPtr,
447  uint16_t* minutesPtr,
449  uint16_t* secondsPtr,
451  uint16_t* millisecondsPtr
453 );
454 
455 //--------------------------------------------------------------------------------------------------
469 //--------------------------------------------------------------------------------------------------
471 (
472  le_msg_SessionRef_t _ifgen_sessionRef,
473  taf_locPos_SampleRef_t positionSampleRef,
475  uint32_t* hSpeedPtr,
477  uint32_t* hSpeedAccuracyPtr
479 );
480 
481 //--------------------------------------------------------------------------------------------------
498 //--------------------------------------------------------------------------------------------------
500 (
501  le_msg_SessionRef_t _ifgen_sessionRef,
502  taf_locPos_SampleRef_t positionSampleRef,
504  uint32_t* directionPtr,
506  uint32_t* directionAccuracyPtr
508 );
509 
510 //--------------------------------------------------------------------------------------------------
524 //--------------------------------------------------------------------------------------------------
526 (
527  le_msg_SessionRef_t _ifgen_sessionRef,
528  taf_locPos_SampleRef_t positionSampleRef,
530  int32_t* vspeedPtr,
532  int32_t* vspeedAccuracyPtr
534 );
535 
536 //--------------------------------------------------------------------------------------------------
549 //--------------------------------------------------------------------------------------------------
551 (
552  le_msg_SessionRef_t _ifgen_sessionRef,
553  taf_locPos_Resolution_t resolution
555 );
556 
557 //--------------------------------------------------------------------------------------------------
568 //--------------------------------------------------------------------------------------------------
570 (
571  le_msg_SessionRef_t _ifgen_sessionRef,
572  taf_locPos_SampleRef_t positionSampleRef,
574  taf_locGnss_FixState_t* statePtr
576 );
577 
578 //--------------------------------------------------------------------------------------------------
588 //--------------------------------------------------------------------------------------------------
590 (
591  le_msg_SessionRef_t _ifgen_sessionRef,
592  taf_locPos_SampleRef_t positionSampleRef,
594  uint16_t* yearPtr,
596  uint16_t* monthPtr,
598  uint16_t* dayPtr
600 );
601 
602 #endif // TAF_LOCPOS_COMMON_H_INCLUDE_GUARD
taf_locPos_Resolution_t
Definition: taf_locPos_common.h:51
Centimeter resolution.
Definition: taf_locPos_common.h:57
LE_SHARED void ifgen_taf_locPos_CleanupCommonData(le_msg_SessionRef_t _ifgen_sessionRef)
LE_SHARED le_result_t ifgen_taf_locPos_sample_GetDate(le_msg_SessionRef_t _ifgen_sessionRef, taf_locPos_SampleRef_t positionSampleRef, uint16_t *yearPtr, uint16_t *monthPtr, uint16_t *dayPtr)
LE_SHARED le_result_t ifgen_taf_locPos_OpenSession(le_msg_SessionRef_t _ifgen_sessionRef, bool isBlocking)
LE_SHARED uint32_t ifgen_taf_locPos_GetAcquisitionRate(le_msg_SessionRef_t _ifgen_sessionRef)
LE_SHARED le_result_t ifgen_taf_locPos_sample_GetAltitude(le_msg_SessionRef_t _ifgen_sessionRef, taf_locPos_SampleRef_t positionSampleRef, int32_t *altitudePtr, int32_t *altitudeAccuracyPtr)
LE_SHARED le_result_t ifgen_taf_locPos_sample_Get2DLocation(le_msg_SessionRef_t _ifgen_sessionRef, taf_locPos_SampleRef_t positionSampleRef, int32_t *latitudePtr, int32_t *longitudePtr, int32_t *horizontalAccuracyPtr)
Unknown resolution.
Definition: taf_locPos_common.h:61
LE_SHARED le_result_t ifgen_taf_locPos_SetDistanceResolution(le_msg_SessionRef_t _ifgen_sessionRef, taf_locPos_Resolution_t resolution)
struct taf_locPos_MovementHandler * taf_locPos_MovementHandlerRef_t
Definition: taf_locPos_common.h:43
LE_SHARED le_result_t ifgen_taf_locPos_Get3DLocation(le_msg_SessionRef_t _ifgen_sessionRef, int32_t *latitudePtr, int32_t *longitudePtr, int32_t *hAccuracyPtr, int32_t *altitudePtr, int32_t *vAccuracyPtr)
LE_SHARED le_result_t ifgen_taf_locPos_Get2DLocation(le_msg_SessionRef_t _ifgen_sessionRef, int32_t *latitudePtr, int32_t *longitudePtr, int32_t *hAccuracyPtr)
taf_locGnss_FixState_t
Definition: taf_locGnss_common.h:193
LE_SHARED le_result_t ifgen_taf_locPos_GetMotion(le_msg_SessionRef_t _ifgen_sessionRef, uint32_t *hSpeedPtr, uint32_t *hSpeedAccuracyPtr, int32_t *vSpeedPtr, int32_t *vSpeedAccuracyPtr)
Decimeter resolution.
Definition: taf_locPos_common.h:55
struct taf_locPos_Sample * taf_locPos_SampleRef_t
Definition: taf_locPos_common.h:35
LE_SHARED le_result_t ifgen_taf_locPos_sample_GetFixState(le_msg_SessionRef_t _ifgen_sessionRef, taf_locPos_SampleRef_t positionSampleRef, taf_locGnss_FixState_t *statePtr)
LE_SHARED bool ifgen_taf_locPos_HasLocalBinding(void)
LE_SHARED le_result_t ifgen_taf_locPos_GetFixState(le_msg_SessionRef_t _ifgen_sessionRef, taf_locGnss_FixState_t *statePtr)
LE_SHARED le_result_t ifgen_taf_locPos_sample_GetTime(le_msg_SessionRef_t _ifgen_sessionRef, taf_locPos_SampleRef_t positionSampleRef, uint16_t *hoursPtr, uint16_t *minutesPtr, uint16_t *secondsPtr, uint16_t *millisecondsPtr)
LE_SHARED le_result_t ifgen_taf_locPos_sample_GetHorizontalSpeed(le_msg_SessionRef_t _ifgen_sessionRef, taf_locPos_SampleRef_t positionSampleRef, uint32_t *hSpeedPtr, uint32_t *hSpeedAccuracyPtr)
LE_SHARED le_result_t ifgen_taf_locPos_sample_GetVerticalSpeed(le_msg_SessionRef_t _ifgen_sessionRef, taf_locPos_SampleRef_t positionSampleRef, int32_t *vspeedPtr, int32_t *vspeedAccuracyPtr)
LE_SHARED void ifgen_taf_locPos_InitCommonData(void)
LE_SHARED le_result_t ifgen_taf_locPos_SetAcquisitionRate(le_msg_SessionRef_t _ifgen_sessionRef, uint32_t acquisitionRate)
LE_SHARED le_result_t ifgen_taf_locPos_GetDirection(le_msg_SessionRef_t _ifgen_sessionRef, uint32_t *directionPtr, uint32_t *directionAccuracyPtr)
LE_SHARED taf_locPos_MovementHandlerRef_t ifgen_taf_locPos_AddMovementHandler(le_msg_SessionRef_t _ifgen_sessionRef, uint32_t horizontalMagnitude, uint32_t verticalMagnitude, taf_locPos_MovementHandlerFunc_t handlerPtr, void *contextPtr)
Meter resolution.
Definition: taf_locPos_common.h:53
Millimeter resolution.
Definition: taf_locPos_common.h:59
LE_SHARED le_result_t ifgen_taf_locPos_sample_GetDirection(le_msg_SessionRef_t _ifgen_sessionRef, taf_locPos_SampleRef_t positionSampleRef, uint32_t *directionPtr, uint32_t *directionAccuracyPtr)
le_result_t
Definition: le_basics.h:45
void(* taf_locPos_MovementHandlerFunc_t)(taf_locPos_SampleRef_t positionSampleRef, void *contextPtr)
Definition: taf_locPos_common.h:74
struct le_msg_Session * le_msg_SessionRef_t
Definition: le_messaging.h:860
LE_SHARED void ifgen_taf_locPos_sample_Release(le_msg_SessionRef_t _ifgen_sessionRef, taf_locPos_SampleRef_t positionSampleRef)
LE_SHARED void ifgen_taf_locPos_RemoveMovementHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_locPos_MovementHandlerRef_t handlerRef)
#define LE_SHARED
Definition: le_basics.h:297
LE_SHARED le_result_t ifgen_taf_locPos_GetDate(le_msg_SessionRef_t _ifgen_sessionRef, uint16_t *yearPtr, uint16_t *monthPtr, uint16_t *dayPtr)
LE_SHARED le_result_t ifgen_taf_locPos_GetTime(le_msg_SessionRef_t _ifgen_sessionRef, uint16_t *hoursPtr, uint16_t *minutesPtr, uint16_t *secondsPtr, uint16_t *millisecondsPtr)