|
Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
Sensor value data structure for single 1-axis value. More...
#include <sensing_datatypes.h>
Data Fields | ||
| struct sensing_sensor_value_header | header | |
| Header of the sensor value data structure. | ||
| int8_t | shift | |
| The shift value for the q31_t v reading. | ||
| struct { | ||
| uint32_t timestamp_delta | ||
| Timestamp delta of the reading. More... | ||
| q31_t v | ||
| Value of the reading. More... | ||
| } | readings [1] | |
| Array of readings. | ||
Sensor value data structure for single 1-axis value.
struct sensing_sensor_value_q31 can be used by SENSING_SENSOR_TYPE_MOTION_HINGE_ANGLE sensor q31 version
| struct sensing_sensor_value_header sensing_sensor_value_q31::header |
Header of the sensor value data structure.
| struct { ... } sensing_sensor_value_q31::readings[1] |
Array of readings.
| int8_t sensing_sensor_value_q31::shift |
The shift value for the q31_t v reading.
| uint32_t sensing_sensor_value_q31::timestamp_delta |
Timestamp delta of the reading.
Unit is micro seconds.
| q31_t sensing_sensor_value_q31::v |
Value of the reading.
For SENSING_SENSOR_TYPE_MOTION_HINGE_ANGLE, the unit is degrees.