Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sensing_sensor_config Struct Reference

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...
 
};  
 

Detailed Description

Sensing subsystem sensor configure, including interval, sensitivity, latency.

Field Documentation

◆ [union]

union { ... } sensing_sensor_config

◆ attri

enum sensing_sensor_attribute sensing_sensor_config::attri

Attribute of the sensor configuration.

◆ data_field

int8_t sensing_sensor_config::data_field

SENSING_SENSITIVITY_INDEX_ALL

Data field of the sensor configuration.

◆ interval

uint32_t sensing_sensor_config::interval

Interval between two sensor samples in microseconds (us).

◆ latency

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.

◆ sensitivity

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.


The documentation for this struct was generated from the following file: