Microchip® Advanced Software Framework

bod12_config Struct Reference

Configuration structure for a BOD12 module.

#include <bod_feature.h>

Data Fields

enum bod12_action action
 Action to perform when a low power detection is made. More...
 
bool hysteresis
 If true, enables detection hysteresis. More...
 
uint8_t level
 BOD12 level to trigger at (see electrical section of device datasheet) More...
 
enum bod12_mode_in_active mode_in_active
 BOD12 configuration in active mode. More...
 
enum bod12_mode_in_standby mode_in_standby
 BOD12 configuration in backup sleep mode. More...
 
enum bod12_prescale prescaler
 Input sampler clock prescaler factor, to reduce the 1KHz clock from the ULP32K to lower the sampling rate of the BOD12. More...
 
bool run_in_standby
 If true, the BOD12 is kept enabled and sampled during device sleep. More...
 

enum bod12_action bod12_config::action

Action to perform when a low power detection is made.

Referenced by bod12_get_config_defaults(), and bod12_set_config().

bool bod12_config::hysteresis

If true, enables detection hysteresis.

Referenced by bod12_get_config_defaults(), and bod12_set_config().

uint8_t bod12_config::level

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

Referenced by bod12_get_config_defaults(), and bod12_set_config().

enum bod12_mode_in_active bod12_config::mode_in_active

BOD12 configuration in active mode.

Referenced by bod12_get_config_defaults(), and bod12_set_config().

enum bod12_mode_in_standby bod12_config::mode_in_standby

BOD12 configuration in backup sleep mode.

Referenced by bod12_get_config_defaults(), and bod12_set_config().

enum bod12_prescale bod12_config::prescaler

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

Referenced by bod12_get_config_defaults(), and bod12_set_config().

bool bod12_config::run_in_standby

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

Referenced by bod12_get_config_defaults(), and bod12_set_config().