| NUC029FAE_BSP V3.02.000 The Board Support Package for NUC029FAE MCU

Macros | Functions
acmp.h File Reference

NUC029FAE 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_HYSTERESIS_ENABLE
| Enable hysteresis function. More...
#define | ACMP_HYSTERESIS_DISABLE
| Disable hysteresis function. More...
#define | ACMP_CH0_POSPIN_P15
| Selecting P1.5 as ACMP Channel 0 positive input pin. More...
#define | ACMP_CH0_POSPIN_P10
| Selecting P1.0 as ACMP Channel 0 positive input pin. More...
#define | ACMP_CH0_POSPIN_P12
| Selecting P1.2 as ACMP Channel 0 positive input pin. More...
#define | ACMP_CH0_POSPIN_P13
| Selecting P1.3 as ACMP Channel 0 positive input pin. More...
#define | ACMP_CH1_POSPIN_P31
| Selecting P3.1 as ACMP Channel 1 positive input pin. More...
#define | ACMP_CH1_POSPIN_P32
| Selecting P3.2 as ACMP Channel 1 positive input pin. More...
#define | ACMP_CH1_POSPIN_P34
| Selecting P3.4 as ACMP Channel 1 positive input pin. More...
#define | ACMP_CH1_POSPIN_P35
| Selecting P3.5 as ACMP Channel 1 positive input pin. 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_FALLING_EDGE_TRIGGER(acmp, u32ChNum)
| This macro is used to enable ACMP falling edge trigger Timer/PWM. More...
#define | ACMP_DISABLE_FALLING_EDGE_TRIGGER(acmp, u32ChNum)
| This macro is used to disable ACMP falling edge trigger Timer/PWM. More...
#define | ACMP_ENABLE_RISING_EDGE_TRIGGER(acmp, u32ChNum)
| This macro is used to enable ACMP rising edge trigger Timer/PWM. More...
#define | ACMP_DISABLE_RISING_EDGE_TRIGGER(acmp, u32ChNum)
| This macro is used to disable ACMP rising edge trigger Timer/PWM. 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

NUC029FAE Analog Comparator(ACMP) driver header file.

Version
  V1.00

Revision
  1

Date
  14/05/16 10:00a

Note
  SPDX-License-Identifier: Apache-2.0 Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.

Definition in file acmp.h.