le_gnss_interface.h
Go to the documentation of this file.
21 * GNSS or Global Navigation Satellite System is a satellite navigation system with global coverage.95 * The le_gnss_ForceHotRestart() function performs a "HOT" restart of the GNSS device. The current100 * The le_gnss_ForceWarmRestart() function performs a "WARM" restart of the GNSS device. The current105 * The le_gnss_ForceColdRestart() function performs a "COLD" restart of the GNSS device. The current129 * @warning Your platform may require a reboot to take into account this change. Please refer to your145 * ''LE_OK or error code'' means the function is authorized in the corresponding state, the request146 * is performed and the result is returned; otherwise the returned error is indicated for each state149 *| ----------------------------- | --------------------------- | -----------------------------| --------------------------- | --------------------------- |152 *| le_gnss_ForceHotRestart() | LE_NOT_PERMITTED | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED |153 *| le_gnss_ForceWarmRestart() | LE_NOT_PERMITTED | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED |154 *| le_gnss_ForceColdRestart() | LE_NOT_PERMITTED | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED |155 *| le_gnss_ForceFactoryRestart() | LE_NOT_PERMITTED | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED |156 *| le_gnss_Disable() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_DUPLICATE |158 *| le_gnss_SetConstellation() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_NOT_PERMITTED |159 *| le_gnss_GetConstellation() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_NOT_PERMITTED |160 *| le_gnss_GetTtff() | LE_NOT_PERMITTED | LE_OK or error code | LE_OK or error code | LE_NOT_PERMITTED |161 *| le_gnss_SetAcquisitionRate() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_NOT_PERMITTED |162 *| le_gnss_GetAcquisitionRate() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_NOT_PERMITTED |231 * With le_gnss_GetExtendedEphemerisValidity(), you will to get the validity of the last injected244 * That 3GPP User Plane A-GNSS (Assisted GNSS) protocol is defined by two different standardization245 * bodies, 3GPP and Open Mobile Alliance (OMA). For more information, please refer to the standard.250 *, then returns the retrieved GNSS data to the SUPL (Secure User Plan Location) server, where the254 * server. The MS measures the signals from the GNSS satellites and makes the position calculation.267 * The SUPL server is configured using the le_gnss_SetSuplServerUrl() function. That function sets271 * le_gnss_InjectSuplCertificate() function and deleted through the le_gnss_DeleteSuplCertificate()333 //--------------------------------------------------------------------------------------------------336 * Connect the current client thread to the service providing this API. Block until the service is339 * For each thread that wants to use this API, either ConnectService or TryConnectService must be340 * called before any other functions in this API. Normally, ConnectService is automatically called345 //--------------------------------------------------------------------------------------------------351 //--------------------------------------------------------------------------------------------------354 * Try to connect the current client thread to the service providing this API. Return with an error357 * For each thread that wants to use this API, either ConnectService or TryConnectService must be358 * called before any other functions in this API. Normally, ConnectService is automatically called365 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.366 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).369 //--------------------------------------------------------------------------------------------------375 //--------------------------------------------------------------------------------------------------381 * longer a connection to the service, and the functions in this API can't be used. For details, see386 //--------------------------------------------------------------------------------------------------393 //--------------------------------------------------------------------------------------------------397 //--------------------------------------------------------------------------------------------------401 //--------------------------------------------------------------------------------------------------405 //--------------------------------------------------------------------------------------------------409 //--------------------------------------------------------------------------------------------------414 //--------------------------------------------------------------------------------------------------418 //--------------------------------------------------------------------------------------------------422 //--------------------------------------------------------------------------------------------------426 //--------------------------------------------------------------------------------------------------431 //--------------------------------------------------------------------------------------------------435 //--------------------------------------------------------------------------------------------------439 //--------------------------------------------------------------------------------------------------443 //--------------------------------------------------------------------------------------------------447 //--------------------------------------------------------------------------------------------------465 //--------------------------------------------------------------------------------------------------469 //--------------------------------------------------------------------------------------------------493 //--------------------------------------------------------------------------------------------------497 //--------------------------------------------------------------------------------------------------512 //--------------------------------------------------------------------------------------------------518 //--------------------------------------------------------------------------------------------------536 //--------------------------------------------------------------------------------------------------540 //--------------------------------------------------------------------------------------------------544 //--------------------------------------------------------------------------------------------------553 //--------------------------------------------------------------------------------------------------555 (560 //--------------------------------------------------------------------------------------------------570 //--------------------------------------------------------------------------------------------------577 //--------------------------------------------------------------------------------------------------585 //--------------------------------------------------------------------------------------------------592 //--------------------------------------------------------------------------------------------------601 //--------------------------------------------------------------------------------------------------607 //--------------------------------------------------------------------------------------------------616 //--------------------------------------------------------------------------------------------------622 //--------------------------------------------------------------------------------------------------633 //--------------------------------------------------------------------------------------------------640 //--------------------------------------------------------------------------------------------------649 //--------------------------------------------------------------------------------------------------659 //--------------------------------------------------------------------------------------------------670 //--------------------------------------------------------------------------------------------------676 //--------------------------------------------------------------------------------------------------687 //--------------------------------------------------------------------------------------------------693 //--------------------------------------------------------------------------------------------------703 //--------------------------------------------------------------------------------------------------709 //--------------------------------------------------------------------------------------------------719 //--------------------------------------------------------------------------------------------------725 //--------------------------------------------------------------------------------------------------735 //--------------------------------------------------------------------------------------------------741 //--------------------------------------------------------------------------------------------------751 //--------------------------------------------------------------------------------------------------757 //--------------------------------------------------------------------------------------------------767 //--------------------------------------------------------------------------------------------------774 //--------------------------------------------------------------------------------------------------785 //--------------------------------------------------------------------------------------------------791 //--------------------------------------------------------------------------------------------------802 //--------------------------------------------------------------------------------------------------808 //--------------------------------------------------------------------------------------------------819 //--------------------------------------------------------------------------------------------------826 //--------------------------------------------------------------------------------------------------835 //--------------------------------------------------------------------------------------------------842 //--------------------------------------------------------------------------------------------------852 //--------------------------------------------------------------------------------------------------862 //--------------------------------------------------------------------------------------------------866 //--------------------------------------------------------------------------------------------------873 //--------------------------------------------------------------------------------------------------883 //--------------------------------------------------------------------------------------------------893 //--------------------------------------------------------------------------------------------------911 * @note Altitude is in metres, above Mean Sea Level, with 3 decimal places (3047 = 3.047 metres).916 //--------------------------------------------------------------------------------------------------932 //--------------------------------------------------------------------------------------------------941 * @note Altitude is in metres, above Mean Sea Level, with 3 decimal places (3047 = 3.047 metres).950 //--------------------------------------------------------------------------------------------------963 //--------------------------------------------------------------------------------------------------975 //--------------------------------------------------------------------------------------------------994 //--------------------------------------------------------------------------------------------------1006 //--------------------------------------------------------------------------------------------------1019 //--------------------------------------------------------------------------------------------------1031 //--------------------------------------------------------------------------------------------------1041 //--------------------------------------------------------------------------------------------------1053 //--------------------------------------------------------------------------------------------------1069 //--------------------------------------------------------------------------------------------------1082 //--------------------------------------------------------------------------------------------------1096 //--------------------------------------------------------------------------------------------------1113 //--------------------------------------------------------------------------------------------------1127 //--------------------------------------------------------------------------------------------------1142 //--------------------------------------------------------------------------------------------------1157 //--------------------------------------------------------------------------------------------------1176 //--------------------------------------------------------------------------------------------------1228 //--------------------------------------------------------------------------------------------------1240 //--------------------------------------------------------------------------------------------------1256 //--------------------------------------------------------------------------------------------------1270 //--------------------------------------------------------------------------------------------------1286 //--------------------------------------------------------------------------------------------------1293 //--------------------------------------------------------------------------------------------------1300 //--------------------------------------------------------------------------------------------------1310 //--------------------------------------------------------------------------------------------------1317 //--------------------------------------------------------------------------------------------------1325 //--------------------------------------------------------------------------------------------------1332 //--------------------------------------------------------------------------------------------------1344 //--------------------------------------------------------------------------------------------------1351 //--------------------------------------------------------------------------------------------------1361 //--------------------------------------------------------------------------------------------------1375 //--------------------------------------------------------------------------------------------------1385 //--------------------------------------------------------------------------------------------------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:555Satellite Vehicle of Galileo constellation.Definition: le_gnss_interface.h:484le_result_t le_gnss_GetExtendedEphemerisValidity(uint64_t *startTimePtr, uint64_t *stopTimePtr)void le_gnss_RemovePositionHandler(le_gnss_PositionHandlerRef_t addHandlerRef)le_result_t le_gnss_Start(void)le_gnss_PositionHandlerRef_t le_gnss_AddPositionHandler(le_gnss_PositionHandlerFunc_t handlerPtr, void *contextPtr)GLONASS constellation used in solution.Definition: le_gnss_interface.h:524le_result_t le_gnss_ForceFactoryRestart(void)le_result_t le_gnss_LoadExtendedEphemerisFile(int fd)le_result_t le_gnss_GetAcquisitionRate(uint32_t *ratePtr)void le_gnss_DisconnectService(void)Satellite Vehicle of GPS constellation.Definition: le_gnss_interface.h:475BEIDOU constellation used in solution.Definition: le_gnss_interface.h:527le_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:459le_result_t le_gnss_ForceWarmRestart(void)Satellite Vehicle of Glonass constellation.Definition: le_gnss_interface.h:481le_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)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)le_result_t le_gnss_TryConnectService(void)le_result_t le_gnss_SetAcquisitionRate(uint32_t rate)le_result_t le_gnss_DeleteSuplCertificate(uint8_t suplCertificateId)void le_gnss_ReleaseSampleRef(le_gnss_SampleRef_t positionSampleRef)Satellite Vehicle of SBAS constellation.Definition: le_gnss_interface.h:478le_result_t le_gnss_GetVerticalSpeed(le_gnss_SampleRef_t positionSampleRef, int32_t *vspeedPtr, int32_t *vspeedAccuracyPtr)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_result_t le_gnss_GetSatellitesInfo(le_gnss_SampleRef_t positionSampleRef, uint16_t *satIdPtr, size_t *satIdNumElementsPtr, le_gnss_Constellation_t *satConstPtr, size_t *satConstNumElementsPtr, bool *satUsedPtr, size_t *satUsedNumElementsPtr, uint8_t *satSnrPtr, size_t *satSnrNumElementsPtr, uint16_t *satAzimPtr, size_t *satAzimNumElementsPtr, uint8_t *satElevPtr, size_t *satElevNumElementsPtr)void le_gnss_ConnectService(void)le_result_t le_gnss_GetSatellitesStatus(le_gnss_SampleRef_t positionSampleRef, uint8_t *satsInViewCountPtr, uint8_t *satsTrackingCountPtr, uint8_t *satsUsedCountPtr)GALILEO constellation used in solution.Definition: le_gnss_interface.h:530le_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)GNSS constellation field not defined.Definition: le_gnss_interface.h:472le_result_t le_gnss_ForceHotRestart(void)le_result_t le_gnss_Enable(void)le_result_t le_gnss_GetGpsTime(le_gnss_SampleRef_t positionSampleRef, uint32_t *gpsWeekPtr, uint32_t *gpsTimeOfWeekPtr)le_result_t le_gnss_GetTimeAccuracy(le_gnss_SampleRef_t positionSampleRef, uint32_t *timeAccuracyPtr)struct le_gnss_PositionHandler * le_gnss_PositionHandlerRef_tDefinition: le_gnss_interface.h:541le_result_t le_gnss_GetDop(le_gnss_SampleRef_t positionSampleRef, uint16_t *hdopPtr, uint16_t *vdopPtr, uint16_t *pdopPtr)