drivers: sensor: add hysteresis attribute
Add sensor API hysteresis attribute. This attribute allows for configuring trigger threshold hysteresis values. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
f72d4f898e
commit
13696f709e
1 changed files with 4 additions and 2 deletions
|
@ -225,8 +225,8 @@ enum sensor_trigger_type {
|
|||
/**
|
||||
* Trigger fires when channel reading transitions configured
|
||||
* thresholds. The thresholds are configured via the @ref
|
||||
* SENSOR_ATTR_LOWER_THRESH and @ref SENSOR_ATTR_UPPER_THRESH
|
||||
* attributes.
|
||||
* SENSOR_ATTR_LOWER_THRESH, @ref SENSOR_ATTR_UPPER_THRESH, and
|
||||
* @ref SENSOR_ATTR_HYSTERESIS attributes.
|
||||
*/
|
||||
SENSOR_TRIG_THRESHOLD,
|
||||
|
||||
|
@ -286,6 +286,8 @@ enum sensor_attribute {
|
|||
* outside the threshold for the trigger to fire.
|
||||
*/
|
||||
SENSOR_ATTR_SLOPE_DUR,
|
||||
/* Hysteresis for trigger thresholds. */
|
||||
SENSOR_ATTR_HYSTERESIS,
|
||||
/** Oversampling factor */
|
||||
SENSOR_ATTR_OVERSAMPLING,
|
||||
/** Sensor range, in SI units. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue