FD32M0P Microcontroller SDK
|
Data Structures | |
struct | comp_cfg_s |
COMP Configuration Struct. More... | |
struct | comp_win_comp_cfg_s |
struct | comp_out_cfg_s |
Enumerations | |
enum | COMP_HYST_E { COMP_HYST_DISABLED = COMP_CTRL0_HYST_DISABLED , COMP_HYST_LOW = COMP_CTRL0_HYST_LOW , COMP_HYST_MEDIUM = COMP_CTRL0_HYST_MEDIUM , COMP_HYST_HIGH = COMP_CTRL0_HYST_HIGH } |
enum | COMP_INTR_EDGE_SEL_E { COMP_E0_POS_E1_NEG = COMP_CTRL0_INTR_EDGE_SEL_E0_POS_E1_NEG , COMP_E0_NEG_E1_POS = COMP_CTRL0_INTR_EDGE_SEL_E0_NEG_E1_POS } |
enum | COMP_IN_P_SEL_E { COMP_IN_P_SEL_NON_INV_0 = COMP_INPUT_CTRL0_IN_P_SEL_NON_INV_0 , COMP_IN_P_SEL_NON_INV_1 = COMP_INPUT_CTRL0_IN_P_SEL_NON_INV_1 , COMP_IN_P_SEL_COMP0_NON_INV_2 = COMP_INPUT_CTRL0_IN_P_SEL_COMP0_NON_INV_2 , COMP_IN_P_SEL_COMP1_NON_INV_2 = COMP_INPUT_CTRL0_IN_P_SEL_COMP1_NON_INV_2 , COMP_IN_P_SEL_COMP0_DAC_CONN = COMP_INPUT_CTRL0_IN_P_SEL_COMP0_DAC_CONN , COMP_IN_P_SEL_COMP1_DAC_CONN = COMP_INPUT_CTRL0_IN_P_SEL_COMP1_DAC_CONN , COMP_IN_P_SEL_COMP0_OPA1_CONN = COMP_INPUT_CTRL0_IN_P_SEL_COMP0_OPA1_CONN , COMP_IN_P_SEL_COMP1_GND = COMP_INPUT_CTRL0_IN_P_SEL_COMP1_GND , COMP_IN_P_SEL_COMP0_PSEL_CONN = COMP_INPUT_CTRL0_IN_P_SEL_COMP0_PSEL_CONN , COMP_IN_P_SEL_COMP1_PSEL_CONN = COMP_INPUT_CTRL0_IN_P_SEL_COMP1_PSEL_CONN } |
enum | COMP_IN_M_SEL_E { COMP_IN_M_SEL_INV_0 = COMP_INPUT_CTRL0_IN_M_SEL_INV_0 , COMP_IN_M_SEL_INV_1 = COMP_INPUT_CTRL0_IN_M_SEL_INV_1 , COMP_IN_M_SEL_COMP0_INV_2 = COMP_INPUT_CTRL0_IN_M_SEL_COMP0_INV_2 , COMP_IN_M_SEL_COMP1_INV_2 = COMP_INPUT_CTRL0_IN_M_SEL_COMP1_INV_2 , COMP_IN_M_SEL_COMP0_OPA0_CONN = COMP_INPUT_CTRL0_IN_M_SEL_COMP0_OPA0_CONN } |
enum | COMP_WIN_COMP_SEL_E { COMP_WIN_COMP_SEL_0 = COMP_OUT_CTRL1_WIN_COMP_SEL_0 , COMP_WIN_COMP_SEL_1 = COMP_OUT_CTRL1_WIN_COMP_SEL_1 , COMP_WIN_COMP_SEL_2 = COMP_OUT_CTRL1_WIN_COMP_SEL_2 } |
enum | COMP_OUT_POL_E { COMP_OUT_POL_NON_INV = COMP_OUT_CTRL0_OUT_POL_NON_INV , COMP_OUT_POL_INV = COMP_OUT_CTRL0_OUT_POL_INV } |
Functions | |
void | comp_cfg (COMP_REGS_s *regs, comp_cfg_s comp_cfg) |
This function configures comparator. | |
void | comp_win_comp_cfg (COMP_REGS_s *regs, comp_win_comp_cfg_s win_comp_cfg) |
This function configures window comparator operation in comparator. | |
void | comp_out_cfg (COMP_REGS_s *regs, comp_out_cfg_s comp_out_cfg) |
This function configures output of comparator. | |
comp_cfg_s | get_comp_cfg (COMP_REGS_s *regs) |
This function returns comparator configuration. | |
comp_win_comp_cfg_s | get_comp_win_comp_cfg (COMP_REGS_s *regs) |
This function returns window comparator configuration in comparator. | |
comp_out_cfg_s | get_comp_out_cfg (COMP_REGS_s *regs) |
This function returns output configuration of comparator. | |
uint32_t | get_comp_out_sts (COMP_REGS_s *regs) |
This function returns output of comparator. |