39 uint32_t u32InputMode,
125 uint32_t u32SampleTime)
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.
#define ADC_ADCMPR_CMPIE_Msk
#define ADC_ADTDCR_PTDT_Msk
#define ADC_RISING_EDGE_TRIGGER
void ADC_EnableInt(ADC_T *adc, uint32_t u32Mask)
Enable the interrupt(s) selected by u32Mask parameter.
Mini51 series peripheral access layer header file. This file contains all the peripheral register's d...
void ADC_EnableHWTrigger(ADC_T *adc, uint32_t u32Source, uint32_t u32Param)
Configure the hardware trigger condition and enable hardware trigger.
#define ADC_ADCR_ADIE_Msk
void ADC_DisableInt(ADC_T *adc, uint32_t u32Mask)
Disable the interrupt(s) selected by u32Mask parameter.
#define ADC
Pointer to ADC register structure.
void ADC_SetExtraSampleTime(ADC_T *adc, uint32_t u32ChNum, uint32_t u32SampleTime)
Set ADC sample time for designated channel.
#define SYS
Pointer to SYS register structure.
#define ADC_ADSAMP_SAMPCNT_Msk
void ADC_DisableHWTrigger(ADC_T *adc)
Disable hardware trigger ADC function.
#define ADC_ADCHER_CHEN_Msk
void ADC_Close(ADC_T *adc)
Disable ADC module.
#define ADC_TRIGGER_BY_PWM
#define SYS_IPRSTC2_ADC_RST_Msk
#define ADC_ADCR_TRGEN_Msk
#define ADC_TRIGGER_BY_EXT_PIN