Struct SYN_Sensor¶
Sensor descriptor — owns the full read→filter→threshold pipeline.
#include <syn_sensor.h>
Public Attributes¶
| Type | Name |
|---|---|
| bool | enabled |
| void * | filter |
| uint8_t | filter_type |
| int16_t | filtered |
| SYN_Hysteresis | hyst |
| uint32_t | interval_ms |
| uint32_t | last_poll_tick |
| const char * | name |
| SYN_SensorThresholdCallback | on_high |
| SYN_SensorThresholdCallback | on_low |
| int16_t | raw |
| void * | read_ctx |
| SYN_SensorReadFunc | read_func |
| SYN_Signal * | stats |
| void * | threshold_ctx |
| bool | threshold_enabled |
Public Attributes Documentation¶
variable enabled¶
Polling enabled flag
variable filter¶
Pointer to filter instance
variable filter_type¶
SYN_SensorFilterType
variable filtered¶
Last filtered reading
variable hyst¶
Hysteresis state
variable interval_ms¶
Poll interval in ms
variable last_poll_tick¶
Tick of last poll
variable name¶
Human-readable name
variable on_high¶
Above-threshold callback
variable on_low¶
Below-threshold callback
variable raw¶
Last raw reading
variable read_ctx¶
Context for read callback
variable read_func¶
Hardware read callback
variable stats¶
Sliding window stats (if set)
variable threshold_ctx¶
Context for threshold cbs
variable threshold_enabled¶
Threshold monitoring on
The documentation for this class was generated from the following file src/syntropic/sensor/syn_sensor.h