Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
Sensing subsystem sensor configure, including interval, sensitivity, latency. More...
#include <sensing.h>
Data Fields | ||
enum sensing_sensor_attribute | attri | |
Attribute of the sensor configuration. | ||
int8_t | data_field | |
SENSING_SENSITIVITY_INDEX_ALL | ||
union { | ||
uint32_t interval | ||
Interval between two sensor samples in microseconds (us). More... | ||
uint32_t sensitivity | ||
Sensitivity threshold for reporting new data. More... | ||
uint64_t latency | ||
Maximum duration for batching sensor samples before reporting in microseconds (us). More... | ||
}; | ||
Sensing subsystem sensor configure, including interval, sensitivity, latency.
union { ... } sensing_sensor_config |
enum sensing_sensor_attribute sensing_sensor_config::attri |
Attribute of the sensor configuration.
int8_t sensing_sensor_config::data_field |
Data field of the sensor configuration.
uint32_t sensing_sensor_config::interval |
Interval between two sensor samples in microseconds (us).
uint64_t sensing_sensor_config::latency |
Maximum duration for batching sensor samples before reporting in microseconds (us).
This defines how long sensor samples can be accumulated before they must be reported.
uint32_t sensing_sensor_config::sensitivity |
Sensitivity threshold for reporting new data.
A new sensor sample is reported only if the difference between it and the previous sample exceeds this sensitivity value.