Lines Matching refs:AdcHandle
41 ADC_HandleTypeDef AdcHandle; variable
45 AdcHandle.Instance = ADC1; in AdcMcuInit()
49 HAL_ADC_DeInit( &AdcHandle ); in AdcMcuInit()
60 AdcHandle.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV1; in AdcMcuConfig()
61 AdcHandle.Init.Resolution = ADC_RESOLUTION_12B; in AdcMcuConfig()
62 AdcHandle.Init.DataAlign = ADC_DATAALIGN_RIGHT; in AdcMcuConfig()
63 AdcHandle.Init.ContinuousConvMode = DISABLE; in AdcMcuConfig()
64 AdcHandle.Init.DiscontinuousConvMode = DISABLE; in AdcMcuConfig()
65 AdcHandle.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; in AdcMcuConfig()
66 AdcHandle.Init.ExternalTrigConv = ADC_SOFTWARE_START; in AdcMcuConfig()
67 AdcHandle.Init.DMAContinuousRequests = DISABLE; in AdcMcuConfig()
68 AdcHandle.Init.EOCSelection = ADC_EOC_SINGLE_CONV; in AdcMcuConfig()
69 AdcHandle.Init.NbrOfConversion = 1; in AdcMcuConfig()
70 AdcHandle.Init.LowPowerAutoWait = DISABLE; in AdcMcuConfig()
71 HAL_ADC_Init( &AdcHandle ); in AdcMcuConfig()
90 HAL_ADCEx_Calibration_Start( &AdcHandle, ADC_SINGLE_ENDED ); 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 ADC_DISABLE( &AdcHandle ); in AdcMcuReadChannel()