42 uint32_t u32InputMode,
47 ADC->CR = (
ADC->CR & ~ADC_CR_DIFF_Msk) | u32InputMode;
48 ADC->CR = (
ADC->CR & ~ADC_CR_ADMD_Msk) | u32OpMode;
49 ADC->CR = (
ADC->CR & ~ADC_CR_REFSEL_Msk);
50 ADC->CHEN = u32ChMask;
62 SYS->IPRST_CTL2 &= ~SYS_IPRST_CTL2_ADC_RST_Msk;
133 ADC->CR &= ~ADC_CR_TMTRGMOD_Msk;
147 uint32_t u32SampleTime)
193 ADC->CR &= ~ADC_CR_ADIE_Msk;
195 ADC->CMPR0 &= ~ADC_CMPR_CMPIE_Msk;
197 ADC->CMPR1 &= ~ADC_CMPR_CMPIE_Msk;
Nano102/112 peripheral access layer header file. This file contains all the peripheral register's def...
#define SYS_IPRST_CTL2_ADC_RST_Msk
#define ADC_TRIGGER_BY_EXT_PIN
void ADC_EnableTimerTrigger(ADC_T *adc, uint32_t u32Source, uint32_t u32PDMACnt)
Config and enable timer trigger.
void ADC_EnableHWTrigger(ADC_T *adc, uint32_t u32Source, uint32_t u32Param)
Configure the hardware trigger condition and enable hardware trigger.
void ADC_Close(ADC_T *adc)
Disable ADC module.
void ADC_SetExtraSampleTime(ADC_T *adc, uint32_t u32ChNum, uint32_t u32SampleTime)
Configure the hardware trigger condition and enable hardware trigger.
void ADC_Open(ADC_T *adc, uint32_t u32InputMode, uint32_t u32OpMode, uint32_t u32ChMask)
This API configures ADC module to be ready for convert the input from selected channel.
void ADC_DisableInt(ADC_T *adc, uint32_t u32Mask)
Disable the interrupt(s) selected by u32Mask parameter.
void ADC_DisableTimerTrigger(ADC_T *adc)
Disable timer trigger ADC function.
void ADC_DisableHWTrigger(ADC_T *adc)
Disable hardware trigger ADC function.
void ADC_EnableInt(ADC_T *adc, uint32_t u32Mask)
Enable the interrupt(s) selected by u32Mask parameter.
#define ADC_CR_TMPDMACNT_Pos
#define ADC_SMPLCNT1_INTCHSAMPCNT_Pos
#define ADC_CR_TRGCOND_Msk
#define ADC_CMPR_CMPIE_Msk
#define ADC_SMPLCNT0_CH0SAMPCNT_Msk
#define ADC_CR_TMPDMACNT_Msk
#define ADC_CR_TMTRGMOD_Msk
#define ADC
Pointer to ADC register structure.
#define SYS
Pointer to SYS register structure.