| MINI58_BSP V3.01.003 The Board Support Package for Mini58 Series MCU

Modules | Macros
ADC Exported Constants
Mini58 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_CMP0_LESS_THAN (0UL << ADC_CMP0_CMPCOND_Pos)
#define | ADC_CMP1_LESS_THAN (0UL << ADC_CMP1_CMPCOND_Pos)
#define | ADC_CMP0_GREATER_OR_EQUAL_TO (1ul << ADC_CMP0_CMPCOND_Pos)
#define | ADC_CMP1_GREATER_OR_EQUAL_TO (1ul << ADC_CMP1_CMPCOND_Pos)
#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_PWM0_RISING (0UL)
#define | ADC_SEQMODE_PWM0_CENTER (1UL)
#define | ADC_SEQMODE_PWM0_FALLING (2UL)
#define | ADC_SEQMODE_PWM0_PERIOD (3UL)
#define | ADC_SEQMODE_PWM2_RISING (4UL)
#define | ADC_SEQMODE_PWM2_CENTER (5UL)
#define | ADC_SEQMODE_PWM2_FALLING (6UL)
#define | ADC_SEQMODE_PWM2_PERIOD (7UL)
#define | ADC_SEQMODE_PWM4_RISING (8UL)
#define | ADC_SEQMODE_PWM4_CENTER (9UL)
#define | ADC_SEQMODE_PWM4_FALLING (10UL)
#define | ADC_SEQMODE_PWM4_PERIOD (11UL)

## Detailed Description

## Macro Definition Documentation

## ◆ ADC_ADIF_INT

#define ADC_ADIF_INT (ADC_STATUS_ADIF_Msk)

ADC convert complete interrupt

Definition at line 43 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_GREATER_OR_EQUAL_TO

#define ADC_CMP0_GREATER_OR_EQUAL_TO (1ul << ADC_CMP0_CMPCOND_Pos)

ADC compare condition greater or equal to

Definition at line 37 of file adc.h.

## ◆ ADC_CMP0_INT

#define ADC_CMP0_INT (ADC_STATUS_ADCMPF0_Msk)

ADC comparator 0 interrupt

Definition at line 44 of file adc.h.

## ◆ ADC_CMP0_LESS_THAN

#define ADC_CMP0_LESS_THAN (0UL << ADC_CMP0_CMPCOND_Pos)

ADC compare condition less than

Definition at line 35 of file adc.h.

## ◆ ADC_CMP1_GREATER_OR_EQUAL_TO

#define ADC_CMP1_GREATER_OR_EQUAL_TO (1ul << ADC_CMP1_CMPCOND_Pos)

ADC compare condition greater or equal to

Definition at line 38 of file adc.h.

## ◆ ADC_CMP1_INT

#define ADC_CMP1_INT (ADC_STATUS_ADCMPF1_Msk)

ADC comparator 0 interrupt

Definition at line 45 of file adc.h.

## ◆ ADC_CMP1_LESS_THAN

#define ADC_CMP1_LESS_THAN (0UL << ADC_CMP1_CMPCOND_Pos)

ADC compare condition less than

Definition at line 36 of file adc.h.

## ◆ ADC_FALLING_EDGE_TRIGGER

#define ADC_FALLING_EDGE_TRIGGER (0UL)

External pin falling edge trigger ADC

Definition at line 41 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 42 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_0

#define ADC_SAMPLE_CLOCK_0 (0UL)

ADC sample time is 0 ADC clock

Definition at line 46 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_1

#define ADC_SAMPLE_CLOCK_1 (1UL)

ADC sample time is 1 ADC clock

Definition at line 47 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_1024

#define ADC_SAMPLE_CLOCK_1024 (11UL)

ADC sample time is 1024 ADC clock

Definition at line 57 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_128

#define ADC_SAMPLE_CLOCK_128 (8UL)

ADC sample time is 128 ADC clock

Definition at line 54 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_16

#define ADC_SAMPLE_CLOCK_16 (5UL)

ADC sample time is 16 ADC clock

Definition at line 51 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_2

#define ADC_SAMPLE_CLOCK_2 (2UL)

ADC sample time is 2 ADC clock

Definition at line 48 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_256

#define ADC_SAMPLE_CLOCK_256 (9UL)

ADC sample time is 256 ADC clock

Definition at line 55 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_32

#define ADC_SAMPLE_CLOCK_32 (6UL)

ADC sample time is 32 ADC clock

Definition at line 52 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_4

#define ADC_SAMPLE_CLOCK_4 (3UL)

ADC sample time is 4 ADC clock

Definition at line 49 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_512

#define ADC_SAMPLE_CLOCK_512 (10UL)

ADC sample time is 512 ADC clock

Definition at line 56 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_64

#define ADC_SAMPLE_CLOCK_64 (7UL)

ADC sample time is 64 ADC clock

Definition at line 53 of file adc.h.

## ◆ ADC_SAMPLE_CLOCK_8

#define ADC_SAMPLE_CLOCK_8 (4UL)

ADC sample time is 8 ADC clock

Definition at line 50 of file adc.h.

## ◆ ADC_SEQMODE_MODESELECT_CH01

#define ADC_SEQMODE_MODESELECT_CH01 (0UL)

ADC channel 0 then channel 1 conversion

Definition at line 60 of file adc.h.

## ◆ ADC_SEQMODE_MODESELECT_CH02

#define ADC_SEQMODE_MODESELECT_CH02 (2UL)

ADC channel 0 then channel 2 conversion

Definition at line 62 of file adc.h.

## ◆ ADC_SEQMODE_MODESELECT_CH12

#define ADC_SEQMODE_MODESELECT_CH12 (1UL)

ADC channel 1 then channel 2 conversion

Definition at line 61 of file adc.h.

## ◆ ADC_SEQMODE_PWM0_CENTER

#define ADC_SEQMODE_PWM0_CENTER (1UL)

ADC sequential mode PWM0 center trigger ADC

Definition at line 64 of file adc.h.

## ◆ ADC_SEQMODE_PWM0_FALLING

#define ADC_SEQMODE_PWM0_FALLING (2UL)

ADC sequential mode PWM0 falling trigger ADC

Definition at line 65 of file adc.h.

## ◆ ADC_SEQMODE_PWM0_PERIOD

#define ADC_SEQMODE_PWM0_PERIOD (3UL)

ADC sequential mode PWM0 period trigger ADC

Definition at line 66 of file adc.h.

## ◆ ADC_SEQMODE_PWM0_RISING

#define ADC_SEQMODE_PWM0_RISING (0UL)

ADC sequential mode PWM0 rising trigger ADC

Definition at line 63 of file adc.h.

## ◆ ADC_SEQMODE_PWM2_CENTER

#define ADC_SEQMODE_PWM2_CENTER (5UL)

ADC sequential mode PWM2 center trigger ADC

Definition at line 68 of file adc.h.

## ◆ ADC_SEQMODE_PWM2_FALLING

#define ADC_SEQMODE_PWM2_FALLING (6UL)

ADC sequential mode PWM2 falling trigger ADC

Definition at line 69 of file adc.h.

## ◆ ADC_SEQMODE_PWM2_PERIOD

#define ADC_SEQMODE_PWM2_PERIOD (7UL)

ADC sequential mode PWM2 period trigger ADC

Definition at line 70 of file adc.h.

## ◆ ADC_SEQMODE_PWM2_RISING

#define ADC_SEQMODE_PWM2_RISING (4UL)

ADC sequential mode PWM2 rising trigger ADC

Definition at line 67 of file adc.h.

## ◆ ADC_SEQMODE_PWM4_CENTER

#define ADC_SEQMODE_PWM4_CENTER (9UL)

ADC sequential mode PWM4 center trigger ADC

Definition at line 72 of file adc.h.

## ◆ ADC_SEQMODE_PWM4_FALLING

#define ADC_SEQMODE_PWM4_FALLING (10UL)

ADC sequential mode PWM4 falling trigger ADC

Definition at line 73 of file adc.h.

## ◆ ADC_SEQMODE_PWM4_PERIOD

#define ADC_SEQMODE_PWM4_PERIOD (11UL)

ADC sequential mode PWM4 period trigger ADC

Definition at line 74 of file adc.h.

## ◆ ADC_SEQMODE_PWM4_RISING

#define ADC_SEQMODE_PWM4_RISING (8UL)

ADC sequential mode PWM4 rising trigger ADC

Definition at line 71 of file adc.h.

## ◆ ADC_SEQMODE_TYPE_1SHUNT

#define ADC_SEQMODE_TYPE_1SHUNT (1UL)

ADC sequential mode 1-shunt type

Definition at line 59 of file adc.h.

## ◆ ADC_SEQMODE_TYPE_23SHUNT

#define ADC_SEQMODE_TYPE_23SHUNT (0UL)

ADC sequential mode 23-shunt type

Definition at line 58 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 39 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 40 of file adc.h.