42 uint32_t u32InputMode,
50 ADC->CHEN = u32ChMask;
147 uint32_t u32SampleTime)
void ADC_EnableHWTrigger(ADC_T *adc, uint32_t u32Source, uint32_t u32Param)
Configure the hardware trigger condition and enable hardware trigger.
void ADC_EnableTimerTrigger(ADC_T *adc, uint32_t u32Source, uint32_t u32PDMACnt)
Config and enable timer trigger.
#define SYS_IPRST_CTL2_ADC_RST_Msk
#define ADC_CR_TMTRGMOD_Msk
void ADC_EnableInt(ADC_T *adc, uint32_t u32Mask)
Enable the interrupt(s) selected by u32Mask parameter.
#define ADC_CR_TMPDMACNT_Msk
void ADC_DisableInt(ADC_T *adc, uint32_t u32Mask)
Disable the interrupt(s) selected by u32Mask parameter.
#define ADC_TRIGGER_BY_EXT_PIN
#define ADC_SMPLCNT1_INTCHSAMPCNT_Msk
void ADC_Close(ADC_T *adc)
Disable ADC module.
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.
Nano102/112 peripheral access layer header file. This file contains all the peripheral register's def...
void ADC_DisableTimerTrigger(ADC_T *adc)
Disable timer trigger ADC function.
#define ADC_SMPLCNT1_INTCHSAMPCNT_Pos
#define ADC_SMPLCNT0_CH0SAMPCNT_Msk
void ADC_DisableHWTrigger(ADC_T *adc)
Disable hardware trigger ADC function.
#define ADC_CR_TRGCOND_Msk
#define ADC
Pointer to ADC register structure.
#define ADC_CR_TMPDMACNT_Pos
#define SYS
Pointer to SYS register structure.
#define ADC_CR_REFSEL_Msk
#define ADC_CMPR_CMPIE_Msk
void ADC_SetExtraSampleTime(ADC_T *adc, uint32_t u32ChNum, uint32_t u32SampleTime)
Configure the hardware trigger condition and enable hardware trigger.