![]() |
M480 BSP V3.05.006
The Board Support Package for M480 Series
|
M480 Series ACMP Driver Header File. More...
Go to the source code of this file.
Macros | |
#define | ACMP_CTL_FILTSEL_OFF |
#define | ACMP_CTL_FILTSEL_1PCLK |
#define | ACMP_CTL_FILTSEL_2PCLK |
#define | ACMP_CTL_FILTSEL_4PCLK |
#define | ACMP_CTL_FILTSEL_8PCLK |
#define | ACMP_CTL_FILTSEL_16PCLK |
#define | ACMP_CTL_FILTSEL_32PCLK |
#define | ACMP_CTL_FILTSEL_64PCLK |
#define | ACMP_CTL_INTPOL_RF |
#define | ACMP_CTL_INTPOL_R |
#define | ACMP_CTL_INTPOL_F |
#define | ACMP_CTL_POSSEL_P0 |
#define | ACMP_CTL_POSSEL_P1 |
#define | ACMP_CTL_POSSEL_P2 |
#define | ACMP_CTL_POSSEL_P3 |
#define | ACMP_CTL_NEGSEL_PIN |
#define | ACMP_CTL_NEGSEL_CRV |
#define | ACMP_CTL_NEGSEL_VBG |
#define | ACMP_CTL_NEGSEL_DAC |
#define | ACMP_CTL_HYSTERESIS_30MV |
#define | ACMP_CTL_HYSTERESIS_20MV |
#define | ACMP_CTL_HYSTERESIS_10MV |
#define | ACMP_CTL_HYSTERESIS_DISABLE |
#define | ACMP_VREF_CRVSSEL_VDDA |
#define | ACMP_VREF_CRVSSEL_INTVREF |
#define | ACMP_ENABLE_OUTPUT_INVERSE(acmp, u32ChNum) |
This macro is used to enable output inverse function. More... | |
#define | ACMP_DISABLE_OUTPUT_INVERSE(acmp, u32ChNum) |
This macro is used to disable output inverse function. More... | |
#define | ACMP_SET_NEG_SRC(acmp, u32ChNum, u32Src) |
This macro is used to select ACMP negative input source. More... | |
#define | ACMP_ENABLE_HYSTERESIS(acmp, u32ChNum) |
This macro is used to enable hysteresis function and set hysteresis to 30mV. More... | |
#define | ACMP_DISABLE_HYSTERESIS(acmp, u32ChNum) |
This macro is used to disable hysteresis function. More... | |
#define | ACMP_CONFIG_HYSTERESIS(acmp, u32ChNum, u32HysSel) |
This macro is used to select hysteresis level. More... | |
#define | ACMP_ENABLE_INT(acmp, u32ChNum) |
This macro is used to enable interrupt. More... | |
#define | ACMP_DISABLE_INT(acmp, u32ChNum) |
This macro is used to disable interrupt. More... | |
#define | ACMP_ENABLE(acmp, u32ChNum) |
This macro is used to enable ACMP. More... | |
#define | ACMP_DISABLE(acmp, u32ChNum) |
This macro is used to disable ACMP. More... | |
#define | ACMP_GET_OUTPUT(acmp, u32ChNum) |
This macro is used to get ACMP output value. More... | |
#define | ACMP_GET_INT_FLAG(acmp, u32ChNum) |
This macro is used to get ACMP interrupt flag. More... | |
#define | ACMP_CLR_INT_FLAG(acmp, u32ChNum) |
This macro is used to clear ACMP interrupt flag. More... | |
#define | ACMP_CLR_WAKEUP_INT_FLAG(acmp, u32ChNum) |
This macro is used to clear ACMP wake-up interrupt flag. More... | |
#define | ACMP_ENABLE_WAKEUP(acmp, u32ChNum) |
This macro is used to enable ACMP wake-up function. More... | |
#define | ACMP_DISABLE_WAKEUP(acmp, u32ChNum) |
This macro is used to disable ACMP wake-up function. More... | |
#define | ACMP_SELECT_P(acmp, u32ChNum, u32Pin) |
This macro is used to select ACMP positive input pin. More... | |
#define | ACMP_ENABLE_FILTER(acmp, u32ChNum) |
This macro is used to enable ACMP filter function. More... | |
#define | ACMP_DISABLE_FILTER(acmp, u32ChNum) |
This macro is used to disable ACMP filter function. More... | |
#define | ACMP_SET_FILTER(acmp, u32ChNum, u32Cnt) |
This macro is used to set ACMP filter function. More... | |
#define | ACMP_CRV_SEL(acmp, u32Level) |
This macro is used to select comparator reference voltage. More... | |
#define | ACMP_SELECT_CRV_SRC(acmp, u32Src) |
This macro is used to select the source of CRV. More... | |
#define | ACMP_SELECT_INT_COND(acmp, u32ChNum, u32Cond) |
This macro is used to select ACMP interrupt condition. More... | |
#define | ACMP_ENABLE_WINDOW_LATCH(acmp, u32ChNum) |
This macro is used to enable ACMP window latch mode. More... | |
#define | ACMP_DISABLE_WINDOW_LATCH(acmp, u32ChNum) |
This macro is used to disable ACMP window latch mode. More... | |
#define | ACMP_ENABLE_WINDOW_COMPARE(acmp, u32ChNum) |
This macro is used to enable ACMP window compare mode. More... | |
#define | ACMP_DISABLE_WINDOW_COMPARE(acmp, u32ChNum) |
This macro is used to disable ACMP window compare mode. More... | |
Functions | |
void | ACMP_Open (ACMP_T *acmp, uint32_t u32ChNum, uint32_t u32NegSrc, uint32_t u32HysSel) |
Configure the specified ACMP module. More... | |
void | ACMP_Close (ACMP_T *acmp, uint32_t u32ChNum) |
Close analog comparator. More... | |
M480 Series ACMP Driver Header File.
SPDX-License-Identifier: Apache-2.0
Definition in file acmp.h.