![]() |
STM32F769IDiscovery
1.00
uDANTE Audio Networking with STM32F7 DISCO board
|
Macros | |
#define | ADC_IS_ENABLE(__HANDLE__) |
Verification of ADC state: enabled or disabled. More... | |
#define | ADC_IS_SOFTWARE_START_REGULAR(__HANDLE__) (((__HANDLE__)->Instance->CR2 & ADC_CR2_EXTEN) == RESET) |
Test if conversion trigger of regular group is software start or external trigger. More... | |
#define | ADC_IS_SOFTWARE_START_INJECTED(__HANDLE__) (((__HANDLE__)->Instance->CR2 & ADC_CR2_JEXTEN) == RESET) |
Test if conversion trigger of injected group is software start or external trigger. More... | |
#define | ADC_STATE_CLR_SET MODIFY_REG |
Simultaneously clears and sets specific bits of the handle State. More... | |
#define | ADC_CLEAR_ERRORCODE(__HANDLE__) ((__HANDLE__)->ErrorCode = HAL_ADC_ERROR_NONE) |
Clear ADC error code (set it to error code: "no error") More... | |
#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__) ((__THRESHOLD__) <= ((uint32_t)0xFFF)) |
#define | IS_ADC_REGULAR_LENGTH(__LENGTH__) (((__LENGTH__) >= ((uint32_t)1)) && ((__LENGTH__) <= ((uint32_t)16))) |
#define | IS_ADC_REGULAR_RANK(__RANK__) (((__RANK__) >= ((uint32_t)1)) && ((__RANK__) <= ((uint32_t)16))) |
#define | IS_ADC_REGULAR_DISC_NUMBER(__NUMBER__) (((__NUMBER__) >= ((uint32_t)1)) && ((__NUMBER__) <= ((uint32_t)8))) |
#define | IS_ADC_RANGE(__RESOLUTION__, __ADC_VALUE__) |
#define | ADC_SQR1(_NbrOfConversion_) (((_NbrOfConversion_) - (uint8_t)1) << 20) |
Set ADC Regular channel sequence length. More... | |
#define | ADC_SMPR1(_SAMPLETIME_, _CHANNELNB_) ((_SAMPLETIME_) << (3 * (((uint32_t)((uint16_t)(_CHANNELNB_))) - 10))) |
Set the ADC's sample time for channel numbers between 10 and 18. More... | |
#define | ADC_SMPR2(_SAMPLETIME_, _CHANNELNB_) ((_SAMPLETIME_) << (3 * ((uint32_t)((uint16_t)(_CHANNELNB_))))) |
Set the ADC's sample time for channel numbers between 0 and 9. More... | |
#define | ADC_SQR3_RK(_CHANNELNB_, _RANKNB_) (((uint32_t)((uint16_t)(_CHANNELNB_))) << (5 * ((_RANKNB_) - 1))) |
Set the selected regular channel rank for rank between 1 and 6. More... | |
#define | ADC_SQR2_RK(_CHANNELNB_, _RANKNB_) (((uint32_t)((uint16_t)(_CHANNELNB_))) << (5 * ((_RANKNB_) - 7))) |
Set the selected regular channel rank for rank between 7 and 12. More... | |
#define | ADC_SQR1_RK(_CHANNELNB_, _RANKNB_) (((uint32_t)((uint16_t)(_CHANNELNB_))) << (5 * ((_RANKNB_) - 13))) |
Set the selected regular channel rank for rank between 13 and 16. More... | |
#define | ADC_CR2_CONTINUOUS(_CONTINUOUS_MODE_) ((_CONTINUOUS_MODE_) << 1) |
Enable ADC continuous conversion mode. More... | |
#define | ADC_CR1_DISCONTINUOUS(_NBR_DISCONTINUOUSCONV_) (((_NBR_DISCONTINUOUSCONV_) - 1) << POSITION_VAL(ADC_CR1_DISCNUM)) |
Configures the number of discontinuous conversions for the regular group channels. More... | |
#define | ADC_CR1_SCANCONV(_SCANCONV_MODE_) ((_SCANCONV_MODE_) << 8) |
Enable ADC scan mode. More... | |
#define | ADC_CR2_EOCSelection(_EOCSelection_MODE_) ((_EOCSelection_MODE_) << 10) |
Enable the ADC end of conversion selection. More... | |
#define | ADC_CR2_DMAContReq(_DMAContReq_MODE_) ((_DMAContReq_MODE_) << 9) |
Enable the ADC DMA continuous request. More... | |
#define | ADC_GET_RESOLUTION(__HANDLE__) (((__HANDLE__)->Instance->CR1) & ADC_CR1_RES) |
Return resolution bits in CR1 register. More... | |
#define ADC_CLEAR_ERRORCODE | ( | __HANDLE__ | ) | ((__HANDLE__)->ErrorCode = HAL_ADC_ERROR_NONE) |
Clear ADC error code (set it to error code: "no error")
<strong>HANDLE</strong> | ADC handle |
None |
Definition at line 664 of file stm32f7xx_hal_adc.h.
#define ADC_CR1_DISCONTINUOUS | ( | _NBR_DISCONTINUOUSCONV_ | ) | (((_NBR_DISCONTINUOUSCONV_) - 1) << POSITION_VAL(ADC_CR1_DISCNUM)) |
Configures the number of discontinuous conversions for the regular group channels.
<em>NBR_DISCONTINUOUSCONV</em> | Number of discontinuous conversions. |
None |
Definition at line 805 of file stm32f7xx_hal_adc.h.
#define ADC_CR1_SCANCONV | ( | _SCANCONV_MODE_ | ) | ((_SCANCONV_MODE_) << 8) |
Enable ADC scan mode.
<em>SCANCONV_MODE</em> | Scan conversion mode. |
None |
Definition at line 812 of file stm32f7xx_hal_adc.h.
#define ADC_CR2_CONTINUOUS | ( | _CONTINUOUS_MODE_ | ) | ((_CONTINUOUS_MODE_) << 1) |
Enable ADC continuous conversion mode.
<em>CONTINUOUS_MODE</em> | Continuous mode. |
None |
Definition at line 798 of file stm32f7xx_hal_adc.h.
#define ADC_CR2_DMAContReq | ( | _DMAContReq_MODE_ | ) | ((_DMAContReq_MODE_) << 9) |
Enable the ADC DMA continuous request.
<em>DMAContReq_MODE</em> | DMA continuous request mode. |
None |
Definition at line 826 of file stm32f7xx_hal_adc.h.
#define ADC_CR2_EOCSelection | ( | _EOCSelection_MODE_ | ) | ((_EOCSelection_MODE_) << 10) |
Enable the ADC end of conversion selection.
<em>EOCSelection_MODE</em> | End of conversion selection mode. |
None |
Definition at line 819 of file stm32f7xx_hal_adc.h.
#define ADC_GET_RESOLUTION | ( | __HANDLE__ | ) | (((__HANDLE__)->Instance->CR1) & ADC_CR1_RES) |
Return resolution bits in CR1 register.
<strong>HANDLE</strong> | ADC handle |
None |
Definition at line 833 of file stm32f7xx_hal_adc.h.
#define ADC_IS_ENABLE | ( | __HANDLE__ | ) |
Verification of ADC state: enabled or disabled.
<strong>HANDLE</strong> | ADC handle |
SET | (ADC enabled) or RESET (ADC disabled) |
Definition at line 628 of file stm32f7xx_hal_adc.h.
#define ADC_IS_SOFTWARE_START_INJECTED | ( | __HANDLE__ | ) | (((__HANDLE__)->Instance->CR2 & ADC_CR2_JEXTEN) == RESET) |
Test if conversion trigger of injected group is software start or external trigger.
<strong>HANDLE</strong> | ADC handle |
SET | (software start) or RESET (external trigger) |
Definition at line 647 of file stm32f7xx_hal_adc.h.
#define ADC_IS_SOFTWARE_START_REGULAR | ( | __HANDLE__ | ) | (((__HANDLE__)->Instance->CR2 & ADC_CR2_EXTEN) == RESET) |
Test if conversion trigger of regular group is software start or external trigger.
<strong>HANDLE</strong> | ADC handle |
SET | (software start) or RESET (external trigger) |
Definition at line 638 of file stm32f7xx_hal_adc.h.
#define ADC_SMPR1 | ( | _SAMPLETIME_, | |
_CHANNELNB_ | |||
) | ((_SAMPLETIME_) << (3 * (((uint32_t)((uint16_t)(_CHANNELNB_))) - 10))) |
Set the ADC's sample time for channel numbers between 10 and 18.
<em>SAMPLETIME</em> | Sample time parameter. |
<em>CHANNELNB</em> | Channel number. |
None |
Definition at line 759 of file stm32f7xx_hal_adc.h.
#define ADC_SMPR2 | ( | _SAMPLETIME_, | |
_CHANNELNB_ | |||
) | ((_SAMPLETIME_) << (3 * ((uint32_t)((uint16_t)(_CHANNELNB_))))) |
Set the ADC's sample time for channel numbers between 0 and 9.
<em>SAMPLETIME</em> | Sample time parameter. |
<em>CHANNELNB</em> | Channel number. |
None |
Definition at line 767 of file stm32f7xx_hal_adc.h.
#define ADC_SQR1 | ( | _NbrOfConversion_ | ) | (((_NbrOfConversion_) - (uint8_t)1) << 20) |
Set ADC Regular channel sequence length.
<em>NbrOfConversion</em> | Regular channel sequence length. |
None |
Definition at line 751 of file stm32f7xx_hal_adc.h.
#define ADC_SQR1_RK | ( | _CHANNELNB_, | |
_RANKNB_ | |||
) | (((uint32_t)((uint16_t)(_CHANNELNB_))) << (5 * ((_RANKNB_) - 13))) |
Set the selected regular channel rank for rank between 13 and 16.
<em>CHANNELNB</em> | Channel number. |
<em>RANKNB</em> | Rank number. |
None |
Definition at line 791 of file stm32f7xx_hal_adc.h.
#define ADC_SQR2_RK | ( | _CHANNELNB_, | |
_RANKNB_ | |||
) | (((uint32_t)((uint16_t)(_CHANNELNB_))) << (5 * ((_RANKNB_) - 7))) |
Set the selected regular channel rank for rank between 7 and 12.
<em>CHANNELNB</em> | Channel number. |
<em>RANKNB</em> | Rank number. |
None |
Definition at line 783 of file stm32f7xx_hal_adc.h.
#define ADC_SQR3_RK | ( | _CHANNELNB_, | |
_RANKNB_ | |||
) | (((uint32_t)((uint16_t)(_CHANNELNB_))) << (5 * ((_RANKNB_) - 1))) |
Set the selected regular channel rank for rank between 1 and 6.
<em>CHANNELNB</em> | Channel number. |
<em>RANKNB</em> | Rank number. |
None |
Definition at line 775 of file stm32f7xx_hal_adc.h.
#define ADC_STATE_CLR_SET MODIFY_REG |
Simultaneously clears and sets specific bits of the handle State.
None |
Definition at line 657 of file stm32f7xx_hal_adc.h.
#define IS_ADC_ANALOG_WATCHDOG | ( | __WATCHDOG__ | ) |
Definition at line 726 of file stm32f7xx_hal_adc.h.
#define IS_ADC_CHANNELS_TYPE | ( | CHANNEL_TYPE | ) |
Definition at line 733 of file stm32f7xx_hal_adc.h.
#define IS_ADC_CLOCKPRESCALER | ( | __ADC_CLOCK__ | ) |
Definition at line 666 of file stm32f7xx_hal_adc.h.
#define IS_ADC_DATA_ALIGN | ( | __ALIGN__ | ) |
Definition at line 710 of file stm32f7xx_hal_adc.h.
#define IS_ADC_EOCSelection | ( | __EOCSelection__ | ) |
Definition at line 721 of file stm32f7xx_hal_adc.h.
#define IS_ADC_EVENT_TYPE | ( | __EVENT__ | ) |
Definition at line 724 of file stm32f7xx_hal_adc.h.
#define IS_ADC_EXT_TRIG | ( | __REGTRIG__ | ) |
Definition at line 694 of file stm32f7xx_hal_adc.h.
#define IS_ADC_EXT_TRIG_EDGE | ( | __EDGE__ | ) |
Definition at line 690 of file stm32f7xx_hal_adc.h.
#define IS_ADC_RANGE | ( | __RESOLUTION__, | |
__ADC_VALUE__ | |||
) |
Definition at line 740 of file stm32f7xx_hal_adc.h.
#define IS_ADC_REGULAR_DISC_NUMBER | ( | __NUMBER__ | ) | (((__NUMBER__) >= ((uint32_t)1)) && ((__NUMBER__) <= ((uint32_t)8))) |
Definition at line 739 of file stm32f7xx_hal_adc.h.
#define IS_ADC_REGULAR_LENGTH | ( | __LENGTH__ | ) | (((__LENGTH__) >= ((uint32_t)1)) && ((__LENGTH__) <= ((uint32_t)16))) |
Definition at line 737 of file stm32f7xx_hal_adc.h.
#define IS_ADC_REGULAR_RANK | ( | __RANK__ | ) | (((__RANK__) >= ((uint32_t)1)) && ((__RANK__) <= ((uint32_t)16))) |
Definition at line 738 of file stm32f7xx_hal_adc.h.
#define IS_ADC_RESOLUTION | ( | __RESOLUTION__ | ) |
Definition at line 686 of file stm32f7xx_hal_adc.h.
#define IS_ADC_SAMPLE_TIME | ( | __TIME__ | ) |
Definition at line 713 of file stm32f7xx_hal_adc.h.
#define IS_ADC_SAMPLING_DELAY | ( | __DELAY__ | ) |
Definition at line 670 of file stm32f7xx_hal_adc.h.
#define IS_ADC_THRESHOLD | ( | __THRESHOLD__ | ) | ((__THRESHOLD__) <= ((uint32_t)0xFFF)) |
Definition at line 736 of file stm32f7xx_hal_adc.h.