NUC472_NUC442_BSP V3.03.005
The Board Support Package for NUC472/NUC442
Macros | Functions
acmp.h File Reference

NUC472/NUC442 Analog Comparator(ACMP) driver header file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ACMP_VNEG_PIN
 Selecting the voltage of ACMP negative input pin as the source of ACMP V-. More...
 
#define ACMP_VNEG_BANDGAP
 Selecting band-gap voltage as the source of ACMP V-. More...
 
#define ACMP_VNEG_4_OVER_24_VDD
 Selecting 4/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_5_OVER_24_VDD
 Selecting 5/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_6_OVER_24_VDD
 Selecting 6/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_7_OVER_24_VDD
 Selecting 7/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_8_OVER_24_VDD
 Selecting 8/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_9_OVER_24_VDD
 Selecting 9/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_10_OVER_24_VDD
 Selecting 10/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_11_OVER_24_VDD
 Selecting 11/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_12_OVER_24_VDD
 Selecting 12/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_13_OVER_24_VDD
 Selecting 13/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_14_OVER_24_VDD
 Selecting 14/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_15_OVER_24_VDD
 Selecting 15/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_16_OVER_24_VDD
 Selecting 16/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_17_OVER_24_VDD
 Selecting 17/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_18_OVER_24_VDD
 Selecting 18/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_19_OVER_24_VDD
 Selecting 19/24 VDD as the source of ACMP V-. More...
 
#define ACMP_VNEG_4_OVER_24_IREF
 Selecting 4/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_5_OVER_24_IREF
 Selecting 5/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_6_OVER_24_IREF
 Selecting 6/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_7_OVER_24_IREF
 Selecting 7/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_8_OVER_24_IREF
 Selecting 8/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_9_OVER_24_IREF
 Selecting 9/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_10_OVER_24_IREF
 Selecting 10/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_11_OVER_24_IREF
 Selecting 11/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_12_OVER_24_IREF
 Selecting 12/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_13_OVER_24_IREF
 Selecting 13/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_14_OVER_24_IREF
 Selecting 14/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_15_OVER_24_IREF
 Selecting 15/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_16_OVER_24_IREF
 Selecting 16/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_17_OVER_24_IREF
 Selecting 17/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_18_OVER_24_IREF
 Selecting 18/24 IREF as the source of ACMP V-. More...
 
#define ACMP_VNEG_19_OVER_24_IREF
 Selecting 19/24 IREF as the source of ACMP V-. More...
 
#define ACMP_HYSTERESIS_ENABLE
 Enable hysteresis function. More...
 
#define ACMP_HYSTERESIS_DISABLE
 Disable hysteresis function. More...
 
#define ACMP_CH0_POSPIN_P0
 Selecting ACMP0_P0 as ACMP Channel 0 positive input source. More...
 
#define ACMP_CH0_POSPIN_P1
 Selecting ACMP0_P1 as ACMP Channel 0 positive input source. More...
 
#define ACMP_CH0_POSPIN_P2
 Selecting ACMP0_P2 as ACMP Channel 0 positive input source. More...
 
#define ACMP_CH0_POSPIN_P3
 Selecting ACMP0_P3 as ACMP Channel 0 positive input source. More...
 
#define ACMP_CH0_POS_OPA0
 Selecting OPA0 as ACMP Channel 0 positive input source. More...
 
#define ACMP_CH1_POSPIN_P0
 Selecting ACMP1_P0 as ACMP Channel 1 positive input source. More...
 
#define ACMP_CH1_POSPIN_P1
 Selecting ACMP1_P1 as ACMP Channel 1 positive input source. More...
 
#define ACMP_CH1_POSPIN_P2
 Selecting ACMP1_P2 as ACMP Channel 1 positive input source. More...
 
#define ACMP_CH1_POSPIN_P3
 Selecting ACMP1_P3 as ACMP Channel 1 positive input source. More...
 
#define ACMP_CH1_POS_OPA1
 Selecting OPA1 as ACMP Channel 1 positive input source. More...
 
#define ACMP_CH2_POSPIN_P0
 Selecting ACMP2_P0 as ACMP Channel 2 positive input source. More...
 
#define ACMP_CH2_POSPIN_P1
 Selecting ACMP2_P1 as ACMP Channel 2 positive input source. More...
 
#define ACMP_CH2_POSPIN_P2
 Selecting ACMP2_P2 as ACMP Channel 2 positive input source. More...
 
#define ACMP_CH2_POSPIN_P3
 Selecting ACMP2_P3 as ACMP Channel 2 positive input source. 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. More...
 
#define ACMP_DISABLE_HYSTERESIS(acmp, u32ChNum)
 This macro is used to disable hysteresis function. 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_SELECT_P(acmp, u32ChNum, u32Pin)
 This macro is used to select the V+ pin of ACMP. More...
 
#define ACMP_CRV_SEL(acmp, u32Level)
 This macro is used to set the level of CRV (Comparator Reference Voltage) More...
 
#define ACMP_ENABLE_CRV(acmp)
 This macro is used to enable CRV(Comparator Reference Voltage) More...
 
#define ACMP_DISABLE_CRV(acmp)
 This macro is used to disable CRV(Comparator Reference Voltage) More...
 
#define ACMP_ENABLE_OUTPUT_INVERSE(acmp, u32ChNum)
 This macro is used to enable ACMP output inverse function. More...
 
#define ACMP_DISABLE_OUTPUT_INVERSE(acmp, u32ChNum)
 This macro is used to disable ACMP output inverse function. More...
 

Functions

void ACMP_Open (ACMP_T *acmp, uint32_t u32ChNum, uint32_t u32NegSrc, uint32_t u32HysteresisEn)
 Configure the specified ACMP module. More...
 
void ACMP_Close (ACMP_T *acmp, uint32_t u32ChNum)
 This function close comparator. More...
 

Detailed Description

NUC472/NUC442 Analog Comparator(ACMP) driver header file.

Version
V1.00
Revision
5
Date
15/11/04 7:29p
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.

Definition in file acmp.h.