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 |232 * With le_gnss_GetExtendedEphemerisValidity(), you will to get the validity of the last injected245 * That 3GPP User Plane A-GNSS (Assisted GNSS) protocol is defined by two different standardization246 * bodies, 3GPP and Open Mobile Alliance (OMA). For more information, please refer to the standard.251 *, then returns the retrieved GNSS data to the SUPL (Secure User Plan Location) server, where the255 * server. The MS measures the signals from the GNSS satellites and makes the position calculation.268 * The SUPL server is configured using the le_gnss_SetSuplServerUrl() function. That function sets272 * le_gnss_InjectSuplCertificate() function and deleted through the le_gnss_DeleteSuplCertificate()334 //--------------------------------------------------------------------------------------------------337 * Connect the current client thread to the service providing this API. Block until the service is340 * For each thread that wants to use this API, either ConnectService or TryConnectService must be341 * called before any other functions in this API. Normally, ConnectService is automatically called346 //--------------------------------------------------------------------------------------------------352 //--------------------------------------------------------------------------------------------------355 * Try to connect the current client thread to the service providing this API. Return with an error358 * For each thread that wants to use this API, either ConnectService or TryConnectService must be359 * called before any other functions in this API. Normally, ConnectService is automatically called366 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.367 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).370 //--------------------------------------------------------------------------------------------------376 //--------------------------------------------------------------------------------------------------382 * longer a connection to the service, and the functions in this API can't be used. For details, see387 //--------------------------------------------------------------------------------------------------394 //--------------------------------------------------------------------------------------------------398 //--------------------------------------------------------------------------------------------------402 //--------------------------------------------------------------------------------------------------406 //--------------------------------------------------------------------------------------------------410 //--------------------------------------------------------------------------------------------------415 //--------------------------------------------------------------------------------------------------419 //--------------------------------------------------------------------------------------------------423 //--------------------------------------------------------------------------------------------------427 //--------------------------------------------------------------------------------------------------432 //--------------------------------------------------------------------------------------------------436 //--------------------------------------------------------------------------------------------------440 //--------------------------------------------------------------------------------------------------444 //--------------------------------------------------------------------------------------------------448 //--------------------------------------------------------------------------------------------------466 //--------------------------------------------------------------------------------------------------470 //--------------------------------------------------------------------------------------------------494 //--------------------------------------------------------------------------------------------------498 //--------------------------------------------------------------------------------------------------513 //--------------------------------------------------------------------------------------------------519 //--------------------------------------------------------------------------------------------------537 //--------------------------------------------------------------------------------------------------541 //--------------------------------------------------------------------------------------------------545 //--------------------------------------------------------------------------------------------------554 //--------------------------------------------------------------------------------------------------556 (561 //--------------------------------------------------------------------------------------------------571 //--------------------------------------------------------------------------------------------------578 //--------------------------------------------------------------------------------------------------586 //--------------------------------------------------------------------------------------------------593 //--------------------------------------------------------------------------------------------------602 //--------------------------------------------------------------------------------------------------608 //--------------------------------------------------------------------------------------------------617 //--------------------------------------------------------------------------------------------------623 //--------------------------------------------------------------------------------------------------634 //--------------------------------------------------------------------------------------------------641 //--------------------------------------------------------------------------------------------------650 //--------------------------------------------------------------------------------------------------660 //--------------------------------------------------------------------------------------------------671 //--------------------------------------------------------------------------------------------------677 //--------------------------------------------------------------------------------------------------688 //--------------------------------------------------------------------------------------------------694 //--------------------------------------------------------------------------------------------------704 //--------------------------------------------------------------------------------------------------710 //--------------------------------------------------------------------------------------------------720 //--------------------------------------------------------------------------------------------------726 //--------------------------------------------------------------------------------------------------736 //--------------------------------------------------------------------------------------------------742 //--------------------------------------------------------------------------------------------------752 //--------------------------------------------------------------------------------------------------758 //--------------------------------------------------------------------------------------------------768 //--------------------------------------------------------------------------------------------------775 //--------------------------------------------------------------------------------------------------786 //--------------------------------------------------------------------------------------------------792 //--------------------------------------------------------------------------------------------------803 //--------------------------------------------------------------------------------------------------809 //--------------------------------------------------------------------------------------------------820 //--------------------------------------------------------------------------------------------------827 //--------------------------------------------------------------------------------------------------836 //--------------------------------------------------------------------------------------------------843 //--------------------------------------------------------------------------------------------------853 //--------------------------------------------------------------------------------------------------863 //--------------------------------------------------------------------------------------------------867 //--------------------------------------------------------------------------------------------------874 //--------------------------------------------------------------------------------------------------884 //--------------------------------------------------------------------------------------------------894 //--------------------------------------------------------------------------------------------------912 * @note Altitude is in meters, above Mean Sea Level, with 3 decimal places (3047 = 3.047 meters).917 //--------------------------------------------------------------------------------------------------933 //--------------------------------------------------------------------------------------------------942 * @note Altitude is in meters, above Mean Sea Level, with 3 decimal places (3047 = 3.047 meters).951 //--------------------------------------------------------------------------------------------------964 //--------------------------------------------------------------------------------------------------976 //--------------------------------------------------------------------------------------------------995 //--------------------------------------------------------------------------------------------------1007 //--------------------------------------------------------------------------------------------------1020 //--------------------------------------------------------------------------------------------------1032 //--------------------------------------------------------------------------------------------------1042 //--------------------------------------------------------------------------------------------------1054 //--------------------------------------------------------------------------------------------------1070 //--------------------------------------------------------------------------------------------------1083 //--------------------------------------------------------------------------------------------------1097 //--------------------------------------------------------------------------------------------------1114 //--------------------------------------------------------------------------------------------------1129 //--------------------------------------------------------------------------------------------------1144 //--------------------------------------------------------------------------------------------------1159 //--------------------------------------------------------------------------------------------------1178 //--------------------------------------------------------------------------------------------------1230 //--------------------------------------------------------------------------------------------------1242 //--------------------------------------------------------------------------------------------------1258 //--------------------------------------------------------------------------------------------------1272 //--------------------------------------------------------------------------------------------------1288 //--------------------------------------------------------------------------------------------------1297 * - LE_OUT_OF_RANGE One of the retrieved parameter is invalid (set to UINT16_MAX or INT32_MAX).1303 //--------------------------------------------------------------------------------------------------1323 //--------------------------------------------------------------------------------------------------1333 //--------------------------------------------------------------------------------------------------1339 //--------------------------------------------------------------------------------------------------1346 //--------------------------------------------------------------------------------------------------1353 //--------------------------------------------------------------------------------------------------1363 //--------------------------------------------------------------------------------------------------1370 //--------------------------------------------------------------------------------------------------1378 //--------------------------------------------------------------------------------------------------1385 //--------------------------------------------------------------------------------------------------1397 //--------------------------------------------------------------------------------------------------1404 //--------------------------------------------------------------------------------------------------1414 //--------------------------------------------------------------------------------------------------1428 //--------------------------------------------------------------------------------------------------1438 //--------------------------------------------------------------------------------------------------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:556Satellite Vehicle of Galileo constellation.Definition: le_gnss_interface.h:485le_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:525le_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:476BEIDOU constellation used in solution.Definition: le_gnss_interface.h:528le_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:460le_result_t le_gnss_ForceWarmRestart(void)Satellite Vehicle of Glonass constellation.Definition: le_gnss_interface.h:482le_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:479le_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:531le_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_gnss_SampleRef_t le_gnss_GetLastSampleRef(void)le_result_t le_gnss_SetConstellation(le_gnss_ConstellationBitMask_t constellationMask)GNSS constellation field not defined.Definition: le_gnss_interface.h:473le_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_GetSatellitesLatency(le_gnss_SampleRef_t positionSampleRef, uint16_t *satIdPtr, size_t *satIdNumElementsPtr, int32_t *latencyPtr, size_t *latencyNumElementsPtr)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:542le_result_t le_gnss_GetDop(le_gnss_SampleRef_t positionSampleRef, uint16_t *hdopPtr, uint16_t *vdopPtr, uint16_t *pdopPtr)