Prusa MINI Firmware overview
|
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... | |
#define __HAL_ADC_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_ADC_STATE_RESET) |
Reset ADC handle state.
<strong>HANDLE</strong> | ADC handle |
None |
#define __HAL_ADC_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR2 |= ADC_CR2_ADON) |
Enable the ADC peripheral.
<strong>HANDLE</strong> | ADC handle |
None |
#define __HAL_ADC_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR2 &= ~ADC_CR2_ADON) |
Disable the ADC peripheral.
<strong>HANDLE</strong> | ADC handle |
None |
#define __HAL_ADC_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->CR1) |= (__INTERRUPT__)) |
Enable the ADC end of conversion interrupt.
<strong>HANDLE</strong> | specifies the ADC Handle. |
<strong>INTERRUPT</strong> | ADC Interrupt. |
None |
#define __HAL_ADC_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->CR1) &= ~(__INTERRUPT__)) |
Disable the ADC end of conversion interrupt.
<strong>HANDLE</strong> | specifies the ADC Handle. |
<strong>INTERRUPT</strong> | ADC interrupt. |
None |
#define __HAL_ADC_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->CR1 & (__INTERRUPT__)) == (__INTERRUPT__)) |
Check if the specified ADC interrupt source is enabled or disabled.
<strong>HANDLE</strong> | specifies the ADC Handle. |
<strong>INTERRUPT</strong> | specifies the ADC interrupt source to check. |
The | new state of IT (TRUE or FALSE). |
#define __HAL_ADC_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((__HANDLE__)->Instance->SR) = ~(__FLAG__)) |
Clear the ADC's pending flags.
<strong>HANDLE</strong> | specifies the ADC Handle. |
<strong>FLAG</strong> | ADC flag. |
None |
#define __HAL_ADC_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__)) |
Get the selected ADC's flag status.
<strong>HANDLE</strong> | specifies the ADC Handle. |
<strong>FLAG</strong> | ADC flag. |
None |