![]() |
MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
The MCUXpresso SDK provides a peripheral driver for the Browned Out Detector (BOD) module of MCUXpresso SDK devices.
Example use of BOD API.
Files | |
file | fsl_bod.h |
Data Structures | |
struct | bod_config_t |
Describes BOD configuration structure. More... | |
Enumerations | |
enum | bod_interrupt_threshold_t { kBOD_InterruptThreshold0 = 0U, kBOD_InterruptThreshold1, kBOD_InterruptThreshold2, kBOD_InterruptThreshold3 } |
BOD interrupt threshold voltages. More... | |
enum | bod_reset_threshold_t { kBOD_ResetThreshold0 = 0U, kBOD_ResetThreshold1, kBOD_ResetThreshold2, kBOD_ResetThreshold3 } |
BOD reset threshold voltages. More... | |
enum | bod_mode_t { kBOD_InterruptEnable = 1U, kBOD_ResetEnable = 2U } |
Functions | |
void | BOD_Init (SYSCON_Type *base, const bod_config_t *config) |
Initializes the BOD with configuration. More... | |
void | BOD_Deinit (SYSCON_Type *base) |
Disable the BOD module. More... | |
void | BOD_Enable (SYSCON_Type *base, uint8_t mode) |
Enable the BOD module. More... | |
void | BOD_Disable (SYSCON_Type *base, uint8_t mode) |
Disable the BOD module. More... | |
void | BOD_GetDefaultConfig (bod_config_t *config) |
Gets the default configuration structure. More... | |
BOD Driver version | |
#define | FSL_BOD_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) |
BOD driver version. | |
struct bod_config_t |
enum bod_mode_t |
void BOD_Init | ( | SYSCON_Type * | base, |
const bod_config_t * | config | ||
) |
This function configures the BOD module with the user-defined settings.
base | BOD peripheral base address. |
config | pointer to configuration structure |
void BOD_Deinit | ( | SYSCON_Type * | base | ) |
This function disable the BOD module.
base | BOD peripheral base address. |
void BOD_Enable | ( | SYSCON_Type * | base, |
uint8_t | mode | ||
) |
This function enable the ACMP module.
base | BOD peripheral base address. |
mode | Specified the work mode to be enabled.The mode is a logical OR of the enumeration members. see bod_mode_t |
void BOD_Disable | ( | SYSCON_Type * | base, |
uint8_t | mode | ||
) |
This function enable the BOD module.
base | BOD peripheral base address. |
mode | Specified the work mode to be disabled.The mode is a logical OR of the enumeration members. see bod_mode_t |
void BOD_GetDefaultConfig | ( | bod_config_t * | config | ) |
This function initializes the BOD configuration structure to a default value. The default values are: config->int_thr = kBOD_InterruptThreshold2; config->reset_thr = kBOD_ResetThreshold2;
config | Pointer to configuration structure. |