Lines Matching refs:ui32Config

334     uint32_t            ui32Config;  in am_hal_adc_configure()  local
349 ui32Config = 0; in am_hal_adc_configure()
354 ui32Config |= _VAL2FLD(ADC_CFG_CLKSEL, psConfig->eClock); in am_hal_adc_configure()
359 ui32Config |= _VAL2FLD(ADC_CFG_TRIGPOL, psConfig->ePolarity); in am_hal_adc_configure()
364 ui32Config |= _VAL2FLD(ADC_CFG_TRIGSEL, psConfig->eTrigger); in am_hal_adc_configure()
369 ui32Config |= _VAL2FLD(ADC_CFG_REFSEL, psConfig->eReference); in am_hal_adc_configure()
374 ui32Config |= _VAL2FLD(ADC_CFG_DFIFORDEN, 1); in am_hal_adc_configure()
379 ui32Config |= _VAL2FLD(ADC_CFG_CKMODE, psConfig->eClockMode); in am_hal_adc_configure()
384 ui32Config |= _VAL2FLD(ADC_CFG_LPMODE, psConfig->ePowerMode); in am_hal_adc_configure()
389 ui32Config |= _VAL2FLD(ADC_CFG_RPTEN, psConfig->eRepeat); in am_hal_adc_configure()
394 ADCn(ui32Module)->CFG = ui32Config; in am_hal_adc_configure()
419 uint32_t ui32Config; in am_hal_adc_configure_slot() local
445 ui32Config = 0; in am_hal_adc_configure_slot()
450 ui32Config |= _VAL2FLD(ADC_SL0CFG_ADSEL0, pSlotConfig->eMeasToAvg); in am_hal_adc_configure_slot()
455 ui32Config |= _VAL2FLD(ADC_SL0CFG_PRMODE0, pSlotConfig->ePrecisionMode); in am_hal_adc_configure_slot()
460 ui32Config |= _VAL2FLD(ADC_SL0CFG_CHSEL0, pSlotConfig->eChannel); in am_hal_adc_configure_slot()
465 ui32Config |= _VAL2FLD(ADC_SL0CFG_WCEN0, pSlotConfig->bWindowCompare); in am_hal_adc_configure_slot()
470 ui32Config |= _VAL2FLD(ADC_SL0CFG_SLEN0, pSlotConfig->bEnabled); in am_hal_adc_configure_slot()
480 AM_REGVAL(ui32RegOffset) = ui32Config; in am_hal_adc_configure_slot()
509 uint32_t ui32Config; in am_hal_adc_configure_dma() local
534 ui32Config = 0; in am_hal_adc_configure_dma()
539 ui32Config |= _VAL2FLD(ADC_DMACFG_DPWROFF, 0); // DPWROFF not supported! in am_hal_adc_configure_dma()
547 ui32Config |= _VAL2FLD(ADC_DMACFG_DMAMSK, ADC_DMACFG_DMAMSK_DIS); in am_hal_adc_configure_dma()
551 ui32Config |= _VAL2FLD(ADC_DMACFG_DMAMSK, ADC_DMACFG_DMAMSK_EN); in am_hal_adc_configure_dma()
557 ui32Config |= _VAL2FLD(ADC_DMACFG_DMAHONSTAT, ADC_DMACFG_DMAHONSTAT_EN); in am_hal_adc_configure_dma()
562 ui32Config |= _VAL2FLD(ADC_DMACFG_DMADYNPRI, pDMAConfig->bDynamicPriority); in am_hal_adc_configure_dma()
567 ui32Config |= _VAL2FLD(ADC_DMACFG_DMAPRI, pDMAConfig->ePriority); in am_hal_adc_configure_dma()
572 ui32Config |= _VAL2FLD(ADC_DMACFG_DMAEN, ADC_DMACFG_DMAEN_EN); in am_hal_adc_configure_dma()
577 ADCn(ui32Module)->DMACFG = ui32Config; in am_hal_adc_configure_dma()