Home
last modified time | relevance | path

Searched refs:hadc (Results 1 – 12 of 12) sorted by relevance

/loramac-node-latest/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_hal_adc.c418 HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc) in HAL_ADC_Init() argument
428 if(hadc == NULL) in HAL_ADC_Init()
434 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADC_Init()
435 assert_param(IS_ADC_CLOCKPRESCALER(hadc->Init.ClockPrescaler)); in HAL_ADC_Init()
436 assert_param(IS_ADC_RESOLUTION(hadc->Init.Resolution)); in HAL_ADC_Init()
438 assert_param(IS_ADC_DFSDMCFG_MODE(hadc)); in HAL_ADC_Init()
440 assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); in HAL_ADC_Init()
441 assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); in HAL_ADC_Init()
442 assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); in HAL_ADC_Init()
443 assert_param(IS_ADC_EXTTRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); in HAL_ADC_Init()
[all …]
Dstm32l4xx_hal_adc_ex.c145 HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc, uint32_t SingleDiff) in HAL_ADCEx_Calibration_Start() argument
151 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADCEx_Calibration_Start()
155 __HAL_LOCK(hadc); in HAL_ADCEx_Calibration_Start()
160 tmp_hal_status = ADC_Disable(hadc); in HAL_ADCEx_Calibration_Start()
166 ADC_STATE_CLR_SET(hadc->State, in HAL_ADCEx_Calibration_Start()
173 MODIFY_REG(hadc->Instance->CR, ADC_CR_ADCALDIF, SingleDiff); in HAL_ADCEx_Calibration_Start()
176 SET_BIT(hadc->Instance->CR, ADC_CR_ADCAL); in HAL_ADCEx_Calibration_Start()
179 while(LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL) in HAL_ADCEx_Calibration_Start()
185 ADC_STATE_CLR_SET(hadc->State, in HAL_ADCEx_Calibration_Start()
190 __HAL_UNLOCK(hadc); in HAL_ADCEx_Calibration_Start()
[all …]
/loramac-node-latest/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Src/
Dstm32l0xx_hal_adc.c296 static HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc);
297 static HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef* hadc);
298 static HAL_StatusTypeDef ADC_ConversionStop(ADC_HandleTypeDef* hadc);
355 HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc) in HAL_ADC_Init() argument
359 if(hadc == NULL) in HAL_ADC_Init()
365 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADC_Init()
366 assert_param(IS_ADC_CLOCKPRESCALER(hadc->Init.ClockPrescaler)); in HAL_ADC_Init()
367 assert_param(IS_ADC_RESOLUTION(hadc->Init.Resolution)); in HAL_ADC_Init()
368 assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); in HAL_ADC_Init()
369 assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); in HAL_ADC_Init()
[all …]
Dstm32l0xx_hal_adc_ex.c123 HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc, uint32_t SingleDiff) in HAL_ADCEx_Calibration_Start() argument
130 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADCEx_Calibration_Start()
133 __HAL_LOCK(hadc); in HAL_ADCEx_Calibration_Start()
136 if (ADC_IS_ENABLE(hadc) == RESET) in HAL_ADCEx_Calibration_Start()
139 ADC_STATE_CLR_SET(hadc->State, in HAL_ADCEx_Calibration_Start()
149 …backup_setting_adc_dma_transfer = READ_BIT(hadc->Instance->CFGR1, ADC_CFGR1_DMAEN | ADC_CFGR1_DMAC… in HAL_ADCEx_Calibration_Start()
150 CLEAR_BIT(hadc->Instance->CFGR1, ADC_CFGR1_DMAEN | ADC_CFGR1_DMACFG); in HAL_ADCEx_Calibration_Start()
153 hadc->Instance->CR |= ADC_CR_ADCAL; in HAL_ADCEx_Calibration_Start()
158 while(HAL_IS_BIT_SET(hadc->Instance->CR, ADC_CR_ADCAL)) in HAL_ADCEx_Calibration_Start()
163 ADC_STATE_CLR_SET(hadc->State, in HAL_ADCEx_Calibration_Start()
[all …]
/loramac-node-latest/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Src/
Dstm32l1xx_hal_adc.c383 HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc) in HAL_ADC_Init() argument
390 if(hadc == NULL) in HAL_ADC_Init()
396 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADC_Init()
397 assert_param(IS_ADC_CLOCKPRESCALER(hadc->Init.ClockPrescaler)); in HAL_ADC_Init()
398 assert_param(IS_ADC_RESOLUTION(hadc->Init.Resolution)); in HAL_ADC_Init()
399 assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); in HAL_ADC_Init()
400 assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); in HAL_ADC_Init()
401 assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); in HAL_ADC_Init()
402 assert_param(IS_ADC_AUTOWAIT(hadc->Init.LowPowerAutoWait)); in HAL_ADC_Init()
403 assert_param(IS_ADC_AUTOPOWEROFF(hadc->Init.LowPowerAutoPowerOff)); in HAL_ADC_Init()
[all …]
Dstm32l1xx_hal_adc_ex.c128 HAL_StatusTypeDef HAL_ADCEx_InjectedStart(ADC_HandleTypeDef* hadc) in HAL_ADCEx_InjectedStart() argument
133 assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); in HAL_ADCEx_InjectedStart()
136 __HAL_LOCK(hadc); in HAL_ADCEx_InjectedStart()
139 tmp_hal_status = ADC_Enable(hadc); in HAL_ADCEx_InjectedStart()
147 ADC_STATE_CLR_SET(hadc->State, in HAL_ADCEx_InjectedStart()
155 if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_REG_BUSY)) in HAL_ADCEx_InjectedStart()
158 ADC_CLEAR_ERRORCODE(hadc); in HAL_ADCEx_InjectedStart()
164 __HAL_UNLOCK(hadc); in HAL_ADCEx_InjectedStart()
168 __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JEOC); in HAL_ADCEx_InjectedStart()
176 if (ADC_IS_SOFTWARE_START_INJECTED(hadc) && in HAL_ADCEx_InjectedStart()
[all …]
/loramac-node-latest/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Inc/
Dstm32l4xx_hal_adc.h385 …void (* ConvCpltCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC conversion comp…
386 …void (* ConvHalfCpltCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC conversion DMA …
387 …void (* LevelOutOfWindowCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC analog watchdog…
388 …void (* ErrorCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC error callback …
389 …void (* InjectedConvCpltCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC group injected …
390 …void (* InjectedQueueOverflowCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC group injected …
391 …void (* LevelOutOfWindow2Callback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC analog watchdog…
392 …void (* LevelOutOfWindow3Callback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC analog watchdog…
393 …void (* EndOfSamplingCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC end of sampling…
394 …void (* MspInitCallback)(struct __ADC_HandleTypeDef *hadc); /*!< ADC Msp Init callba…
[all …]
Dstm32l4xx_hal_adc_ex.h1160 HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc, uint32_t SingleDiff);
1161 uint32_t HAL_ADCEx_Calibration_GetValue(ADC_HandleTypeDef *hadc, uint32_t SingleDiff…
1162 HAL_StatusTypeDef HAL_ADCEx_Calibration_SetValue(ADC_HandleTypeDef *hadc, uint32_t SingleDiff…
1165 HAL_StatusTypeDef HAL_ADCEx_InjectedStart(ADC_HandleTypeDef* hadc);
1166 HAL_StatusTypeDef HAL_ADCEx_InjectedStop(ADC_HandleTypeDef* hadc);
1167 HAL_StatusTypeDef HAL_ADCEx_InjectedPollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeo…
1170 HAL_StatusTypeDef HAL_ADCEx_InjectedStart_IT(ADC_HandleTypeDef* hadc);
1171 HAL_StatusTypeDef HAL_ADCEx_InjectedStop_IT(ADC_HandleTypeDef* hadc);
1175 HAL_StatusTypeDef HAL_ADCEx_MultiModeStart_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint…
1176 HAL_StatusTypeDef HAL_ADCEx_MultiModeStop_DMA(ADC_HandleTypeDef *hadc);
[all …]
/loramac-node-latest/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Inc/
Dstm32l0xx_hal_adc.h1055 HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc);
1056 HAL_StatusTypeDef HAL_ADC_DeInit(ADC_HandleTypeDef *hadc);
1057 void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc);
1058 void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc);
1070 HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef* hadc);
1071 HAL_StatusTypeDef HAL_ADC_Stop(ADC_HandleTypeDef* hadc);
1072 HAL_StatusTypeDef HAL_ADC_PollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeout);
1073 HAL_StatusTypeDef HAL_ADC_PollForEvent(ADC_HandleTypeDef* hadc, uint32_t EventType, uint32_t Tim…
1076 HAL_StatusTypeDef HAL_ADC_Start_IT(ADC_HandleTypeDef* hadc);
1077 HAL_StatusTypeDef HAL_ADC_Stop_IT(ADC_HandleTypeDef* hadc);
[all …]
Dstm32l0xx_hal_adc_ex.h196 HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc, uint32_t SingleDiff);
197 uint32_t HAL_ADCEx_Calibration_GetValue(ADC_HandleTypeDef* hadc, uint32_t SingleDiff);
198 HAL_StatusTypeDef HAL_ADCEx_Calibration_SetValue(ADC_HandleTypeDef* hadc, uint32_t SingleDiff, ui…
/loramac-node-latest/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Inc/
Dstm32l1xx_hal_adc.h1234 HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc);
1235 HAL_StatusTypeDef HAL_ADC_DeInit(ADC_HandleTypeDef *hadc);
1236 void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc);
1237 void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc);
1250 HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef* hadc);
1251 HAL_StatusTypeDef HAL_ADC_Stop(ADC_HandleTypeDef* hadc);
1252 HAL_StatusTypeDef HAL_ADC_PollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeout);
1253 HAL_StatusTypeDef HAL_ADC_PollForEvent(ADC_HandleTypeDef* hadc, uint32_t EventType, uint32_t …
1256 HAL_StatusTypeDef HAL_ADC_Start_IT(ADC_HandleTypeDef* hadc);
1257 HAL_StatusTypeDef HAL_ADC_Stop_IT(ADC_HandleTypeDef* hadc);
[all …]
Dstm32l1xx_hal_adc_ex.h539 HAL_StatusTypeDef HAL_ADCEx_InjectedStart(ADC_HandleTypeDef* hadc);
540 HAL_StatusTypeDef HAL_ADCEx_InjectedStop(ADC_HandleTypeDef* hadc);
541 HAL_StatusTypeDef HAL_ADCEx_InjectedPollForConversion(ADC_HandleTypeDef* hadc, uint32_t Timeo…
544 HAL_StatusTypeDef HAL_ADCEx_InjectedStart_IT(ADC_HandleTypeDef* hadc);
545 HAL_StatusTypeDef HAL_ADCEx_InjectedStop_IT(ADC_HandleTypeDef* hadc);
548 uint32_t HAL_ADCEx_InjectedGetValue(ADC_HandleTypeDef* hadc, uint32_t InjectedRank);
551 void HAL_ADCEx_InjectedConvCpltCallback(ADC_HandleTypeDef* hadc);
562 HAL_StatusTypeDef HAL_ADCEx_InjectedConfigChannel(ADC_HandleTypeDef* hadc,ADC_InjectionConfTy…