le_pos_interface.h
Go to the documentation of this file.
81 * The @c le_pos_GetFixState() function gets the position fix state. The fix state allows the user84 * The @c le_pos_SetDistanceResolution() function sets the resolution for the positioning distance114 * @note The le_pos_RemoveMovementHandler() API does not delete the Position Object. The caller has128 * The acquisition rate set will take effect once a request of activation of the positioning service161 //--------------------------------------------------------------------------------------------------165 //--------------------------------------------------------------------------------------------------168 //--------------------------------------------------------------------------------------------------171 * Connect the current client thread to the service providing this API. Block until the service is174 * For each thread that wants to use this API, either ConnectService or TryConnectService must be175 * called before any other functions in this API. Normally, ConnectService is automatically called180 //--------------------------------------------------------------------------------------------------186 //--------------------------------------------------------------------------------------------------189 * Try to connect the current client thread to the service providing this API. Return with an error192 * For each thread that wants to use this API, either ConnectService or TryConnectService must be193 * called before any other functions in this API. Normally, ConnectService is automatically called202 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).205 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------215 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants218 //--------------------------------------------------------------------------------------------------225 //--------------------------------------------------------------------------------------------------231 * longer a connection to the service, and the functions in this API can't be used. For details, see236 //--------------------------------------------------------------------------------------------------243 //--------------------------------------------------------------------------------------------------247 //--------------------------------------------------------------------------------------------------264 //--------------------------------------------------------------------------------------------------268 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------289 //--------------------------------------------------------------------------------------------------293 //--------------------------------------------------------------------------------------------------297 //--------------------------------------------------------------------------------------------------301 //--------------------------------------------------------------------------------------------------306 //--------------------------------------------------------------------------------------------------308 (315 //--------------------------------------------------------------------------------------------------322 //--------------------------------------------------------------------------------------------------339 //--------------------------------------------------------------------------------------------------343 //--------------------------------------------------------------------------------------------------350 //--------------------------------------------------------------------------------------------------361 //--------------------------------------------------------------------------------------------------372 //--------------------------------------------------------------------------------------------------384 //--------------------------------------------------------------------------------------------------399 //--------------------------------------------------------------------------------------------------408 //--------------------------------------------------------------------------------------------------421 //--------------------------------------------------------------------------------------------------430 //--------------------------------------------------------------------------------------------------441 //--------------------------------------------------------------------------------------------------454 //--------------------------------------------------------------------------------------------------467 //--------------------------------------------------------------------------------------------------480 //--------------------------------------------------------------------------------------------------490 //--------------------------------------------------------------------------------------------------492 * Get the direction indication. Direction of movement is the direction that the vehicle or person504 //--------------------------------------------------------------------------------------------------514 //--------------------------------------------------------------------------------------------------524 //--------------------------------------------------------------------------------------------------531 //--------------------------------------------------------------------------------------------------545 //--------------------------------------------------------------------------------------------------558 //--------------------------------------------------------------------------------------------------567 //--------------------------------------------------------------------------------------------------582 //--------------------------------------------------------------------------------------------------591 //--------------------------------------------------------------------------------------------------604 //--------------------------------------------------------------------------------------------------617 //--------------------------------------------------------------------------------------------------628 //--------------------------------------------------------------------------------------------------642 //--------------------------------------------------------------------------------------------------653 //--------------------------------------------------------------------------------------------------666 //--------------------------------------------------------------------------------------------------677 //--------------------------------------------------------------------------------------------------679 * Get the position sample's heading. Heading is the direction that the vehicle or person is facing.693 //--------------------------------------------------------------------------------------------------705 //--------------------------------------------------------------------------------------------------707 * Get the position sample's direction. Direction of movement is the direction that the vehicle or722 //--------------------------------------------------------------------------------------------------734 //--------------------------------------------------------------------------------------------------744 //--------------------------------------------------------------------------------------------------753 //--------------------------------------------------------------------------------------------------760 //--------------------------------------------------------------------------------------------------767 //--------------------------------------------------------------------------------------------------775 //--------------------------------------------------------------------------------------------------782 //--------------------------------------------------------------------------------------------------789 //--------------------------------------------------------------------------------------------------795 //--------------------------------------------------------------------------------------------------809 //--------------------------------------------------------------------------------------------------le_result_t le_pos_sample_GetDirection(le_pos_SampleRef_t positionSampleRef, uint32_t *directionPtr, uint32_t *directionAccuracyPtr)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_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_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_GetHeading(uint32_t *headingPtr, uint32_t *headingAccuracyPtr)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)void le_pos_SetServerDisconnectHandler(le_pos_DisconnectHandler_t disconnectHandler, void *contextPtr)uint32_t le_pos_GetAcquisitionRate(void)le_result_t le_pos_Get2DLocation(int32_t *latitudePtr, int32_t *longitudePtr, int32_t *hAccuracyPtr)le_result_t le_pos_sample_GetHeading(le_pos_SampleRef_t positionSampleRef, uint32_t *headingPtr, uint32_t *headingAccuracyPtr)le_result_t le_pos_sample_GetVerticalSpeed(le_pos_SampleRef_t positionSampleRef, int32_t *vspeedPtr, int32_t *vspeedAccuracyPtr)void(* le_pos_MovementHandlerFunc_t)(le_pos_SampleRef_t positionSampleRef, void *contextPtr)Definition: le_pos_interface.h:308le_result_t le_pos_SetDistanceResolution(le_pos_Resolution_t resolution)le_result_t le_pos_GetDirection(uint32_t *directionPtr, uint32_t *directionAccuracyPtr)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)void le_pos_RemoveMovementHandler(le_pos_MovementHandlerRef_t handlerRef)le_result_t le_pos_sample_GetFixState(le_pos_SampleRef_t positionSampleRef, le_pos_FixState_t *statePtr)void(* le_pos_DisconnectHandler_t)(void *)Definition: le_pos_interface.h:166struct le_pos_MovementHandler * le_pos_MovementHandlerRef_tDefinition: le_pos_interface.h:298le_result_t le_pos_GetFixState(le_pos_FixState_t *statePtr)void le_pos_sample_Release(le_pos_SampleRef_t positionSampleRef)Estimated (i.e. forward predicted) position fix.Definition: le_pos_interface.h:256