|
STM32L4xx_HAL_Driver
1.14.0
|
Extended IO operation functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_ADCEx_Calibration_Start (ADC_HandleTypeDef *hadc, uint32_t SingleDiff) |
| Perform an ADC automatic self-calibration Calibration prerequisite: ADC must be disabled (execute this function before HAL_ADC_Start() or after HAL_ADC_Stop() ). More... | |
| uint32_t | HAL_ADCEx_Calibration_GetValue (ADC_HandleTypeDef *hadc, uint32_t SingleDiff) |
| Get the calibration factor. More... | |
| HAL_StatusTypeDef | HAL_ADCEx_Calibration_SetValue (ADC_HandleTypeDef *hadc, uint32_t SingleDiff, uint32_t CalibrationFactor) |
| Set the calibration factor to overwrite automatic conversion result. ADC must be enabled and no conversion is ongoing. More... | |
| HAL_StatusTypeDef | HAL_ADCEx_InjectedStart (ADC_HandleTypeDef *hadc) |
| Enable ADC, start conversion of injected group. More... | |
| HAL_StatusTypeDef | HAL_ADCEx_InjectedStop (ADC_HandleTypeDef *hadc) |
| Stop conversion of injected channels. Disable ADC peripheral if no regular conversion is on going. More... | |
| HAL_StatusTypeDef | HAL_ADCEx_InjectedPollForConversion (ADC_HandleTypeDef *hadc, uint32_t Timeout) |
| Wait for injected group conversion to be completed. More... | |
| HAL_StatusTypeDef | HAL_ADCEx_InjectedStart_IT (ADC_HandleTypeDef *hadc) |
| Enable ADC, start conversion of injected group with interruption. More... | |
| HAL_StatusTypeDef | HAL_ADCEx_InjectedStop_IT (ADC_HandleTypeDef *hadc) |
| Stop conversion of injected channels, disable interruption of end-of-conversion. Disable ADC peripheral if no regular conversion is on going. More... | |
| HAL_StatusTypeDef | HAL_ADCEx_MultiModeStart_DMA (ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length) |
| Enable ADC, start MultiMode conversion and transfer regular results through DMA. More... | |
| HAL_StatusTypeDef | HAL_ADCEx_MultiModeStop_DMA (ADC_HandleTypeDef *hadc) |
| Stop multimode ADC conversion, disable ADC DMA transfer, disable ADC peripheral. More... | |
| uint32_t | HAL_ADCEx_MultiModeGetValue (ADC_HandleTypeDef *hadc) |
| Return the last ADC Master and Slave regular conversions results when in multimode configuration. More... | |
| uint32_t | HAL_ADCEx_InjectedGetValue (ADC_HandleTypeDef *hadc, uint32_t InjectedRank) |
| Get ADC injected group conversion result. More... | |
| void | HAL_ADCEx_InjectedConvCpltCallback (ADC_HandleTypeDef *hadc) |
| Injected conversion complete callback in non-blocking mode. More... | |
| void | HAL_ADCEx_InjectedQueueOverflowCallback (ADC_HandleTypeDef *hadc) |
| Injected context queue overflow callback. More... | |
| void | HAL_ADCEx_LevelOutOfWindow2Callback (ADC_HandleTypeDef *hadc) |
| Analog watchdog 2 callback in non-blocking mode. More... | |
| void | HAL_ADCEx_LevelOutOfWindow3Callback (ADC_HandleTypeDef *hadc) |
| Analog watchdog 3 callback in non-blocking mode. More... | |
| void | HAL_ADCEx_EndOfSamplingCallback (ADC_HandleTypeDef *hadc) |
| End Of Sampling callback in non-blocking mode. More... | |
| HAL_StatusTypeDef | HAL_ADCEx_RegularStop (ADC_HandleTypeDef *hadc) |
| Stop ADC conversion of regular group (and injected channels in case of auto_injection mode), disable ADC peripheral if no conversion is on going on injected group. More... | |
| HAL_StatusTypeDef | HAL_ADCEx_RegularStop_IT (ADC_HandleTypeDef *hadc) |
| Stop ADC conversion of ADC groups regular and injected, disable interrution of end-of-conversion, disable ADC peripheral if no conversion is on going on injected group. More... | |
| HAL_StatusTypeDef | HAL_ADCEx_RegularStop_DMA (ADC_HandleTypeDef *hadc) |
| Stop ADC conversion of regular group (and injected group in case of auto_injection mode), disable ADC DMA transfer, disable ADC peripheral if no conversion is on going on injected group. More... | |
| HAL_StatusTypeDef | HAL_ADCEx_RegularMultiModeStop_DMA (ADC_HandleTypeDef *hadc) |
| Stop DMA-based multimode ADC conversion, disable ADC DMA transfer, disable ADC peripheral if no injected conversion is on-going. More... | |
Extended IO operation functions.
===============================================================================
##### IO operation functions #####
===============================================================================
[..] This section provides functions allowing to:
(+) Perform the ADC self-calibration for single or differential ending.
(+) Get calibration factors for single or differential ending.
(+) Set calibration factors for single or differential ending.
(+) Start conversion of ADC group injected.
(+) Stop conversion of ADC group injected.
(+) Poll for conversion complete on ADC group injected.
(+) Get result of ADC group injected channel conversion.
(+) Start conversion of ADC group injected and enable interruptions.
(+) Stop conversion of ADC group injected and disable interruptions.
(+) When multimode feature is available, start multimode and enable DMA transfer.
(+) Stop multimode and disable ADC DMA transfer.
(+) Get result of multimode conversion. | uint32_t HAL_ADCEx_Calibration_GetValue | ( | ADC_HandleTypeDef * | hadc, |
| uint32_t | SingleDiff | ||
| ) |
Get the calibration factor.
| hadc | ADC handle. |
| SingleDiff | This parameter can be only:
|
| Calibration | value. |
Definition at line 203 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_Calibration_SetValue | ( | ADC_HandleTypeDef * | hadc, |
| uint32_t | SingleDiff, | ||
| uint32_t | CalibrationFactor | ||
| ) |
Set the calibration factor to overwrite automatic conversion result. ADC must be enabled and no conversion is ongoing.
| hadc | ADC handle |
| SingleDiff | This parameter can be only:
|
| CalibrationFactor | Calibration factor (coded on 7 bits maximum) |
| HAL | state |
Definition at line 223 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_Calibration_Start | ( | ADC_HandleTypeDef * | hadc, |
| uint32_t | SingleDiff | ||
| ) |
Perform an ADC automatic self-calibration Calibration prerequisite: ADC must be disabled (execute this function before HAL_ADC_Start() or after HAL_ADC_Stop() ).
| hadc | ADC handle |
| SingleDiff | Selection of single-ended or differential input This parameter can be one of the following values:
|
| HAL | status |
Definition at line 129 of file stm32l4xx_hal_adc_ex.c.
| __weak void HAL_ADCEx_EndOfSamplingCallback | ( | ADC_HandleTypeDef * | hadc | ) |
End Of Sampling callback in non-blocking mode.
| hadc | ADC handle |
| None |
Definition at line 1235 of file stm32l4xx_hal_adc_ex.c.
| __weak void HAL_ADCEx_InjectedConvCpltCallback | ( | ADC_HandleTypeDef * | hadc | ) |
Injected conversion complete callback in non-blocking mode.
| hadc | ADC handle |
| None |
Definition at line 1170 of file stm32l4xx_hal_adc_ex.c.
| uint32_t HAL_ADCEx_InjectedGetValue | ( | ADC_HandleTypeDef * | hadc, |
| uint32_t | InjectedRank | ||
| ) |
Get ADC injected group conversion result.
| hadc | ADC handle |
| InjectedRank | the converted ADC injected rank. This parameter can be one of the following values:
|
| ADC | group injected conversion data |
Definition at line 1135 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_InjectedPollForConversion | ( | ADC_HandleTypeDef * | hadc, |
| uint32_t | Timeout | ||
| ) |
Wait for injected group conversion to be completed.
| hadc | ADC handle |
| Timeout | Timeout value in millisecond. |
| HAL | status |
Definition at line 483 of file stm32l4xx_hal_adc_ex.c.
| __weak void HAL_ADCEx_InjectedQueueOverflowCallback | ( | ADC_HandleTypeDef * | hadc | ) |
Injected context queue overflow callback.
| hadc | ADC handle |
| None |
Definition at line 1189 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_InjectedStart | ( | ADC_HandleTypeDef * | hadc | ) |
Enable ADC, start conversion of injected group.
| hadc | ADC handle. |
| HAL | status |
Definition at line 279 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_InjectedStart_IT | ( | ADC_HandleTypeDef * | hadc | ) |
Enable ADC, start conversion of injected group with interruption.
| hadc | ADC handle. |
| HAL | status. |
Definition at line 620 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_InjectedStop | ( | ADC_HandleTypeDef * | hadc | ) |
Stop conversion of injected channels. Disable ADC peripheral if no regular conversion is on going.
| hadc | ADC handle. |
| HAL | status |
Definition at line 428 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_InjectedStop_IT | ( | ADC_HandleTypeDef * | hadc | ) |
Stop conversion of injected channels, disable interruption of end-of-conversion. Disable ADC peripheral if no regular conversion is on going.
| hadc | ADC handle |
| HAL | status |
Definition at line 793 of file stm32l4xx_hal_adc_ex.c.
| __weak void HAL_ADCEx_LevelOutOfWindow2Callback | ( | ADC_HandleTypeDef * | hadc | ) |
Analog watchdog 2 callback in non-blocking mode.
| hadc | ADC handle |
| None |
Definition at line 1204 of file stm32l4xx_hal_adc_ex.c.
| __weak void HAL_ADCEx_LevelOutOfWindow3Callback | ( | ADC_HandleTypeDef * | hadc | ) |
Analog watchdog 3 callback in non-blocking mode.
| hadc | ADC handle |
| None |
Definition at line 1219 of file stm32l4xx_hal_adc_ex.c.
| uint32_t HAL_ADCEx_MultiModeGetValue | ( | ADC_HandleTypeDef * | hadc | ) |
Return the last ADC Master and Slave regular conversions results when in multimode configuration.
| hadc | ADC handle of ADC Master (handle of ADC Slave must not be used) |
| The | converted data values. |
Definition at line 1088 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_MultiModeStart_DMA | ( | ADC_HandleTypeDef * | hadc, |
| uint32_t * | pData, | ||
| uint32_t | Length | ||
| ) |
Enable ADC, start MultiMode conversion and transfer regular results through DMA.
| hadc | ADC handle of ADC master (handle of ADC slave must not be used) |
| pData | Destination Buffer address. |
| Length | Length of data to be transferred from ADC peripheral to memory (in bytes). |
| HAL | status |
Definition at line 860 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_MultiModeStop_DMA | ( | ADC_HandleTypeDef * | hadc | ) |
Stop multimode ADC conversion, disable ADC DMA transfer, disable ADC peripheral.
| hadc | ADC handle of ADC master (handle of ADC slave must not be used) |
| HAL | status |
Definition at line 975 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_RegularMultiModeStop_DMA | ( | ADC_HandleTypeDef * | hadc | ) |
Stop DMA-based multimode ADC conversion, disable ADC DMA transfer, disable ADC peripheral if no injected conversion is on-going.
| hadc | ADC handle of ADC master (handle of ADC slave must not be used) |
| HAL | status |
Definition at line 1457 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_RegularStop | ( | ADC_HandleTypeDef * | hadc | ) |
Stop ADC conversion of regular group (and injected channels in case of auto_injection mode), disable ADC peripheral if no conversion is on going on injected group.
| hadc | ADC handle |
| HAL | status. |
Definition at line 1252 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_RegularStop_DMA | ( | ADC_HandleTypeDef * | hadc | ) |
Stop ADC conversion of regular group (and injected group in case of auto_injection mode), disable ADC DMA transfer, disable ADC peripheral if no conversion is on going on injected group.
| hadc | ADC handle |
| HAL | status. |
Definition at line 1370 of file stm32l4xx_hal_adc_ex.c.
| HAL_StatusTypeDef HAL_ADCEx_RegularStop_IT | ( | ADC_HandleTypeDef * | hadc | ) |
Stop ADC conversion of ADC groups regular and injected, disable interrution of end-of-conversion, disable ADC peripheral if no conversion is on going on injected group.
| hadc | ADC handle |
| HAL | status. |
Definition at line 1310 of file stm32l4xx_hal_adc_ex.c.