Prusa MINI Firmware overview
Collaboration diagram for ADC Exported Macros:

Macros

#define __HAL_ADC_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_ADC_STATE_RESET)
 Reset ADC handle state. More...
 
#define __HAL_ADC_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR2 |= ADC_CR2_ADON)
 Enable the ADC peripheral. More...
 
#define __HAL_ADC_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR2 &= ~ADC_CR2_ADON)
 Disable the ADC peripheral. More...
 
#define __HAL_ADC_ENABLE_IT(__HANDLE__, __INTERRUPT__)   (((__HANDLE__)->Instance->CR1) |= (__INTERRUPT__))
 Enable the ADC end of conversion interrupt. More...
 
#define __HAL_ADC_DISABLE_IT(__HANDLE__, __INTERRUPT__)   (((__HANDLE__)->Instance->CR1) &= ~(__INTERRUPT__))
 Disable the ADC end of conversion interrupt. More...
 
#define __HAL_ADC_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   (((__HANDLE__)->Instance->CR1 & (__INTERRUPT__)) == (__INTERRUPT__))
 Check if the specified ADC interrupt source is enabled or disabled. More...
 
#define __HAL_ADC_CLEAR_FLAG(__HANDLE__, __FLAG__)   (((__HANDLE__)->Instance->SR) = ~(__FLAG__))
 Clear the ADC's pending flags. More...
 
#define __HAL_ADC_GET_FLAG(__HANDLE__, __FLAG__)   ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__))
 Get the selected ADC's flag status. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_ADC_RESET_HANDLE_STATE

#define __HAL_ADC_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->State = HAL_ADC_STATE_RESET)

Reset ADC handle state.

Parameters
<strong>HANDLE</strong>ADC handle
Return values
None

◆ __HAL_ADC_ENABLE

#define __HAL_ADC_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR2 |= ADC_CR2_ADON)

Enable the ADC peripheral.

Parameters
<strong>HANDLE</strong>ADC handle
Return values
None

◆ __HAL_ADC_DISABLE

#define __HAL_ADC_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR2 &= ~ADC_CR2_ADON)

Disable the ADC peripheral.

Parameters
<strong>HANDLE</strong>ADC handle
Return values
None

◆ __HAL_ADC_ENABLE_IT

#define __HAL_ADC_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    (((__HANDLE__)->Instance->CR1) |= (__INTERRUPT__))

Enable the ADC end of conversion interrupt.

Parameters
<strong>HANDLE</strong>specifies the ADC Handle.
<strong>INTERRUPT</strong>ADC Interrupt.
Return values
None

◆ __HAL_ADC_DISABLE_IT

#define __HAL_ADC_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)    (((__HANDLE__)->Instance->CR1) &= ~(__INTERRUPT__))

Disable the ADC end of conversion interrupt.

Parameters
<strong>HANDLE</strong>specifies the ADC Handle.
<strong>INTERRUPT</strong>ADC interrupt.
Return values
None

◆ __HAL_ADC_GET_IT_SOURCE

#define __HAL_ADC_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    (((__HANDLE__)->Instance->CR1 & (__INTERRUPT__)) == (__INTERRUPT__))

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

Parameters
<strong>HANDLE</strong>specifies the ADC Handle.
<strong>INTERRUPT</strong>specifies the ADC interrupt source to check.
Return values
Thenew state of IT (TRUE or FALSE).

◆ __HAL_ADC_CLEAR_FLAG

#define __HAL_ADC_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((__HANDLE__)->Instance->SR) = ~(__FLAG__))

Clear the ADC's pending flags.

Parameters
<strong>HANDLE</strong>specifies the ADC Handle.
<strong>FLAG</strong>ADC flag.
Return values
None

◆ __HAL_ADC_GET_FLAG

#define __HAL_ADC_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__))

Get the selected ADC's flag status.

Parameters
<strong>HANDLE</strong>specifies the ADC Handle.
<strong>FLAG</strong>ADC flag.
Return values
None