Searched refs:hadc (Results 1 – 8 of 8) sorted by relevance
/btstack/port/stm32-f4discovery-usb/Drivers/STM32F4xx_HAL_Driver/Src/ |
H A D | stm32f4xx_hal_adc.c | 270 static void ADC_Init(ADC_HandleTypeDef* hadc); 312 HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc) in HAL_ADC_Init() argument 317 if(hadc == NULL) in HAL_ADC_Init() 323 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADC_Init() 324 assert_param(IS_ADC_CLOCKPRESCALER(hadc->Init.ClockPrescaler)); in HAL_ADC_Init() 325 assert_param(IS_ADC_RESOLUTION(hadc->Init.Resolution)); in HAL_ADC_Init() 326 assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ScanConvMode)); in HAL_ADC_Init() 327 assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); in HAL_ADC_Init() 328 assert_param(IS_ADC_EXT_TRIG(hadc->Init.ExternalTrigConv)); in HAL_ADC_Init() 329 assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); in HAL_ADC_Init() [all …]
|
H A D | stm32f4xx_hal_adc_ex.c | 147 HAL_StatusTypeDef HAL_ADCEx_InjectedStart(ADC_HandleTypeDef* hadc) in HAL_ADCEx_InjectedStart() argument 154 __HAL_LOCK(hadc); in HAL_ADCEx_InjectedStart() 160 if((hadc->Instance->CR2 & ADC_CR2_ADON) != ADC_CR2_ADON) in HAL_ADCEx_InjectedStart() 163 __HAL_ADC_ENABLE(hadc); in HAL_ADCEx_InjectedStart() 175 if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_ADON)) in HAL_ADCEx_InjectedStart() 180 ADC_STATE_CLR_SET(hadc->State, in HAL_ADCEx_InjectedStart() 188 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY)) in HAL_ADCEx_InjectedStart() 191 ADC_CLEAR_ERRORCODE(hadc); in HAL_ADCEx_InjectedStart() 197 __HAL_UNLOCK(hadc); in HAL_ADCEx_InjectedStart() 201 __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JEOC); in HAL_ADCEx_InjectedStart() [all …]
|
/btstack/port/stm32-l451-miromico-sx1280/Drivers/STM32L4xx_HAL_Driver/Src/ |
H A D | stm32l4xx_hal_adc.c | 402 HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc) in HAL_ADC_Init() argument 412 if (hadc == NULL) in HAL_ADC_Init() 418 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADC_Init() 419 assert_param(IS_ADC_CLOCKPRESCALER(hadc->Init.ClockPrescaler)); in HAL_ADC_Init() 420 assert_param(IS_ADC_RESOLUTION(hadc->Init.Resolution)); in HAL_ADC_Init() 422 assert_param(IS_ADC_DFSDMCFG_MODE(hadc)); in HAL_ADC_Init() 424 assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); in HAL_ADC_Init() 425 assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); in HAL_ADC_Init() 426 assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); in HAL_ADC_Init() 427 assert_param(IS_ADC_EXTTRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); in HAL_ADC_Init() [all …]
|
H A D | stm32l4xx_hal_adc_ex.c | 129 HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef *hadc, uint32_t SingleDiff) in HAL_ADCEx_Calibration_Start() argument 135 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADCEx_Calibration_Start() 139 __HAL_LOCK(hadc); in HAL_ADCEx_Calibration_Start() 144 tmp_hal_status = ADC_Disable(hadc); in HAL_ADCEx_Calibration_Start() 150 ADC_STATE_CLR_SET(hadc->State, in HAL_ADCEx_Calibration_Start() 155 LL_ADC_StartCalibration(hadc->Instance, SingleDiff); in HAL_ADCEx_Calibration_Start() 158 while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL) in HAL_ADCEx_Calibration_Start() 164 ADC_STATE_CLR_SET(hadc->State, in HAL_ADCEx_Calibration_Start() 169 __HAL_UNLOCK(hadc); in HAL_ADCEx_Calibration_Start() 176 ADC_STATE_CLR_SET(hadc->State, in HAL_ADCEx_Calibration_Start() [all …]
|
/btstack/port/stm32-l451-miromico-sx1280/Drivers/STM32L4xx_HAL_Driver/Inc/ |
H A D | stm32l4xx_hal_adc.h | 373 …void (* ConvCpltCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC conversion comp… 374 …void (* ConvHalfCpltCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC conversion DMA … 375 …void (* LevelOutOfWindowCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC analog watchdog… 376 …void (* ErrorCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC error callback … 377 …void (* InjectedConvCpltCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC group injected … 378 …void (* InjectedQueueOverflowCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC group injected … 379 …void (* LevelOutOfWindow2Callback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC analog watchdog… 380 …void (* LevelOutOfWindow3Callback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC analog watchdog… 381 …void (* EndOfSamplingCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC end of sampling… 382 …void (* MspInitCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC Msp Init callba… [all …]
|
H A D | stm32l4xx_hal_adc_ex.h | 1190 HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef *hadc, uint32_t SingleDiff); 1191 uint32_t HAL_ADCEx_Calibration_GetValue(ADC_HandleTypeDef *hadc, uint32_t SingleDiff… 1192 HAL_StatusTypeDef HAL_ADCEx_Calibration_SetValue(ADC_HandleTypeDef *hadc, uint32_t SingleDiff, 1196 HAL_StatusTypeDef HAL_ADCEx_InjectedStart(ADC_HandleTypeDef *hadc); 1197 HAL_StatusTypeDef HAL_ADCEx_InjectedStop(ADC_HandleTypeDef *hadc); 1198 HAL_StatusTypeDef HAL_ADCEx_InjectedPollForConversion(ADC_HandleTypeDef *hadc, uint32_t Timeo… 1201 HAL_StatusTypeDef HAL_ADCEx_InjectedStart_IT(ADC_HandleTypeDef *hadc); 1202 HAL_StatusTypeDef HAL_ADCEx_InjectedStop_IT(ADC_HandleTypeDef *hadc); 1206 HAL_StatusTypeDef HAL_ADCEx_MultiModeStart_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint… 1207 HAL_StatusTypeDef HAL_ADCEx_MultiModeStop_DMA(ADC_HandleTypeDef *hadc); [all …]
|
/btstack/port/stm32-f4discovery-usb/Drivers/STM32F4xx_HAL_Driver/Inc/ |
H A D | stm32f4xx_hal_adc.h | 210 …void (* ConvCpltCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC conversion comp… 211 …void (* ConvHalfCpltCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC conversion DMA … 212 …void (* LevelOutOfWindowCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC analog watchdog… 213 …void (* ErrorCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC error callback … 214 …void (* InjectedConvCpltCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC group injected … 215 …void (* MspInitCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC Msp Init callba… 216 …void (* MspDeInitCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC Msp DeInit call… 238 typedef void (*pADC_CallbackTypeDef)(ADC_HandleTypeDef *hadc); /*!< pointer to a ADC callback func… 563 HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc); 564 HAL_StatusTypeDef HAL_ADC_DeInit(ADC_HandleTypeDef *hadc); [all …]
|
H A D | stm32f4xx_hal_adc_ex.h | 268 HAL_StatusTypeDef HAL_ADCEx_InjectedStart(ADC_HandleTypeDef* hadc); 269 HAL_StatusTypeDef HAL_ADCEx_InjectedStop(ADC_HandleTypeDef* hadc); 270 HAL_StatusTypeDef HAL_ADCEx_InjectedPollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeout); 271 HAL_StatusTypeDef HAL_ADCEx_InjectedStart_IT(ADC_HandleTypeDef* hadc); 272 HAL_StatusTypeDef HAL_ADCEx_InjectedStop_IT(ADC_HandleTypeDef* hadc); 273 uint32_t HAL_ADCEx_InjectedGetValue(ADC_HandleTypeDef* hadc, uint32_t InjectedRank); 274 HAL_StatusTypeDef HAL_ADCEx_MultiModeStart_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t L… 275 HAL_StatusTypeDef HAL_ADCEx_MultiModeStop_DMA(ADC_HandleTypeDef* hadc); 276 uint32_t HAL_ADCEx_MultiModeGetValue(ADC_HandleTypeDef* hadc); 277 void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef* hadc); [all …]
|