le_gnss_interface.h
Go to the documentation of this file.
1 /*
2  * ====================== WARNING ======================
3  *
4  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
5  * DO NOT MODIFY IN ANY WAY.
6  *
7  * ====================== WARNING ======================
8  */
9 
319 #ifndef LE_GNSS_INTERFACE_H_INCLUDE_GUARD
320 #define LE_GNSS_INTERFACE_H_INCLUDE_GUARD
321 
322 
323 #include "legato.h"
324 
325 //--------------------------------------------------------------------------------------------------
336 //--------------------------------------------------------------------------------------------------
338 (
339  void
340 );
341 
342 //--------------------------------------------------------------------------------------------------
353 //--------------------------------------------------------------------------------------------------
355 (
356  void
357 );
358 
359 
360 //--------------------------------------------------------------------------------------------------
364 //--------------------------------------------------------------------------------------------------
365 typedef struct le_gnss_Sample* le_gnss_SampleRef_t;
366 
367 
368 //--------------------------------------------------------------------------------------------------
372 //--------------------------------------------------------------------------------------------------
373 #define LE_GNSS_MAX_SUPL_SERVER_URL_LEN 256
374 
375 
376 //--------------------------------------------------------------------------------------------------
380 //--------------------------------------------------------------------------------------------------
381 #define LE_GNSS_MAX_SUPL_CERTIFICATE_LEN 2000
382 
383 
384 //--------------------------------------------------------------------------------------------------
388 //--------------------------------------------------------------------------------------------------
389 #define LE_GNSS_MAX_SV_INFO_NUMBER 80
390 
391 
392 //--------------------------------------------------------------------------------------------------
396 //--------------------------------------------------------------------------------------------------
397 typedef enum
398 {
401 
404 
407 
410 }
412 
413 
414 //--------------------------------------------------------------------------------------------------
418 //--------------------------------------------------------------------------------------------------
419 typedef enum
420 {
423 
426 
429 }
431 
432 
433 //--------------------------------------------------------------------------------------------------
439 //--------------------------------------------------------------------------------------------------
440 typedef enum
441 {
444 
447 }
449 
450 
451 //--------------------------------------------------------------------------------------------------
455 //--------------------------------------------------------------------------------------------------
456 typedef struct le_gnss_PositionHandler* le_gnss_PositionHandlerRef_t;
457 
458 
459 //--------------------------------------------------------------------------------------------------
468 //--------------------------------------------------------------------------------------------------
469 typedef void (*le_gnss_PositionHandlerFunc_t)
470 (
471  le_gnss_SampleRef_t positionSampleRef,
472  void* contextPtr
473 );
474 
475 //--------------------------------------------------------------------------------------------------
485 //--------------------------------------------------------------------------------------------------
487 (
488  le_gnss_ConstellationBitMask_t constellationMask
491 );
492 
493 //--------------------------------------------------------------------------------------------------
501 //--------------------------------------------------------------------------------------------------
503 (
504  le_gnss_ConstellationBitMask_t* constellationMaskPtr
507 );
508 
509 //--------------------------------------------------------------------------------------------------
518 //--------------------------------------------------------------------------------------------------
520 (
521  void
522 );
523 
524 //--------------------------------------------------------------------------------------------------
533 //--------------------------------------------------------------------------------------------------
535 (
536  void
537 );
538 
539 //--------------------------------------------------------------------------------------------------
550 //--------------------------------------------------------------------------------------------------
552 (
553  int fd
556 );
557 
558 //--------------------------------------------------------------------------------------------------
567 //--------------------------------------------------------------------------------------------------
569 (
570  le_clk_Time_t* startTimePtr,
573 
574  le_clk_Time_t* stopTimePtr
577 );
578 
579 //--------------------------------------------------------------------------------------------------
590 //--------------------------------------------------------------------------------------------------
592 (
593  void
594 );
595 
596 //--------------------------------------------------------------------------------------------------
607 //--------------------------------------------------------------------------------------------------
609 (
610  void
611 );
612 
613 //--------------------------------------------------------------------------------------------------
623 //--------------------------------------------------------------------------------------------------
625 (
626  void
627 );
628 
629 //--------------------------------------------------------------------------------------------------
639 //--------------------------------------------------------------------------------------------------
641 (
642  void
643 );
644 
645 //--------------------------------------------------------------------------------------------------
655 //--------------------------------------------------------------------------------------------------
657 (
658  void
659 );
660 
661 //--------------------------------------------------------------------------------------------------
671 //--------------------------------------------------------------------------------------------------
673 (
674  void
675 );
676 
677 //--------------------------------------------------------------------------------------------------
687 //--------------------------------------------------------------------------------------------------
689 (
690  uint32_t* ttffPtr
693 );
694 
695 //--------------------------------------------------------------------------------------------------
706 //--------------------------------------------------------------------------------------------------
708 (
709  void
710 );
711 
712 //--------------------------------------------------------------------------------------------------
723 //--------------------------------------------------------------------------------------------------
725 (
726  void
727 );
728 
729 //--------------------------------------------------------------------------------------------------
740 //--------------------------------------------------------------------------------------------------
742 (
743  uint32_t rate
746 );
747 
748 //--------------------------------------------------------------------------------------------------
757 //--------------------------------------------------------------------------------------------------
759 (
760  uint32_t* ratePtr
763 );
764 
765 //--------------------------------------------------------------------------------------------------
775 //--------------------------------------------------------------------------------------------------
777 (
780 
781  void* contextPtr
783 );
784 
785 //--------------------------------------------------------------------------------------------------
789 //--------------------------------------------------------------------------------------------------
791 (
792  le_gnss_PositionHandlerRef_t addHandlerRef
794 );
795 
796 //--------------------------------------------------------------------------------------------------
806 //--------------------------------------------------------------------------------------------------
808 (
809  le_gnss_SampleRef_t positionSampleRef,
812 
813  le_gnss_FixState_t* statePtr
816 );
817 
818 //--------------------------------------------------------------------------------------------------
841 //--------------------------------------------------------------------------------------------------
843 (
844  le_gnss_SampleRef_t positionSampleRef,
847 
848  int32_t* latitudePtr,
851 
852  int32_t* longitudePtr,
855 
856  int32_t* hAccuracyPtr
859 );
860 
861 //--------------------------------------------------------------------------------------------------
879 //--------------------------------------------------------------------------------------------------
881 (
882  le_gnss_SampleRef_t positionSampleRef,
885 
886  int32_t* altitudePtr,
889 
890  int32_t* vAccuracyPtr
893 );
894 
895 //--------------------------------------------------------------------------------------------------
907 //--------------------------------------------------------------------------------------------------
909 (
910  le_gnss_SampleRef_t positionSampleRef,
913 
914  uint16_t* hoursPtr,
917 
918  uint16_t* minutesPtr,
921 
922  uint16_t* secondsPtr,
925 
926  uint16_t* millisecondsPtr
929 );
930 
931 //--------------------------------------------------------------------------------------------------
943 //--------------------------------------------------------------------------------------------------
945 (
946  le_gnss_SampleRef_t positionSampleRef,
949 
950  uint16_t* yearPtr,
953 
954  uint16_t* monthPtr,
957 
958  uint16_t* dayPtr
961 );
962 
963 //--------------------------------------------------------------------------------------------------
976 //--------------------------------------------------------------------------------------------------
978 (
979  le_gnss_SampleRef_t positionSampleRef,
982 
983  uint32_t* hspeedPtr,
986 
987  uint32_t* hspeedAccuracyPtr
991 );
992 
993 //--------------------------------------------------------------------------------------------------
1010 //--------------------------------------------------------------------------------------------------
1012 (
1013  le_gnss_SampleRef_t positionSampleRef,
1016 
1017  int32_t* vspeedPtr,
1020 
1021  int32_t* vspeedAccuracyPtr
1025 );
1026 
1027 //--------------------------------------------------------------------------------------------------
1042 //--------------------------------------------------------------------------------------------------
1044 (
1045  le_gnss_SampleRef_t positionSampleRef,
1048 
1049  int32_t* directionPtr,
1053 
1054  int32_t* directionAccuracyPtr
1058 );
1059 
1060 //--------------------------------------------------------------------------------------------------
1074 //--------------------------------------------------------------------------------------------------
1076 (
1077  le_gnss_SampleRef_t positionSampleRef,
1080 
1081  uint16_t* hdopPtr,
1084 
1085  uint16_t* vdopPtr,
1088 
1089  uint16_t* pdopPtr
1092 );
1093 
1094 //--------------------------------------------------------------------------------------------------
1101 //--------------------------------------------------------------------------------------------------
1103 (
1104  le_gnss_SampleRef_t positionSampleRef
1107 );
1108 
1109 //--------------------------------------------------------------------------------------------------
1119 //--------------------------------------------------------------------------------------------------
1121 (
1122  le_gnss_AssistedMode_t assistedMode
1125 );
1126 
1127 //--------------------------------------------------------------------------------------------------
1135 //--------------------------------------------------------------------------------------------------
1137 (
1138  le_gnss_AssistedMode_t* assistedModePtr
1141 );
1142 
1143 //--------------------------------------------------------------------------------------------------
1155 //--------------------------------------------------------------------------------------------------
1157 (
1158  const char* suplServerUrl
1161 );
1162 
1163 //--------------------------------------------------------------------------------------------------
1173 //--------------------------------------------------------------------------------------------------
1175 (
1176  uint8_t suplCertificateId,
1180 
1181  uint16_t suplCertificateLen,
1184 
1185  const char* suplCertificate
1188 );
1189 
1190 //--------------------------------------------------------------------------------------------------
1200 //--------------------------------------------------------------------------------------------------
1202 (
1203  uint8_t suplCertificateId
1207 );
1208 
1209 
1210 #endif // LE_GNSS_INTERFACE_H_INCLUDE_GUARD
1211 
le_gnss_AssistedMode_t
Definition: le_gnss_interface.h:419
le_result_t le_gnss_InjectSuplCertificate(uint8_t suplCertificateId, uint16_t suplCertificateLen, const char *suplCertificate)
le_result_t le_gnss_GetAltitude(le_gnss_SampleRef_t positionSampleRef, int32_t *altitudePtr, int32_t *vAccuracyPtr)
le_result_t le_gnss_SetSuplServerUrl(const char *suplServerUrl)
void(* le_gnss_PositionHandlerFunc_t)(le_gnss_SampleRef_t positionSampleRef, void *contextPtr)
Definition: le_gnss_interface.h:470
le_result_t
Definition: le_basics.h:35
void le_gnss_RemovePositionHandler(le_gnss_PositionHandlerRef_t addHandlerRef)
le_result_t le_gnss_Start(void)
Standalone mode.
Definition: le_gnss_interface.h:421
le_gnss_PositionHandlerRef_t le_gnss_AddPositionHandler(le_gnss_PositionHandlerFunc_t handlerPtr, void *contextPtr)
GLONASS constellation used in solution.
Definition: le_gnss_interface.h:445
le_result_t le_gnss_ForceFactoryRestart(void)
struct le_gnss_Sample * le_gnss_SampleRef_t
Definition: le_gnss_interface.h:365
le_result_t le_gnss_LoadExtendedEphemerisFile(int fd)
le_result_t le_gnss_GetAcquisitionRate(uint32_t *ratePtr)
void le_gnss_DisconnectService(void)
le_result_t le_gnss_GetDirection(le_gnss_SampleRef_t positionSampleRef, int32_t *directionPtr, int32_t *directionAccuracyPtr)
le_result_t le_gnss_ForceColdRestart(void)
Estimated (i.e. forward predicted) position fix.
Definition: le_gnss_interface.h:408
le_result_t le_gnss_ForceWarmRestart(void)
le_result_t le_gnss_GetTtff(uint32_t *ttffPtr)
le_result_t le_gnss_GetConstellation(le_gnss_ConstellationBitMask_t *constellationMaskPtr)
le_result_t le_gnss_EnableExtendedEphemerisFile(void)
3-Dimensional position fix.
Definition: le_gnss_interface.h:405
le_result_t le_gnss_GetTime(le_gnss_SampleRef_t positionSampleRef, uint16_t *hoursPtr, uint16_t *minutesPtr, uint16_t *secondsPtr, uint16_t *millisecondsPtr)
le_result_t le_gnss_GetSuplAssistedMode(le_gnss_AssistedMode_t *assistedModePtr)
le_result_t le_gnss_GetLocation(le_gnss_SampleRef_t positionSampleRef, int32_t *latitudePtr, int32_t *longitudePtr, int32_t *hAccuracyPtr)
le_result_t le_gnss_DisableExtendedEphemerisFile(void)
Definition: le_clock.h:92
le_result_t le_gnss_SetAcquisitionRate(uint32_t rate)
le_result_t le_gnss_DeleteSuplCertificate(uint8_t suplCertificateId)
GPS constellation used in solution.
Definition: le_gnss_interface.h:442
le_gnss_FixState_t
Definition: le_gnss_interface.h:397
2-Dimensional position fix.
Definition: le_gnss_interface.h:402
void le_gnss_ReleaseSampleRef(le_gnss_SampleRef_t positionSampleRef)
le_result_t le_gnss_GetVerticalSpeed(le_gnss_SampleRef_t positionSampleRef, int32_t *vspeedPtr, int32_t *vspeedAccuracyPtr)
MS-Assisted mode.
Definition: le_gnss_interface.h:427
le_result_t le_gnss_SetSuplAssistedMode(le_gnss_AssistedMode_t assistedMode)
le_result_t le_gnss_GetDate(le_gnss_SampleRef_t positionSampleRef, uint16_t *yearPtr, uint16_t *monthPtr, uint16_t *dayPtr)
le_gnss_ConstellationBitMask_t
Definition: le_gnss_interface.h:440
void le_gnss_ConnectService(void)
le_result_t le_gnss_Stop(void)
le_result_t le_gnss_GetPositionState(le_gnss_SampleRef_t positionSampleRef, le_gnss_FixState_t *statePtr)
le_result_t le_gnss_Disable(void)
le_result_t le_gnss_GetHorizontalSpeed(le_gnss_SampleRef_t positionSampleRef, uint32_t *hspeedPtr, uint32_t *hspeedAccuracyPtr)
le_result_t le_gnss_SetConstellation(le_gnss_ConstellationBitMask_t constellationMask)
le_result_t le_gnss_GetExtendedEphemerisValidity(le_clk_Time_t *startTimePtr, le_clk_Time_t *stopTimePtr)
le_result_t le_gnss_ForceHotRestart(void)
MS-Based mode.
Definition: le_gnss_interface.h:424
le_result_t le_gnss_Enable(void)
The GNSS fix position is not fixed.
Definition: le_gnss_interface.h:399
struct le_gnss_PositionHandler * le_gnss_PositionHandlerRef_t
Definition: le_gnss_interface.h:456
le_result_t le_gnss_GetDop(le_gnss_SampleRef_t positionSampleRef, uint16_t *hdopPtr, uint16_t *vdopPtr, uint16_t *pdopPtr)