Skip to content

Struct SYN_Power_Config

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

SYN_ADC* SYN_Power_Config::adc;

ADC channel for voltage


variable brownout_mv

int32_t SYN_Power_Config::brownout_mv;

Low-voltage threshold (mV)


variable ctx

void* SYN_Power_Config::ctx;

User context for callbacks


variable on_brownout

SYN_PowerCallback SYN_Power_Config::on_brownout;

Called on low-voltage event


variable on_restore

SYN_PowerCallback SYN_Power_Config::on_restore;

Called when voltage restores


variable restore_mv

int32_t SYN_Power_Config::restore_mv;

Voltage restore threshold (mV)



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