Prusa MINI Firmware overview
|
Macros | |
#define | __HAL_UART_RESET_HANDLE_STATE(__HANDLE__) |
Reset UART handle gstate & RxState. More... | |
#define | __HAL_UART_FLUSH_DRREGISTER(__HANDLE__) ((__HANDLE__)->Instance->DR) |
Flushes the UART DR register. More... | |
#define | __HAL_UART_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
Checks whether the specified UART flag is set or not. More... | |
#define | __HAL_UART_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR = ~(__FLAG__)) |
Clears the specified UART pending flag. More... | |
#define | __HAL_UART_CLEAR_PEFLAG(__HANDLE__) |
Clear the UART PE pending flag. More... | |
#define | __HAL_UART_CLEAR_FEFLAG(__HANDLE__) __HAL_UART_CLEAR_PEFLAG(__HANDLE__) |
Clear the UART FE pending flag. More... | |
#define | __HAL_UART_CLEAR_NEFLAG(__HANDLE__) __HAL_UART_CLEAR_PEFLAG(__HANDLE__) |
Clear the UART NE pending flag. More... | |
#define | __HAL_UART_CLEAR_OREFLAG(__HANDLE__) __HAL_UART_CLEAR_PEFLAG(__HANDLE__) |
Clear the UART ORE pending flag. More... | |
#define | __HAL_UART_CLEAR_IDLEFLAG(__HANDLE__) __HAL_UART_CLEAR_PEFLAG(__HANDLE__) |
Clear the UART IDLE pending flag. More... | |
#define | UART_IT_MASK 0x0000FFFFU |
Enable the specified UART interrupt. More... | |
#define | __HAL_UART_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
#define | __HAL_UART_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
Disable the specified UART interrupt. More... | |
#define | __HAL_UART_GET_IT_SOURCE(__HANDLE__, __IT__) |
Checks whether the specified UART interrupt has occurred or not. More... | |
#define | __HAL_UART_HWCONTROL_CTS_ENABLE(__HANDLE__) |
Enable CTS flow control This macro allows to enable CTS hardware flow control for a given UART instance, without need to call HAL_UART_Init() function. As involving direct access to UART registers, usage of this macro should be fully endorsed by user. More... | |
#define | __HAL_UART_HWCONTROL_CTS_DISABLE(__HANDLE__) |
Disable CTS flow control This macro allows to disable CTS hardware flow control for a given UART instance, without need to call HAL_UART_Init() function. As involving direct access to UART registers, usage of this macro should be fully endorsed by user. More... | |
#define | __HAL_UART_HWCONTROL_RTS_ENABLE(__HANDLE__) |
Enable RTS flow control This macro allows to enable RTS hardware flow control for a given UART instance, without need to call HAL_UART_Init() function. As involving direct access to UART registers, usage of this macro should be fully endorsed by user. More... | |
#define | __HAL_UART_HWCONTROL_RTS_DISABLE(__HANDLE__) |
Disable RTS flow control This macro allows to disable RTS hardware flow control for a given UART instance, without need to call HAL_UART_Init() function. As involving direct access to UART registers, usage of this macro should be fully endorsed by user. More... | |
#define | __HAL_UART_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT) |
macros to enables the UART's one bit sample method More... | |
#define | __HAL_UART_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT)) |
macros to disables the UART's one bit sample method More... | |
#define | __HAL_UART_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE) |
Enable UART. More... | |
#define | __HAL_UART_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE) |
Disable UART. More... | |
#define __HAL_UART_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
Reset UART handle gstate & RxState.
<strong>HANDLE</strong> | specifies the UART Handle. This parameter can be UARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
None |
#define __HAL_UART_FLUSH_DRREGISTER | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->DR) |
Flushes the UART DR register.
<strong>HANDLE</strong> | specifies the UART Handle. |
#define __HAL_UART_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
Checks whether the specified UART flag is set or not.
<strong>HANDLE</strong> | specifies the UART Handle. This parameter can be UARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FLAG (TRUE or FALSE). |
#define __HAL_UART_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | ((__HANDLE__)->Instance->SR = ~(__FLAG__)) |
Clears the specified UART pending flag.
<strong>HANDLE</strong> | specifies the UART Handle. This parameter can be UARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
<strong>FLAG</strong> | specifies the flag to check. This parameter can be any combination of the following values:
|
None |
#define __HAL_UART_CLEAR_PEFLAG | ( | __HANDLE__ | ) |
Clear the UART PE pending flag.
<strong>HANDLE</strong> | specifies the UART Handle. This parameter can be UARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
None |
#define __HAL_UART_CLEAR_FEFLAG | ( | __HANDLE__ | ) | __HAL_UART_CLEAR_PEFLAG(__HANDLE__) |
Clear the UART FE pending flag.
<strong>HANDLE</strong> | specifies the UART Handle. This parameter can be UARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
None |
#define __HAL_UART_CLEAR_NEFLAG | ( | __HANDLE__ | ) | __HAL_UART_CLEAR_PEFLAG(__HANDLE__) |
Clear the UART NE pending flag.
<strong>HANDLE</strong> | specifies the UART Handle. This parameter can be UARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
None |
#define __HAL_UART_CLEAR_OREFLAG | ( | __HANDLE__ | ) | __HAL_UART_CLEAR_PEFLAG(__HANDLE__) |
Clear the UART ORE pending flag.
<strong>HANDLE</strong> | specifies the UART Handle. This parameter can be UARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
None |
#define __HAL_UART_CLEAR_IDLEFLAG | ( | __HANDLE__ | ) | __HAL_UART_CLEAR_PEFLAG(__HANDLE__) |
Clear the UART IDLE pending flag.
<strong>HANDLE</strong> | specifies the UART Handle. This parameter can be UARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
None |
#define UART_IT_MASK 0x0000FFFFU |
Enable the specified UART interrupt.
<strong>HANDLE</strong> | specifies the UART Handle. This parameter can be UARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
<strong>INTERRUPT</strong> | specifies the UART interrupt source to enable. This parameter can be one of the following values:
|
None |
#define __HAL_UART_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
#define __HAL_UART_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
Disable the specified UART interrupt.
<strong>HANDLE</strong> | specifies the UART Handle. This parameter can be UARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
<strong>INTERRUPT</strong> | specifies the UART interrupt source to disable. This parameter can be one of the following values:
|
None |
#define __HAL_UART_GET_IT_SOURCE | ( | __HANDLE__, | |
__IT__ | |||
) |
Checks whether the specified UART interrupt has occurred or not.
<strong>HANDLE</strong> | specifies the UART Handle. This parameter can be UARTx where x: 1, 2, 3, 4, 5, 6, 7 or 8 to select the USART or UART peripheral. |
<strong>IT</strong> | specifies the UART interrupt source to check. This parameter can be one of the following values:
|
The | new state of IT (TRUE or FALSE). |
#define __HAL_UART_HWCONTROL_CTS_ENABLE | ( | __HANDLE__ | ) |
Enable CTS flow control This macro allows to enable CTS hardware flow control for a given UART instance, without need to call HAL_UART_Init() function. As involving direct access to UART registers, usage of this macro should be fully endorsed by user.
<strong>HANDLE</strong> | specifies the UART Handle. The Handle Instance can be USART1, USART2 or LPUART. |
None |
#define __HAL_UART_HWCONTROL_CTS_DISABLE | ( | __HANDLE__ | ) |
Disable CTS flow control This macro allows to disable CTS hardware flow control for a given UART instance, without need to call HAL_UART_Init() function. As involving direct access to UART registers, usage of this macro should be fully endorsed by user.
<strong>HANDLE</strong> | specifies the UART Handle. The Handle Instance can be USART1, USART2 or LPUART. |
None |
#define __HAL_UART_HWCONTROL_RTS_ENABLE | ( | __HANDLE__ | ) |
Enable RTS flow control This macro allows to enable RTS hardware flow control for a given UART instance, without need to call HAL_UART_Init() function. As involving direct access to UART registers, usage of this macro should be fully endorsed by user.
<strong>HANDLE</strong> | specifies the UART Handle. The Handle Instance can be USART1, USART2 or LPUART. |
None |
#define __HAL_UART_HWCONTROL_RTS_DISABLE | ( | __HANDLE__ | ) |
Disable RTS flow control This macro allows to disable RTS hardware flow control for a given UART instance, without need to call HAL_UART_Init() function. As involving direct access to UART registers, usage of this macro should be fully endorsed by user.
<strong>HANDLE</strong> | specifies the UART Handle. The Handle Instance can be USART1, USART2 or LPUART. |
None |
#define __HAL_UART_ONE_BIT_SAMPLE_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR3|= USART_CR3_ONEBIT) |
macros to enables the UART's one bit sample method
<strong>HANDLE</strong> | specifies the UART Handle. |
None |
#define __HAL_UART_ONE_BIT_SAMPLE_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR3 &= (uint16_t)~((uint16_t)USART_CR3_ONEBIT)) |
macros to disables the UART's one bit sample method
<strong>HANDLE</strong> | specifies the UART Handle. |
None |
#define __HAL_UART_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 |= USART_CR1_UE) |
Enable UART.
<strong>HANDLE</strong> | specifies the UART Handle. |
None |
#define __HAL_UART_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR1 &= ~USART_CR1_UE) |
Disable UART.
<strong>HANDLE</strong> | specifies the UART Handle. |
None |