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 has145 //--------------------------------------------------------------------------------------------------148 * Connect the current client thread to the service providing this API. Block until the service is151 * For each thread that wants to use this API, either ConnectService or TryConnectService must be152 * called before any other functions in this API. Normally, ConnectService is automatically called157 //--------------------------------------------------------------------------------------------------163 //--------------------------------------------------------------------------------------------------166 * Try to connect the current client thread to the service providing this API. Return with an error169 * For each thread that wants to use this API, either ConnectService or TryConnectService must be170 * called before any other functions in this API. Normally, ConnectService is automatically called177 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.178 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).181 //--------------------------------------------------------------------------------------------------187 //--------------------------------------------------------------------------------------------------193 * longer a connection to the service, and the functions in this API can't be used. For details, see198 //--------------------------------------------------------------------------------------------------205 //--------------------------------------------------------------------------------------------------209 //--------------------------------------------------------------------------------------------------213 //--------------------------------------------------------------------------------------------------217 //--------------------------------------------------------------------------------------------------221 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------232 (237 //--------------------------------------------------------------------------------------------------243 //--------------------------------------------------------------------------------------------------263 //--------------------------------------------------------------------------------------------------267 //--------------------------------------------------------------------------------------------------274 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------298 //--------------------------------------------------------------------------------------------------310 //--------------------------------------------------------------------------------------------------329 //--------------------------------------------------------------------------------------------------338 //--------------------------------------------------------------------------------------------------354 //--------------------------------------------------------------------------------------------------363 //--------------------------------------------------------------------------------------------------376 //--------------------------------------------------------------------------------------------------382 * @return LE_OUT_OF_RANGE One of the retrieved parameter is invalid (set to INT32_MAX, UINT32_MAX).385 * @note hSpeedPtr, hSpeedAccuracyPtr, vSpeedPtr, vSpeedAccuracyPtr can be set to NULL if not needed.387 //--------------------------------------------------------------------------------------------------403 //--------------------------------------------------------------------------------------------------413 //--------------------------------------------------------------------------------------------------423 //--------------------------------------------------------------------------------------------------434 //--------------------------------------------------------------------------------------------------444 //--------------------------------------------------------------------------------------------------458 //--------------------------------------------------------------------------------------------------474 //--------------------------------------------------------------------------------------------------483 //--------------------------------------------------------------------------------------------------502 //--------------------------------------------------------------------------------------------------511 //--------------------------------------------------------------------------------------------------527 //--------------------------------------------------------------------------------------------------540 //--------------------------------------------------------------------------------------------------553 //--------------------------------------------------------------------------------------------------558 * @return LE_OUT_OF_RANGE One of the retrieved parameter is invalid (set to INT32_MAX, UINT32_MAX).566 //--------------------------------------------------------------------------------------------------579 //--------------------------------------------------------------------------------------------------592 //--------------------------------------------------------------------------------------------------605 //--------------------------------------------------------------------------------------------------619 //--------------------------------------------------------------------------------------------------632 //--------------------------------------------------------------------------------------------------646 //--------------------------------------------------------------------------------------------------659 //--------------------------------------------------------------------------------------------------666 //--------------------------------------------------------------------------------------------------673 //--------------------------------------------------------------------------------------------------681 //--------------------------------------------------------------------------------------------------688 //--------------------------------------------------------------------------------------------------695 //--------------------------------------------------------------------------------------------------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)le_result_t le_pos_GetMotion(uint32_t *hSpeedPtr, uint32_t *hSpeedAccuracyPtr, int32_t *vSpeedPtr, int32_t *vSpeedAccuracyPtr)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_sample_GetHorizontalSpeed(le_pos_SampleRef_t positionSampleRef, uint32_t *hSpeedPtr, uint32_t *hSpeedAccuracyPtr)le_result_t le_pos_GetDirection(int32_t *directionPtr, int32_t *directionAccuracyPtr)uint32_t le_pos_GetAcquisitionRate(void)void(* le_pos_MovementHandlerFunc_t)(le_pos_SampleRef_t positionSampleRef, void *contextPtr)Definition: le_pos_interface.h:232le_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_SetAcquisitionRate(uint32_t acquisitionRate)struct le_pos_MovementHandler * le_pos_MovementHandlerRef_tDefinition: le_pos_interface.h:218le_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)