le_pos_interface.h
Go to the documentation of this file.
69 * degrees (where 0 is True North) and its associated accuracy value. Heading is the direction that73 * degrees (where 0 is True North) and its associated accuracy value. Direction of movement is the102 * @note The le_pos_RemoveMovementHandler() API does not delete the Position Object. The caller has138 * If there is no configuration for 'acquisitionRate', it will be automatically set to 5 seconds.154 //--------------------------------------------------------------------------------------------------157 * Connect the current client thread to the service providing this API. Block until the service is160 * For each thread that wants to use this API, either ConnectService or TryConnectService must be161 * called before any other functions in this API. Normally, ConnectService is automatically called166 //--------------------------------------------------------------------------------------------------172 //--------------------------------------------------------------------------------------------------175 * Try to connect the current client thread to the service providing this API. Return with an error178 * For each thread that wants to use this API, either ConnectService or TryConnectService must be179 * called before any other functions in this API. Normally, ConnectService is automatically called186 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.187 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).190 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------202 * longer a connection to the service, and the functions in this API can't be used. For details, see207 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------218 //--------------------------------------------------------------------------------------------------222 //--------------------------------------------------------------------------------------------------226 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------239 //--------------------------------------------------------------------------------------------------241 (246 //--------------------------------------------------------------------------------------------------252 //--------------------------------------------------------------------------------------------------272 //--------------------------------------------------------------------------------------------------276 //--------------------------------------------------------------------------------------------------283 //--------------------------------------------------------------------------------------------------294 //--------------------------------------------------------------------------------------------------307 //--------------------------------------------------------------------------------------------------319 //--------------------------------------------------------------------------------------------------338 //--------------------------------------------------------------------------------------------------347 //--------------------------------------------------------------------------------------------------363 //--------------------------------------------------------------------------------------------------372 //--------------------------------------------------------------------------------------------------385 //--------------------------------------------------------------------------------------------------391 * @return LE_OUT_OF_RANGE One of the retrieved parameter is invalid (set to INT32_MAX, UINT32_MAX).394 * @note hSpeedPtr, hSpeedAccuracyPtr, vSpeedPtr, vSpeedAccuracyPtr can be set to NULL if not needed.396 //--------------------------------------------------------------------------------------------------412 //--------------------------------------------------------------------------------------------------422 //--------------------------------------------------------------------------------------------------432 //--------------------------------------------------------------------------------------------------443 //--------------------------------------------------------------------------------------------------453 //--------------------------------------------------------------------------------------------------467 //--------------------------------------------------------------------------------------------------483 //--------------------------------------------------------------------------------------------------492 //--------------------------------------------------------------------------------------------------511 //--------------------------------------------------------------------------------------------------520 //--------------------------------------------------------------------------------------------------536 //--------------------------------------------------------------------------------------------------549 //--------------------------------------------------------------------------------------------------562 //--------------------------------------------------------------------------------------------------567 * @return LE_OUT_OF_RANGE One of the retrieved parameter is invalid (set to INT32_MAX, UINT32_MAX).575 //--------------------------------------------------------------------------------------------------588 //--------------------------------------------------------------------------------------------------601 //--------------------------------------------------------------------------------------------------614 //--------------------------------------------------------------------------------------------------628 //--------------------------------------------------------------------------------------------------641 //--------------------------------------------------------------------------------------------------655 //--------------------------------------------------------------------------------------------------668 //--------------------------------------------------------------------------------------------------675 //--------------------------------------------------------------------------------------------------le_result_t le_pos_sample_Get2DLocation(le_pos_SampleRef_t positionSampleRef, int32_t *latitudePtr, int32_t *longitudePtr, int32_t *horizontalAccuracyPtr)le_result_t le_pos_GetDate(uint16_t *yearPtr, uint16_t *monthPtr, uint16_t *dayPtr)le_result_t le_pos_GetHeading(int32_t *headingPtr, int32_t *headingAccuracyPtr)le_pos_MovementHandlerRef_t le_pos_AddMovementHandler(uint32_t horizontalMagnitude, uint32_t verticalMagnitude, le_pos_MovementHandlerFunc_t handlerPtr, void *contextPtr)le_result_t le_pos_TryConnectService(void)le_result_t le_pos_sample_GetHeading(le_pos_SampleRef_t positionSampleRef, int32_t *headingPtr, int32_t *headingAccuracyPtr)le_result_t le_pos_sample_GetTime(le_pos_SampleRef_t positionSampleRef, uint16_t *hoursPtr, uint16_t *minutesPtr, uint16_t *secondsPtr, uint16_t *millisecondsPtr)le_result_t le_pos_sample_GetDate(le_pos_SampleRef_t positionSampleRef, uint16_t *yearPtr, uint16_t *monthPtr, uint16_t *dayPtr)le_result_t le_pos_sample_GetAltitude(le_pos_SampleRef_t positionSampleRef, int32_t *altitudePtr, int32_t *altitudeAccuracyPtr)void le_pos_DisconnectService(void)void le_pos_ConnectService(void)le_result_t le_pos_Get3DLocation(int32_t *latitudePtr, int32_t *longitudePtr, int32_t *hAccuracyPtr, int32_t *altitudePtr, int32_t *vAccuracyPtr)le_result_t le_pos_GetDirection(int32_t *directionPtr, int32_t *directionAccuracyPtr)le_result_t le_pos_GetMotion(uint32_t *hSpeedPtrPtr, int32_t *hSpeedAccuracyPtrPtr, int32_t *vSpeedPtrPtr, int32_t *vSpeedAccuracyPtrPtr)void(* le_pos_MovementHandlerFunc_t)(le_pos_SampleRef_t positionSampleRef, void *contextPtr)Definition: le_pos_interface.h:241le_result_t le_pos_Get2DLocation(int32_t *latitudePtr, int32_t *longitudePtr, int32_t *hAccuracyPtr)le_result_t le_pos_sample_GetVerticalSpeed(le_pos_SampleRef_t positionSampleRef, int32_t *vspeedPtr, int32_t *vspeedAccuracyPtr)void le_pos_RemoveMovementHandler(le_pos_MovementHandlerRef_t addHandlerRef)le_result_t le_pos_GetTime(uint16_t *hoursPtr, uint16_t *minutesPtr, uint16_t *secondsPtr, uint16_t *millisecondsPtr)le_result_t le_pos_sample_GetHorizontalSpeed(le_pos_SampleRef_t positionSampleRef, uint32_t *hspeedPtr, int32_t *hspeedAccuracyPtr)struct le_pos_MovementHandler * le_pos_MovementHandlerRef_tDefinition: le_pos_interface.h:227le_result_t le_pos_sample_GetDirection(le_pos_SampleRef_t positionSampleRef, int32_t *directionPtr, int32_t *directionAccuracyPtr)void le_pos_sample_Release(le_pos_SampleRef_t positionSampleRef)