STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
HAL ADC macro to manage HAL ADC handle, IT and flags.
Collaboration diagram for HAL ADC macro to manage HAL ADC handle, IT and flags.:

Macros

#define __HAL_ADC_RESET_HANDLE_STATE(__HANDLE__)
 Reset ADC handle state.
#define __HAL_ADC_ENABLE_IT(__HANDLE__, __INTERRUPT__)
 Enable ADC interrupt.
#define __HAL_ADC_DISABLE_IT(__HANDLE__, __INTERRUPT__)
 Disable ADC interrupt.
#define __HAL_ADC_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)
 Checks if the specified ADC interrupt source is enabled or disabled.
#define __HAL_ADC_GET_FLAG(__HANDLE__, __FLAG__)
 Check whether the specified ADC flag is set or not.
#define __HAL_ADC_CLEAR_FLAG(__HANDLE__, __FLAG__)
 Clear the specified ADC flag.

Detailed Description

Macro Definition Documentation

◆ __HAL_ADC_CLEAR_FLAG

#define __HAL_ADC_CLEAR_FLAG ( __HANDLE__,
__FLAG__ )
Value:
(((__HANDLE__)->Instance->ISR) = (__FLAG__))

Clear the specified ADC flag.

Parameters
__HANDLE__ADC handle
__FLAG__ADC flag This parameter can be one of the following values:
Return values
None

Definition at line 1401 of file stm32h7xx_hal_adc.h.

◆ __HAL_ADC_DISABLE_IT

#define __HAL_ADC_DISABLE_IT ( __HANDLE__,
__INTERRUPT__ )
Value:
(((__HANDLE__)->Instance->IER) &= ~(__INTERRUPT__))

Disable ADC interrupt.

Parameters
__HANDLE__ADC handle
__INTERRUPT__ADC Interrupt This parameter can be one of the following values:
  • ADC_IT_RDY ADC Ready interrupt source
  • ADC_IT_EOSMP ADC End of Sampling interrupt source
  • ADC_IT_EOC ADC End of Regular Conversion interrupt source
  • ADC_IT_EOS ADC End of Regular sequence of Conversions interrupt source
  • ADC_IT_OVR ADC overrun interrupt source
  • ADC_IT_JEOC ADC End of Injected Conversion interrupt source
  • ADC_IT_JEOS ADC End of Injected sequence of Conversions interrupt source
  • ADC_IT_AWD1 ADC Analog watchdog 1 interrupt source (main analog watchdog)
  • ADC_IT_AWD2 ADC Analog watchdog 2 interrupt source (additional analog watchdog)
  • ADC_IT_AWD3 ADC Analog watchdog 3 interrupt source (additional analog watchdog)
  • ADC_IT_JQOVF ADC Injected Context Queue Overflow interrupt source.
Return values
None

Definition at line 1337 of file stm32h7xx_hal_adc.h.

◆ __HAL_ADC_ENABLE_IT

#define __HAL_ADC_ENABLE_IT ( __HANDLE__,
__INTERRUPT__ )
Value:
(((__HANDLE__)->Instance->IER) |= (__INTERRUPT__))

Enable ADC interrupt.

Parameters
__HANDLE__ADC handle
__INTERRUPT__ADC Interrupt This parameter can be one of the following values:
  • ADC_IT_RDY ADC Ready interrupt source
  • ADC_IT_EOSMP ADC End of Sampling interrupt source
  • ADC_IT_EOC ADC End of Regular Conversion interrupt source
  • ADC_IT_EOS ADC End of Regular sequence of Conversions interrupt source
  • ADC_IT_OVR ADC overrun interrupt source
  • ADC_IT_JEOC ADC End of Injected Conversion interrupt source
  • ADC_IT_JEOS ADC End of Injected sequence of Conversions interrupt source
  • ADC_IT_AWD1 ADC Analog watchdog 1 interrupt source (main analog watchdog)
  • ADC_IT_AWD2 ADC Analog watchdog 2 interrupt source (additional analog watchdog)
  • ADC_IT_AWD3 ADC Analog watchdog 3 interrupt source (additional analog watchdog)
  • ADC_IT_JQOVF ADC Injected Context Queue Overflow interrupt source.
Return values
None

Definition at line 1316 of file stm32h7xx_hal_adc.h.

◆ __HAL_ADC_GET_FLAG

#define __HAL_ADC_GET_FLAG ( __HANDLE__,
__FLAG__ )
Value:
((((__HANDLE__)->Instance->ISR) & (__FLAG__)) == (__FLAG__))

Check whether the specified ADC flag is set or not.

Parameters
__HANDLE__ADC handle
__FLAG__ADC flag This parameter can be one of the following values:
Return values
Stateof flag (TRUE or FALSE).

Definition at line 1379 of file stm32h7xx_hal_adc.h.

◆ __HAL_ADC_GET_IT_SOURCE

#define __HAL_ADC_GET_IT_SOURCE ( __HANDLE__,
__INTERRUPT__ )
Value:
(((__HANDLE__)->Instance->IER & (__INTERRUPT__)) == (__INTERRUPT__))

Checks if the specified ADC interrupt source is enabled or disabled.

Parameters
__HANDLE__ADC handle
__INTERRUPT__ADC interrupt source to check This parameter can be one of the following values:
  • ADC_IT_RDY ADC Ready interrupt source
  • ADC_IT_EOSMP ADC End of Sampling interrupt source
  • ADC_IT_EOC ADC End of Regular Conversion interrupt source
  • ADC_IT_EOS ADC End of Regular sequence of Conversions interrupt source
  • ADC_IT_OVR ADC overrun interrupt source
  • ADC_IT_JEOC ADC End of Injected Conversion interrupt source
  • ADC_IT_JEOS ADC End of Injected sequence of Conversions interrupt source
  • ADC_IT_AWD1 ADC Analog watchdog 1 interrupt source (main analog watchdog)
  • ADC_IT_AWD2 ADC Analog watchdog 2 interrupt source (additional analog watchdog)
  • ADC_IT_AWD3 ADC Analog watchdog 3 interrupt source (additional analog watchdog)
  • ADC_IT_JQOVF ADC Injected Context Queue Overflow interrupt source.
Return values
Stateof interruption (SET or RESET)

Definition at line 1357 of file stm32h7xx_hal_adc.h.

◆ __HAL_ADC_RESET_HANDLE_STATE

#define __HAL_ADC_RESET_HANDLE_STATE ( __HANDLE__)
Value:
((__HANDLE__)->State = HAL_ADC_STATE_RESET)
#define HAL_ADC_STATE_RESET
HAL ADC state machine: ADC states definition (bitfields).

Reset ADC handle state.

Parameters
__HANDLE__ADC handle
Return values
None

Definition at line 1294 of file stm32h7xx_hal_adc.h.