STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Macros | |
#define | ADC_IS_ENABLE(__HANDLE__) |
Verification of ADC state: enabled or disabled. | |
#define | ADC_IS_SOFTWARE_START_REGULAR(__HANDLE__) |
Test if conversion trigger of regular group is software start or external trigger. | |
#define | ADC_IS_SOFTWARE_START_INJECTED(__HANDLE__) |
Test if conversion trigger of injected group is software start or external trigger. | |
#define | ADC_STATE_CLR_SET MODIFY_REG |
Simultaneously clears and sets specific bits of the handle State. | |
#define | ADC_CLEAR_ERRORCODE(__HANDLE__) |
Clear ADC error code (set it to error code: "no error") | |
#define | IS_ADC_CLOCKPRESCALER(ADC_CLOCK) |
#define | IS_ADC_SAMPLING_DELAY(DELAY) |
#define | IS_ADC_RESOLUTION(RESOLUTION) |
#define | IS_ADC_EXT_TRIG_EDGE(EDGE) |
#define | IS_ADC_EXT_TRIG(REGTRIG) |
#define | IS_ADC_DATA_ALIGN(ALIGN) |
#define | IS_ADC_SAMPLE_TIME(TIME) |
#define | IS_ADC_EOCSelection(EOCSelection) |
#define | IS_ADC_EVENT_TYPE(EVENT) |
#define | IS_ADC_ANALOG_WATCHDOG(WATCHDOG) |
#define | IS_ADC_CHANNELS_TYPE(CHANNEL_TYPE) |
#define | IS_ADC_THRESHOLD(THRESHOLD) |
#define | IS_ADC_REGULAR_LENGTH(LENGTH) |
#define | IS_ADC_REGULAR_RANK(RANK) |
#define | IS_ADC_REGULAR_DISC_NUMBER(NUMBER) |
#define | IS_ADC_RANGE(RESOLUTION, ADC_VALUE) |
#define | ADC_SQR1(_NbrOfConversion_) |
Set ADC Regular channel sequence length. | |
#define | ADC_SMPR1(_SAMPLETIME_, _CHANNELNB_) |
Set the ADC's sample time for channel numbers between 10 and 18. | |
#define | ADC_SMPR2(_SAMPLETIME_, _CHANNELNB_) |
Set the ADC's sample time for channel numbers between 0 and 9. | |
#define | ADC_SQR3_RK(_CHANNELNB_, _RANKNB_) |
Set the selected regular channel rank for rank between 1 and 6. | |
#define | ADC_SQR2_RK(_CHANNELNB_, _RANKNB_) |
Set the selected regular channel rank for rank between 7 and 12. | |
#define | ADC_SQR1_RK(_CHANNELNB_, _RANKNB_) |
Set the selected regular channel rank for rank between 13 and 16. | |
#define | ADC_CR2_CONTINUOUS(_CONTINUOUS_MODE_) |
Enable ADC continuous conversion mode. | |
#define | ADC_CR1_DISCONTINUOUS(_NBR_DISCONTINUOUSCONV_) |
Configures the number of discontinuous conversions for the regular group channels. | |
#define | ADC_CR1_SCANCONV(_SCANCONV_MODE_) |
Enable ADC scan mode. | |
#define | ADC_CR2_EOCSelection(_EOCSelection_MODE_) |
Enable the ADC end of conversion selection. | |
#define | ADC_CR2_DMAContReq(_DMAContReq_MODE_) |
Enable the ADC DMA continuous request. | |
#define | ADC_GET_RESOLUTION(__HANDLE__) |
Return resolution bits in CR1 register. | |
#define ADC_IS_ENABLE | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_adc.h>
Verification of ADC state: enabled or disabled.
__HANDLE__ | ADC handle |
SET | (ADC enabled) or RESET (ADC disabled) |
Definition at line 661 of file stm32f4xx_hal_adc.h.
#define ADC_IS_SOFTWARE_START_REGULAR | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_adc.h>
Test if conversion trigger of regular group is software start or external trigger.
__HANDLE__ | ADC handle |
SET | (software start) or RESET (external trigger) |
Definition at line 671 of file stm32f4xx_hal_adc.h.
Referenced by ADC_DMAConvCplt(), ADC_MultiModeDMAConvCplt(), HAL_ADC_IRQHandler(), HAL_ADC_PollForConversion(), and HAL_ADCEx_InjectedPollForConversion().
#define ADC_IS_SOFTWARE_START_INJECTED | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_adc.h>
Test if conversion trigger of injected group is software start or external trigger.
__HANDLE__ | ADC handle |
SET | (software start) or RESET (external trigger) |
Definition at line 680 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_IRQHandler(), and HAL_ADCEx_InjectedPollForConversion().
#define ADC_STATE_CLR_SET MODIFY_REG |
#include <stm32f4xx_hal_adc.h>
Simultaneously clears and sets specific bits of the handle State.
None |
Definition at line 690 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_Init(), HAL_ADC_Start(), HAL_ADC_Start_DMA(), HAL_ADC_Start_IT(), HAL_ADC_Stop(), HAL_ADC_Stop_DMA(), HAL_ADC_Stop_IT(), HAL_ADCEx_InjectedStart(), HAL_ADCEx_InjectedStart_IT(), HAL_ADCEx_InjectedStop(), HAL_ADCEx_InjectedStop_IT(), HAL_ADCEx_MultiModeStart_DMA(), and HAL_ADCEx_MultiModeStop_DMA().
#define ADC_CLEAR_ERRORCODE | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_adc.h>
Clear ADC error code (set it to error code: "no error")
__HANDLE__ | ADC handle |
None |
Definition at line 697 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_DeInit(), HAL_ADC_Init(), HAL_ADC_Start(), HAL_ADC_Start_DMA(), HAL_ADC_Start_IT(), HAL_ADCEx_InjectedStart(), HAL_ADCEx_InjectedStart_IT(), and HAL_ADCEx_MultiModeStart_DMA().
#define IS_ADC_CLOCKPRESCALER | ( | ADC_CLOCK | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 701 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_Init().
#define IS_ADC_SAMPLING_DELAY | ( | DELAY | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 705 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADCEx_MultiModeConfigChannel().
#define IS_ADC_RESOLUTION | ( | RESOLUTION | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 721 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_Init().
#define IS_ADC_EXT_TRIG_EDGE | ( | EDGE | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 725 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_Init(), HAL_ADC_Start(), HAL_ADC_Start_DMA(), HAL_ADC_Start_IT(), and HAL_ADCEx_MultiModeStart_DMA().
#define IS_ADC_EXT_TRIG | ( | REGTRIG | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 729 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_Init().
#define IS_ADC_DATA_ALIGN | ( | ALIGN | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 746 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_Init().
#define IS_ADC_SAMPLE_TIME | ( | TIME | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 748 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel(), and HAL_ADCEx_InjectedConfigChannel().
#define IS_ADC_EOCSelection | ( | EOCSelection | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 756 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_Init(), and HAL_ADC_IRQHandler().
#define IS_ADC_EVENT_TYPE | ( | EVENT | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 759 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_PollForEvent().
#define IS_ADC_ANALOG_WATCHDOG | ( | WATCHDOG | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 761 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_AnalogWDGConfig().
#define IS_ADC_CHANNELS_TYPE | ( | CHANNEL_TYPE | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 768 of file stm32f4xx_hal_adc.h.
#define IS_ADC_THRESHOLD | ( | THRESHOLD | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 771 of file stm32f4xx_hal_adc.h.
#define IS_ADC_REGULAR_LENGTH | ( | LENGTH | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 773 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_Init(), and HAL_ADC_IRQHandler().
#define IS_ADC_REGULAR_RANK | ( | RANK | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 774 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
#define IS_ADC_REGULAR_DISC_NUMBER | ( | NUMBER | ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 775 of file stm32f4xx_hal_adc.h.
Referenced by ADC_Init().
#define IS_ADC_RANGE | ( | RESOLUTION, | |
ADC_VALUE ) |
#include <stm32f4xx_hal_adc.h>
Definition at line 776 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_AnalogWDGConfig(), and HAL_ADCEx_InjectedConfigChannel().
#define ADC_SQR1 | ( | _NbrOfConversion_ | ) |
#include <stm32f4xx_hal_adc.h>
Set ADC Regular channel sequence length.
_NbrOfConversion_ | Regular channel sequence length. |
None |
Definition at line 787 of file stm32f4xx_hal_adc.h.
Referenced by ADC_Init(), and HAL_ADCEx_InjectedConfigChannel().
#define ADC_SMPR1 | ( | _SAMPLETIME_, | |
_CHANNELNB_ ) |
#include <stm32f4xx_hal_adc.h>
Set the ADC's sample time for channel numbers between 10 and 18.
_SAMPLETIME_ | Sample time parameter. |
_CHANNELNB_ | Channel number. |
None |
Definition at line 795 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel(), and HAL_ADCEx_InjectedConfigChannel().
#define ADC_SMPR2 | ( | _SAMPLETIME_, | |
_CHANNELNB_ ) |
#include <stm32f4xx_hal_adc.h>
Set the ADC's sample time for channel numbers between 0 and 9.
_SAMPLETIME_ | Sample time parameter. |
_CHANNELNB_ | Channel number. |
None |
Definition at line 803 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel(), and HAL_ADCEx_InjectedConfigChannel().
#define ADC_SQR3_RK | ( | _CHANNELNB_, | |
_RANKNB_ ) |
#include <stm32f4xx_hal_adc.h>
Set the selected regular channel rank for rank between 1 and 6.
_CHANNELNB_ | Channel number. |
_RANKNB_ | Rank number. |
None |
Definition at line 811 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
#define ADC_SQR2_RK | ( | _CHANNELNB_, | |
_RANKNB_ ) |
#include <stm32f4xx_hal_adc.h>
Set the selected regular channel rank for rank between 7 and 12.
_CHANNELNB_ | Channel number. |
_RANKNB_ | Rank number. |
None |
Definition at line 819 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
#define ADC_SQR1_RK | ( | _CHANNELNB_, | |
_RANKNB_ ) |
#include <stm32f4xx_hal_adc.h>
Set the selected regular channel rank for rank between 13 and 16.
_CHANNELNB_ | Channel number. |
_RANKNB_ | Rank number. |
None |
Definition at line 827 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
#define ADC_CR2_CONTINUOUS | ( | _CONTINUOUS_MODE_ | ) |
#include <stm32f4xx_hal_adc.h>
Enable ADC continuous conversion mode.
_CONTINUOUS_MODE_ | Continuous mode. |
None |
Definition at line 834 of file stm32f4xx_hal_adc.h.
Referenced by ADC_Init().
#define ADC_CR1_DISCONTINUOUS | ( | _NBR_DISCONTINUOUSCONV_ | ) |
#include <stm32f4xx_hal_adc.h>
Configures the number of discontinuous conversions for the regular group channels.
_NBR_DISCONTINUOUSCONV_ | Number of discontinuous conversions. |
None |
Definition at line 841 of file stm32f4xx_hal_adc.h.
Referenced by ADC_Init().
#define ADC_CR1_SCANCONV | ( | _SCANCONV_MODE_ | ) |
#include <stm32f4xx_hal_adc.h>
Enable ADC scan mode.
_SCANCONV_MODE_ | Scan conversion mode. |
None |
Definition at line 848 of file stm32f4xx_hal_adc.h.
Referenced by ADC_Init().
#define ADC_CR2_EOCSelection | ( | _EOCSelection_MODE_ | ) |
#include <stm32f4xx_hal_adc.h>
Enable the ADC end of conversion selection.
_EOCSelection_MODE_ | End of conversion selection mode. |
None |
Definition at line 855 of file stm32f4xx_hal_adc.h.
Referenced by ADC_Init().
#define ADC_CR2_DMAContReq | ( | _DMAContReq_MODE_ | ) |
#include <stm32f4xx_hal_adc.h>
Enable the ADC DMA continuous request.
_DMAContReq_MODE_ | DMA continuous request mode. |
None |
Definition at line 862 of file stm32f4xx_hal_adc.h.
Referenced by ADC_Init().
#define ADC_GET_RESOLUTION | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_adc.h>
Return resolution bits in CR1 register.
__HANDLE__ | ADC handle |
None |
Definition at line 869 of file stm32f4xx_hal_adc.h.
Referenced by HAL_ADC_AnalogWDGConfig(), and HAL_ADCEx_InjectedConfigChannel().