Lines Matching refs:AdcHandle
27 ADC_HandleTypeDef AdcHandle; variable
31 AdcHandle.Instance = ADC1; in AdcMcuInit()
35 HAL_ADC_DeInit( &AdcHandle ); in AdcMcuInit()
46 AdcHandle.Init.OversamplingMode = DISABLE; in AdcMcuConfig()
47 AdcHandle.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV2; in AdcMcuConfig()
48 AdcHandle.Init.Resolution = ADC_RESOLUTION_12B; in AdcMcuConfig()
49 AdcHandle.Init.SamplingTime = ADC_SAMPLETIME_160CYCLES_5; in AdcMcuConfig()
50 AdcHandle.Init.ScanConvMode = ADC_SCAN_DIRECTION_FORWARD; in AdcMcuConfig()
51 AdcHandle.Init.DataAlign = ADC_DATAALIGN_RIGHT; in AdcMcuConfig()
52 AdcHandle.Init.ContinuousConvMode = DISABLE; in AdcMcuConfig()
53 AdcHandle.Init.DiscontinuousConvMode = DISABLE; in AdcMcuConfig()
54 AdcHandle.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; in AdcMcuConfig()
55 AdcHandle.Init.ExternalTrigConv = ADC_SOFTWARE_START; in AdcMcuConfig()
56 AdcHandle.Init.DMAContinuousRequests = DISABLE; in AdcMcuConfig()
57 AdcHandle.Init.EOCSelection = ADC_EOC_SINGLE_CONV; in AdcMcuConfig()
58 AdcHandle.Init.Overrun = ADC_OVR_DATA_PRESERVED; in AdcMcuConfig()
59 AdcHandle.Init.LowPowerAutoWait = DISABLE; in AdcMcuConfig()
60 AdcHandle.Init.LowPowerFrequencyMode = ENABLE; // To be enabled only if ADC clock < 2.8 MHz in AdcMcuConfig()
61 AdcHandle.Init.LowPowerAutoPowerOff = DISABLE; in AdcMcuConfig()
62 HAL_ADC_Init( &AdcHandle ); in AdcMcuConfig()
86 HAL_ADCEx_Calibration_Start( &AdcHandle, ADC_SINGLE_ENDED ); in AdcMcuReadChannel()
91 HAL_ADC_ConfigChannel( &AdcHandle, &adcConf ); in AdcMcuReadChannel()
96 HAL_ADC_ConfigChannel( &AdcHandle, &adcConf ); in AdcMcuReadChannel()
99 HAL_ADC_Start( &AdcHandle ); in AdcMcuReadChannel()
101 HAL_ADC_PollForConversion( &AdcHandle, HAL_MAX_DELAY ); in AdcMcuReadChannel()
103 adcData = HAL_ADC_GetValue( &AdcHandle ); in AdcMcuReadChannel()
105 __HAL_ADC_DISABLE( &AdcHandle ); in AdcMcuReadChannel()