| MINI55_BSP V3.03.000 The Board Support Package for Mini55 Series MCU

Modules | Macros
ADC Exported Constants
MINI55 Device Driver » ADC Driver
Collaboration diagram for ADC Exported Constants:

## Modules
| ADC Exported Functions

## Macros
#define | ADC_CH7_EXT (0UL)
#define | ADC_CH7_BGP (ADC_CHEN_CH7SEL_Msk)
#define | ADC_CMP_LESS_THAN (0UL)
#define | ADC_CMP_GREATER_OR_EQUAL_TO (ADC_CMP_CMPCOND_Msk)
#define | ADC_TRIGGER_BY_EXT_PIN (0UL)
#define | ADC_TRIGGER_BY_PWM (ADC_CTL_HWTRGSEL_Msk)
#define | ADC_FALLING_EDGE_TRIGGER (0UL)
#define | ADC_RISING_EDGE_TRIGGER (ADC_CTL_HWTRGCOND_Msk)
#define | ADC_ADIF_INT (ADC_STATUS_ADIF_Msk)
#define | ADC_CMP0_INT (ADC_STATUS_ADCMPF0_Msk)
#define | ADC_CMP1_INT (ADC_STATUS_ADCMPF1_Msk)
#define | ADC_SAMPLE_CLOCK_0 (0UL)
#define | ADC_SAMPLE_CLOCK_1 (1UL)
#define | ADC_SAMPLE_CLOCK_2 (2UL)
#define | ADC_SAMPLE_CLOCK_4 (3UL)
#define | ADC_SAMPLE_CLOCK_8 (4UL)
#define | ADC_SAMPLE_CLOCK_16 (5UL)
#define | ADC_SAMPLE_CLOCK_32 (6UL)
#define | ADC_SAMPLE_CLOCK_64 (7UL)
#define | ADC_SAMPLE_CLOCK_128 (8UL)
#define | ADC_SAMPLE_CLOCK_256 (9UL)
#define | ADC_SAMPLE_CLOCK_512 (10UL)
#define | ADC_SAMPLE_CLOCK_1024 (11UL)
#define | ADC_SEQMODE_TYPE_23SHUNT (0UL)
#define | ADC_SEQMODE_TYPE_1SHUNT (1UL)
#define | ADC_SEQMODE_MODESELECT_CH01 (0UL)
#define | ADC_SEQMODE_MODESELECT_CH12 (1UL)
#define | ADC_SEQMODE_MODESELECT_CH02 (2UL)
#define | ADC_SEQMODE_TRISRC_PWM0 (0UL)
#define | ADC_SEQMODE_TRISRC_PWM2 (1UL)
#define | ADC_SEQMODE_TRISRC_PWM4 (2UL)
#define | ADC_SEQMODE_PWM_RISING (0UL)
#define | ADC_SEQMODE_PWM_CENTER (1UL)
#define | ADC_SEQMODE_PWM_FALLING (2UL)
#define | ADC_SEQMODE_PWM_PERIOD (3UL)

## Detailed Description

## Macro Definition Documentation

## ◆ ADC_ADIF_INT

#define ADC_ADIF_INT (ADC_STATUS_ADIF_Msk)

ADC convert complete interrupt

Definition at line 41 of file adc.h.

## ◆ ADC_CH7_BGP

#define ADC_CH7_BGP (ADC_CHEN_CH7SEL_Msk)

Use internal band-gap voltage (VBG) as channel 7 source.

Definition at line 34 of file adc.h.

## ◆ ADC_CH7_EXT

#define ADC_CH7_EXT (0UL)

Use external input pin as ADC channel 7 source

Definition at line 33 of file adc.h.

## ◆ ADC_CMP0_INT

#define ADC_CMP0_INT (ADC_STATUS_ADCMPF0_Msk)

ADC comparator 0 interrupt

Definition at line 42 of file adc.h.

## ◆ ADC_CMP1_INT

#define ADC_CMP1_INT (ADC_STATUS_ADCMPF1_Msk)

ADC comparator 0 interrupt

Definition at line 43 of file adc.h.

## ◆ ADC_CMP_GREATER_OR_EQUAL_TO

#define ADC_CMP_GREATER_OR_EQUAL_TO (ADC_CMP_CMPCOND_Msk)

ADC compare condition greater or equal to

Definition at line 36 of file adc.h.

## ◆ ADC_CMP_LESS_THAN

#define ADC_CMP_LESS_THAN (0UL)

ADC compare condition less than

Definition at line 35 of file adc.h.

## ◆ ADC_FALLING_EDGE_TRIGGER

#define ADC_FALLING_EDGE_TRIGGER (0UL)

External pin falling edge trigger ADC

Definition at line 39 of file adc.h.

## ◆ ADC_RISING_EDGE_TRIGGER

#define ADC_RISING_EDGE_TRIGGER (ADC_CTL_HWTRGCOND_Msk)

External pin rising edge trigger ADC

Definition at line 40 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_0

#define ADC_SAMPLE_CLOCK_0 (0UL)

ADC sample time is 0 ADC clock

Definition at line 44 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_1

#define ADC_SAMPLE_CLOCK_1 (1UL)

ADC sample time is 1 ADC clock

Definition at line 45 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_1024

#define ADC_SAMPLE_CLOCK_1024 (11UL)

ADC sample time is 1024 ADC clock

Definition at line 55 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_128

#define ADC_SAMPLE_CLOCK_128 (8UL)

ADC sample time is 128 ADC clock

Definition at line 52 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_16

#define ADC_SAMPLE_CLOCK_16 (5UL)

ADC sample time is 16 ADC clock

Definition at line 49 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_2

#define ADC_SAMPLE_CLOCK_2 (2UL)

ADC sample time is 2 ADC clock

Definition at line 46 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_256

#define ADC_SAMPLE_CLOCK_256 (9UL)

ADC sample time is 256 ADC clock

Definition at line 53 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_32

#define ADC_SAMPLE_CLOCK_32 (6UL)

ADC sample time is 32 ADC clock

Definition at line 50 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_4

#define ADC_SAMPLE_CLOCK_4 (3UL)

ADC sample time is 4 ADC clock

Definition at line 47 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_512

#define ADC_SAMPLE_CLOCK_512 (10UL)

ADC sample time is 512 ADC clock

Definition at line 54 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_64

#define ADC_SAMPLE_CLOCK_64 (7UL)

ADC sample time is 64 ADC clock

Definition at line 51 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_8

#define ADC_SAMPLE_CLOCK_8 (4UL)

ADC sample time is 8 ADC clock

Definition at line 48 of file adc.h.

## ◆ ADC_SEQMODE_MODESELECT_CH01

#define ADC_SEQMODE_MODESELECT_CH01 (0UL)

ADC channel 0 then channel 1 conversion

Definition at line 58 of file adc.h.

## ◆ ADC_SEQMODE_MODESELECT_CH02

#define ADC_SEQMODE_MODESELECT_CH02 (2UL)

ADC channel 0 then channel 2 conversion

Definition at line 60 of file adc.h.

## ◆ ADC_SEQMODE_MODESELECT_CH12

#define ADC_SEQMODE_MODESELECT_CH12 (1UL)

ADC channel 1 then channel 2 conversion

Definition at line 59 of file adc.h.

## ◆ ADC_SEQMODE_PWM_CENTER

#define ADC_SEQMODE_PWM_CENTER (1UL)

ADC sequential mode PWM center trigger ADC

Definition at line 65 of file adc.h.

## ◆ ADC_SEQMODE_PWM_FALLING

#define ADC_SEQMODE_PWM_FALLING (2UL)

ADC sequential mode PWM falling trigger ADC

Definition at line 66 of file adc.h.

## ◆ ADC_SEQMODE_PWM_PERIOD

#define ADC_SEQMODE_PWM_PERIOD (3UL)

ADC sequential mode PWM period trigger ADC

Definition at line 67 of file adc.h.

## ◆ ADC_SEQMODE_PWM_RISING

#define ADC_SEQMODE_PWM_RISING (0UL)

ADC sequential mode PWM rising trigger ADC

Definition at line 64 of file adc.h.

## ◆ ADC_SEQMODE_TRISRC_PWM0

#define ADC_SEQMODE_TRISRC_PWM0 (0UL)

ADC sequential mode PWM Trigger Source is PWM0

Definition at line 61 of file adc.h.

## ◆ ADC_SEQMODE_TRISRC_PWM2

#define ADC_SEQMODE_TRISRC_PWM2 (1UL)

ADC sequential mode PWM Trigger Source is PWM2

Definition at line 62 of file adc.h.

## ◆ ADC_SEQMODE_TRISRC_PWM4

#define ADC_SEQMODE_TRISRC_PWM4 (2UL)

ADC sequential mode PWM Trigger Source is PWM4

Definition at line 63 of file adc.h.

## ◆ ADC_SEQMODE_TYPE_1SHUNT

#define ADC_SEQMODE_TYPE_1SHUNT (1UL)

ADC sequential mode 1-shunt type

Definition at line 57 of file adc.h.

## ◆ ADC_SEQMODE_TYPE_23SHUNT

#define ADC_SEQMODE_TYPE_23SHUNT (0UL)

ADC sequential mode 23-shunt type

Definition at line 56 of file adc.h.

## ◆ ADC_TRIGGER_BY_EXT_PIN

#define ADC_TRIGGER_BY_EXT_PIN (0UL)

ADC trigger by STADC (P3.2) pin

Definition at line 37 of file adc.h.

## ◆ ADC_TRIGGER_BY_PWM

#define ADC_TRIGGER_BY_PWM (ADC_CTL_HWTRGSEL_Msk)

ADC trigger by PWM events

Definition at line 38 of file adc.h.