Struct 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¶
ADC channel
variable brownout¶
Currently in brownout?
variable ctx¶
Callback context
variable errlog¶
Optional error logging
variable hyst¶
Brownout hysteresis state
variable on_brownout¶
Brownout callback
variable on_restore¶
Restore callback
variable stats¶
Optional noise stats
variable voltage_mv¶
Last reading in millivolts
The documentation for this class was generated from the following file src/syntropic/system/syn_power.h