42 uint32_t u32InputMode,
47 ADC->CTL = (
ADC->CTL & ~ADC_CTL_DIFF_Msk) | u32InputMode;
48 ADC->CTL = (
ADC->CTL & ~ADC_CTL_ADMD_Msk) | u32OpMode;
49 ADC->CTL = (
ADC->CTL & ~ADC_CTL_REFSEL_Msk);
50 ADC->CHEN = u32ChMask;
62 SYS->IPRST2 &= ~SYS_IPRST2_ADCRST_Msk;
133 ADC->CTL &= ~ADC_CTL_TMTRGMOD_Msk;
147 uint32_t u32SampleTime)
193 ADC->CTL &= ~ADC_CTL_ADCIEN_Msk;
195 ADC->CMP0 &= ~ADC_CMP0_ADCMPIE_Msk;
197 ADC->CMP1 &= ~ADC_CMP1_ADCMPIE_Msk;
NANO103 peripheral access layer header file. This file contains all the peripheral register's definit...
#define ADC_CTL_TMPDMACNT_Pos
#define ADC_EXTSMPT0_EXTSMPT_CH0_Msk
#define ADC_CTL_HWTRGSEL_Msk
#define ADC_CMP1_ADCMPIE_Msk
#define ADC_CTL_TMTRGMOD_Msk
#define ADC_CTL_TMPDMACNT_Msk
#define ADC_CMP0_ADCMPIE_Msk
#define ADC_CTL_TMSEL_Msk
#define ADC_CTL_HWTRGEN_Msk
#define ADC_CTL_ADCIEN_Msk
#define ADC_EXTSMPT1_EXTSMPT_INTCH_Pos
#define ADC_CTL_TMSEL_Pos
#define ADC_CTL_HWTRGCOND_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 SYS_IPRST2_ADCRST_Msk
#define ADC
Pointer to ADC register structure.
#define SYS
Pointer to SYS register structure.