Struct SYN_Power_Config¶
Power monitor configuration.
#include <syn_power.h>
Public Attributes¶
| Type | Name |
|---|---|
| SYN_ADC * | adc |
| int32_t | brownout_mv |
| void * | ctx |
| SYN_PowerCallback | on_brownout |
| SYN_PowerCallback | on_restore |
| int32_t | restore_mv |
Public Attributes Documentation¶
variable adc¶
ADC channel for voltage
variable brownout_mv¶
Low-voltage threshold (mV)
variable ctx¶
User context for callbacks
variable on_brownout¶
Called on low-voltage event
variable on_restore¶
Called when voltage restores
variable restore_mv¶
Voltage restore threshold (mV)
The documentation for this class was generated from the following file src/syntropic/system/syn_power.h