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.Resolution = ADC_RESOLUTION_12B; in AdcMcuConfig()
47 AdcHandle.Init.DataAlign = ADC_DATAALIGN_RIGHT; in AdcMcuConfig()
48 AdcHandle.Init.ContinuousConvMode = DISABLE; in AdcMcuConfig()
49 AdcHandle.Init.DiscontinuousConvMode = DISABLE; in AdcMcuConfig()
50 AdcHandle.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; in AdcMcuConfig()
51 AdcHandle.Init.ExternalTrigConv = ADC_EXTERNALTRIGCONV_T6_TRGO; in AdcMcuConfig()
52 AdcHandle.Init.DMAContinuousRequests = DISABLE; in AdcMcuConfig()
53 AdcHandle.Init.EOCSelection = ADC_EOC_SINGLE_CONV; in AdcMcuConfig()
54 AdcHandle.Init.NbrOfConversion = 1; in AdcMcuConfig()
55 AdcHandle.Init.LowPowerAutoWait = DISABLE; in AdcMcuConfig()
56 AdcHandle.Init.LowPowerAutoPowerOff = DISABLE; in AdcMcuConfig()
57 HAL_ADC_Init( &AdcHandle ); in AdcMcuConfig()
84 HAL_ADC_ConfigChannel( &AdcHandle, &adcConf ); in AdcMcuReadChannel()
87 HAL_ADC_Start( &AdcHandle ); in AdcMcuReadChannel()
89 HAL_ADC_PollForConversion( &AdcHandle, HAL_MAX_DELAY ); in AdcMcuReadChannel()
91 adcData = HAL_ADC_GetValue( &AdcHandle ); in AdcMcuReadChannel()
93 __HAL_ADC_DISABLE( &AdcHandle ); in AdcMcuReadChannel()