4.6.1.1 Struct bod12_config

Configuration structure for a BOD12 module.

Table 4-1. Members
TypeNameDescription
enum bod12_actionaction

Action to perform when a low power detection is made

boolhysteresis

If true, enables detection hysteresis

uint8_tlevel

BOD12 level to trigger at (see electrical section of device datasheet)

enum bod12_mode_in_activemode_in_active

BOD12 configuration in active mode

enum bod12_mode_in_standbymode_in_standby

BOD12 configuration in backup sleep mode

enum bod12_prescaleprescaler

Input sampler clock prescaler factor, to reduce the 1KHz clock from the ULP32K to lower the sampling rate of the BOD12

boolrun_in_standby

If true, the BOD12 is kept enabled and sampled during device sleep