39 uint32_t u32InputMode,
45 ADC->ADCHER = (
ADC->ADCHER & ~ADC_ADCHER_CHEN_Msk) | u32ChMask;
57 SYS->IPRSTC2 &= ~SYS_IPRSTC2_ADC_RST_Msk;
87 ADC->ADTDCR = (
ADC->ADTDCR & ~ADC_ADTDCR_PTDT_Msk) | u32Param;
125 uint32_t u32SampleTime)
127 ADC->ADSAMP = (
ADC->ADSAMP & ~ADC_ADSAMP_SAMPCNT_Msk) | u32SampleTime;
167 ADC->ADCR &= ~ADC_ADCR_ADIE_Msk;
169 ADC->ADCMPR[0] &= ~ADC_ADCMPR_CMPIE_Msk;
171 ADC->ADCMPR[1] &= ~ADC_ADCMPR_CMPIE_Msk;
Mini51 series peripheral access layer header file. This file contains all the peripheral register's d...
#define SYS_IPRSTC2_ADC_RST_Msk
#define ADC_TRIGGER_BY_PWM
#define ADC_TRIGGER_BY_EXT_PIN
#define ADC_RISING_EDGE_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)
Set ADC sample time for designated channel.
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_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_ADCMPR_CMPIE_Msk
#define ADC_ADCR_ADIE_Msk
#define ADC_ADCR_TRGEN_Msk
#define ADC
Pointer to ADC register structure.
#define SYS
Pointer to SYS register structure.