Skip to content

Struct SYN_Power

ClassList > SYN_Power

Power monitor instance — ADC + hysteresis + brownout state.

  • #include <syn_power.h>

Public Attributes

Type Name
SYN_ADC * adc
bool brownout
void * ctx
SYN_ErrLog * errlog
SYN_Hysteresis hyst
SYN_PowerCallback on_brownout
SYN_PowerCallback on_restore
SYN_Signal * stats
int32_t voltage_mv

Public Attributes Documentation

variable adc

SYN_ADC* SYN_Power::adc;

ADC channel


variable brownout

bool SYN_Power::brownout;

Currently in brownout?


variable ctx

void* SYN_Power::ctx;

Callback context


variable errlog

SYN_ErrLog* SYN_Power::errlog;

Optional error logging


variable hyst

SYN_Hysteresis SYN_Power::hyst;

Brownout hysteresis state


variable on_brownout

SYN_PowerCallback SYN_Power::on_brownout;

Brownout callback


variable on_restore

SYN_PowerCallback SYN_Power::on_restore;

Restore callback


variable stats

SYN_Signal* SYN_Power::stats;

Optional noise stats


variable voltage_mv

int32_t SYN_Power::voltage_mv;

Last reading in millivolts



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