Lines Matching refs:ADCConfig
280 am_hal_adc_config_t ADCConfig; in adc_ambiq_init() local
299 ADCConfig.eClock = AM_HAL_ADC_CLKSEL_HFRC; in adc_ambiq_init()
300 ADCConfig.eReference = AM_HAL_ADC_REFSEL_INT_1P5; in adc_ambiq_init()
302 ADCConfig.eClock = AM_HAL_ADC_CLKSEL_HFRC_24MHZ; in adc_ambiq_init()
303 ADCConfig.eRepeatTrigger = AM_HAL_ADC_RPTTRIGSEL_TMR, in adc_ambiq_init()
305 ADCConfig.ePolarity = AM_HAL_ADC_TRIGPOL_RISING; in adc_ambiq_init()
306 ADCConfig.eTrigger = AM_HAL_ADC_TRIGSEL_SOFTWARE; in adc_ambiq_init()
307 ADCConfig.eClockMode = AM_HAL_ADC_CLKMODE_LOW_POWER; in adc_ambiq_init()
308 ADCConfig.ePowerMode = AM_HAL_ADC_LPMODE0; in adc_ambiq_init()
309 ADCConfig.eRepeat = AM_HAL_ADC_SINGLE_SCAN; in adc_ambiq_init()
310 if (AM_HAL_STATUS_SUCCESS != am_hal_adc_configure(data->adcHandle, &ADCConfig)) { in adc_ambiq_init()