Defines the IMU sensor.
Functions | |
DW_API_PUBLIC dwStatus | dwSensorIMU_popFrame (dwIMUFrame *const frame, dwSensorHandle_t const sensor) |
Returns any IMU data previously processed through the raw data stream. More... | |
DW_API_PUBLIC dwStatus | dwSensorIMU_popFrameNew (dwIMUFrameNew *const frame, dwSensorHandle_t const sensor) |
Returns any IMU Frame New previously processed through the raw data stream. More... | |
DW_API_PUBLIC dwStatus | dwSensorIMU_processRawData (uint8_t const *const data, size_t const size, dwSensorHandle_t const sensor) |
Decodes IMU frames from raw data. More... | |
DW_API_PUBLIC dwStatus | dwSensorIMU_processRawDataNew (uint8_t const *const data, size_t const size, dwSensorHandle_t const sensor) |
Reads the IMU frame New from raw data. More... | |
DW_API_PUBLIC dwStatus | dwSensorIMU_readFrame (dwIMUFrame *const frame, dwTime_t const timeoutUs, dwSensorHandle_t const sensor) |
Reads the next IMU frame from the sensor within a given timeout. More... | |
DW_API_PUBLIC dwStatus | dwSensorIMU_readFrameNew (dwIMUFrameNew *const frame, dwTime_t const timeoutUs, dwSensorHandle_t const sensor) |
Reads the next IMU frame New from the sensor within a given timeout. More... | |
DW_API_PUBLIC dwStatus dwSensorIMU_popFrame | ( | dwIMUFrame *const | frame, |
dwSensorHandle_t const | sensor | ||
) |
Returns any IMU data previously processed through the raw data stream.
This happens on the CPU thread where the function is called, incurring an additional load on that thread.
Internally this API function will
[out] | frame | Pointer to an IMU frame structure to be filled with new data. |
[in] | sensor | Sensor handle of the sensor previously created with 'dwSAL_createSensor()'. |
DW_API_PUBLIC dwStatus dwSensorIMU_popFrameNew | ( | dwIMUFrameNew *const | frame, |
dwSensorHandle_t const | sensor | ||
) |
Returns any IMU Frame New previously processed through the raw data stream.
This happens on the CPU thread where the function is called, incurring an additional load on that thread.
[out] | frame | Pointer to an IMU frame New structure to be filled with new data. |
[in] | sensor | Sensor handle of the sensor previously created with 'dwSAL_createSensor()'. |
DW_API_PUBLIC dwStatus dwSensorIMU_processRawData | ( | uint8_t const *const | data, |
size_t const | size, | ||
dwSensorHandle_t const | sensor | ||
) |
Decodes IMU frames from raw data.
Any processed messages can be picked up using the dwSensorIMU_readFrame() or dwSensorIMU_popFrame() function. This happens on the CPU thread where the function is called, incurring an additional load on that thread.
Internally this API function will
[in] | data | Undecoded imu data. |
[in] | size | Size in bytes of the raw data. |
[in] | sensor | Sensor handle of the sensor previously created with 'dwSAL_createSensor()'. |
DW_API_PUBLIC dwStatus dwSensorIMU_processRawDataNew | ( | uint8_t const *const | data, |
size_t const | size, | ||
dwSensorHandle_t const | sensor | ||
) |
Reads the IMU frame New from raw data.
Any processed messages can be picked up using the dwSensorIMU_readFrameNew() method. This happens on the CPU thread where the function is called, incurring an additional load on that thread.
[in] | data | Undecoded imu data. |
[in] | size | Size in bytes of the raw data. |
[in] | sensor | Sensor handle of the sensor previously created with 'dwSAL_createSensor()'. |
DW_API_PUBLIC dwStatus dwSensorIMU_readFrame | ( | dwIMUFrame *const | frame, |
dwTime_t const | timeoutUs, | ||
dwSensorHandle_t const | sensor | ||
) |
Reads the next IMU frame from the sensor within a given timeout.
The method blocks until either a new valid frame is received from the sensor or the given timeout is exceeded.
Internally this API function will
[out] | frame | A pointer to an IMU frame structure to be filled with new data. |
[in] | timeoutUs | Timeout, in us, to wait for a new message. Special values: DW_TIMEOUT_INFINITE - to wait infinitely. Zero - means polling of internal queue. |
[in] | sensor | Sensor handle of the IMU sensor previously created with dwSAL_createSensor(). |
DW_API_PUBLIC dwStatus dwSensorIMU_readFrameNew | ( | dwIMUFrameNew *const | frame, |
dwTime_t const | timeoutUs, | ||
dwSensorHandle_t const | sensor | ||
) |
Reads the next IMU frame New from the sensor within a given timeout.
The method blocks until either a new valid frame is received from the sensor or the given timeout is exceeded.
[out] | frame | A pointer to an IMU frame New structure to be filled with new data. |
[in] | timeoutUs | Timeout, in us, to wait for a new message. Special values: DW_TIMEOUT_INFINITE - to wait infinitely. Zero - means polling of internal queue. |
[in] | sensor | Sensor handle of the IMU sensor previously created with dwSAL_createSensor(). |