Skip to content

Struct SYN_Sensor

ClassList > 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

bool SYN_Sensor::enabled;

Polling enabled flag


variable filter

void* SYN_Sensor::filter;

Pointer to filter instance


variable filter_type

uint8_t SYN_Sensor::filter_type;

SYN_SensorFilterType


variable filtered

int16_t SYN_Sensor::filtered;

Last filtered reading


variable hyst

SYN_Hysteresis SYN_Sensor::hyst;

Hysteresis state


variable interval_ms

uint32_t SYN_Sensor::interval_ms;

Poll interval in ms


variable last_poll_tick

uint32_t SYN_Sensor::last_poll_tick;

Tick of last poll


variable name

const char* SYN_Sensor::name;

Human-readable name


variable on_high

SYN_SensorThresholdCallback SYN_Sensor::on_high;

Above-threshold callback


variable on_low

SYN_SensorThresholdCallback SYN_Sensor::on_low;

Below-threshold callback


variable raw

int16_t SYN_Sensor::raw;

Last raw reading


variable read_ctx

void* SYN_Sensor::read_ctx;

Context for read callback


variable read_func

SYN_SensorReadFunc SYN_Sensor::read_func;

Hardware read callback


variable stats

SYN_Signal* SYN_Sensor::stats;

Sliding window stats (if set)


variable threshold_ctx

void* SYN_Sensor::threshold_ctx;

Context for threshold cbs


variable threshold_enabled

bool SYN_Sensor::threshold_enabled;

Threshold monitoring on



The documentation for this class was generated from the following file src/syntropic/sensor/syn_sensor.h