Microchip® Advanced Software Framework

bod_config Struct Reference

Configuration structure for a BOD module.

#include <bod_feature.h>

Data Fields

enum bod_action action
 Action to perform when a low power detection is made. More...
 
bool hysteresis
 If true, enables detection hysteresis. More...
 
uint8_t level
 BOD level to trigger at (see electrical section of device datasheet) More...
 
enum bod_mode mode
 Sampling configuration mode for the BOD. More...
 
enum bod_prescale prescaler
 Input sampler clock prescaler factor, to reduce the 1KHz clock from the ULP32K to lower the sampling rate of the BOD. More...
 
bool run_in_standby
 If true, the BOD is kept enabled and sampled during device sleep. More...
 

enum bod_action bod_config::action

Action to perform when a low power detection is made.

Referenced by bod_get_config_defaults(), and bod_set_config().

bool bod_config::hysteresis

If true, enables detection hysteresis.

Referenced by bod_get_config_defaults(), and bod_set_config().

uint8_t bod_config::level

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

Referenced by bod_get_config_defaults(), and bod_set_config().

enum bod_mode bod_config::mode

Sampling configuration mode for the BOD.

Referenced by bod_get_config_defaults(), and bod_set_config().

enum bod_prescale bod_config::prescaler

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

Referenced by bod_get_config_defaults(), and bod_set_config().

bool bod_config::run_in_standby

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

Referenced by bod_get_config_defaults(), and bod_set_config().