Prusa MINI Firmware overview
|
|
#define | IS_UART_WORD_LENGTH(LENGTH) |
|
#define | IS_UART_LIN_WORD_LENGTH(LENGTH) (((LENGTH) == UART_WORDLENGTH_8B)) |
|
#define | IS_UART_STOPBITS(STOPBITS) |
|
#define | IS_UART_PARITY(PARITY) |
|
#define | IS_UART_HARDWARE_FLOW_CONTROL(CONTROL) |
|
#define | IS_UART_MODE(MODE) ((((MODE) & 0x0000FFF3U) == 0x00U) && ((MODE) != 0x00U)) |
|
#define | IS_UART_STATE(STATE) |
|
#define | IS_UART_OVERSAMPLING(SAMPLING) |
|
#define | IS_UART_LIN_OVERSAMPLING(SAMPLING) (((SAMPLING) == UART_OVERSAMPLING_16)) |
|
#define | IS_UART_LIN_BREAK_DETECT_LENGTH(LENGTH) |
|
#define | IS_UART_WAKEUPMETHOD(WAKEUP) |
|
#define | IS_UART_BAUDRATE(BAUDRATE) ((BAUDRATE) < 10500001U) |
|
#define | IS_UART_ADDRESS(ADDRESS) ((ADDRESS) <= 0x0FU) |
|
#define | UART_DIV_SAMPLING16(_PCLK_, _BAUD_) (((_PCLK_)*25U)/(4U*(_BAUD_))) |
|
#define | UART_DIVMANT_SAMPLING16(_PCLK_, _BAUD_) (UART_DIV_SAMPLING16((_PCLK_), (_BAUD_))/100U) |
|
#define | UART_DIVFRAQ_SAMPLING16(_PCLK_, _BAUD_) (((UART_DIV_SAMPLING16((_PCLK_), (_BAUD_)) - (UART_DIVMANT_SAMPLING16((_PCLK_), (_BAUD_)) * 100U)) * 16U + 50U) / 100U) |
|
#define | UART_BRR_SAMPLING16(_PCLK_, _BAUD_) |
|
#define | UART_DIV_SAMPLING8(_PCLK_, _BAUD_) (((_PCLK_)*25U)/(2U*(_BAUD_))) |
|
#define | UART_DIVMANT_SAMPLING8(_PCLK_, _BAUD_) (UART_DIV_SAMPLING8((_PCLK_), (_BAUD_))/100U) |
|
#define | UART_DIVFRAQ_SAMPLING8(_PCLK_, _BAUD_) (((UART_DIV_SAMPLING8((_PCLK_), (_BAUD_)) - (UART_DIVMANT_SAMPLING8((_PCLK_), (_BAUD_)) * 100U)) * 8U + 50U) / 100U) |
|
#define | UART_BRR_SAMPLING8(_PCLK_, _BAUD_) |
|
◆ IS_UART_WORD_LENGTH
#define IS_UART_WORD_LENGTH |
( |
|
LENGTH | ) |
|
◆ IS_UART_LIN_WORD_LENGTH
◆ IS_UART_STOPBITS
#define IS_UART_STOPBITS |
( |
|
STOPBITS | ) |
|
◆ IS_UART_PARITY
#define IS_UART_PARITY |
( |
|
PARITY | ) |
|
◆ IS_UART_HARDWARE_FLOW_CONTROL
#define IS_UART_HARDWARE_FLOW_CONTROL |
( |
|
CONTROL | ) |
|
◆ IS_UART_MODE
#define IS_UART_MODE |
( |
|
MODE | ) |
((((MODE) & 0x0000FFF3U) == 0x00U) && ((MODE) != 0x00U)) |
◆ IS_UART_STATE
#define IS_UART_STATE |
( |
|
STATE | ) |
|
◆ IS_UART_OVERSAMPLING
#define IS_UART_OVERSAMPLING |
( |
|
SAMPLING | ) |
|
◆ IS_UART_LIN_OVERSAMPLING
◆ IS_UART_LIN_BREAK_DETECT_LENGTH
#define IS_UART_LIN_BREAK_DETECT_LENGTH |
( |
|
LENGTH | ) |
|
◆ IS_UART_WAKEUPMETHOD
#define IS_UART_WAKEUPMETHOD |
( |
|
WAKEUP | ) |
|
◆ IS_UART_BAUDRATE
◆ IS_UART_ADDRESS
#define IS_UART_ADDRESS |
( |
|
ADDRESS | ) |
((ADDRESS) <= 0x0FU) |
◆ UART_DIV_SAMPLING16
#define UART_DIV_SAMPLING16 |
( |
|
_PCLK_, |
|
|
|
_BAUD_ |
|
) |
| (((_PCLK_)*25U)/(4U*(_BAUD_))) |
◆ UART_DIVMANT_SAMPLING16
#define UART_DIVMANT_SAMPLING16 |
( |
|
_PCLK_, |
|
|
|
_BAUD_ |
|
) |
| (UART_DIV_SAMPLING16((_PCLK_), (_BAUD_))/100U) |
◆ UART_DIVFRAQ_SAMPLING16
◆ UART_BRR_SAMPLING16
#define UART_BRR_SAMPLING16 |
( |
|
_PCLK_, |
|
|
|
_BAUD_ |
|
) |
| |
◆ UART_DIV_SAMPLING8
#define UART_DIV_SAMPLING8 |
( |
|
_PCLK_, |
|
|
|
_BAUD_ |
|
) |
| (((_PCLK_)*25U)/(2U*(_BAUD_))) |
◆ UART_DIVMANT_SAMPLING8
#define UART_DIVMANT_SAMPLING8 |
( |
|
_PCLK_, |
|
|
|
_BAUD_ |
|
) |
| (UART_DIV_SAMPLING8((_PCLK_), (_BAUD_))/100U) |
◆ UART_DIVFRAQ_SAMPLING8
◆ UART_BRR_SAMPLING8
#define UART_BRR_SAMPLING8 |
( |
|
_PCLK_, |
|
|
|
_BAUD_ |
|
) |
| |
#define UART_OVERSAMPLING_16
Definition: stm32f4xx_hal_uart.h:276
#define UART_DIVFRAQ_SAMPLING8(_PCLK_, _BAUD_)
Definition: stm32f4xx_hal_uart.h:758
#define UART_HWCONTROL_NONE
Definition: stm32f4xx_hal_uart.h:246
#define UART_DIVMANT_SAMPLING16(_PCLK_, _BAUD_)
Definition: stm32f4xx_hal_uart.h:748
#define UART_WORDLENGTH_9B
Definition: stm32f4xx_hal_uart.h:219
#define UART_LINBREAKDETECTLENGTH_10B
Definition: stm32f4xx_hal_uart.h:285
#define UART_HWCONTROL_CTS
Definition: stm32f4xx_hal_uart.h:248
#define UART_STATE_DISABLE
Definition: stm32f4xx_hal_uart.h:267
#define UART_DIVMANT_SAMPLING8(_PCLK_, _BAUD_)
Definition: stm32f4xx_hal_uart.h:757
#define UART_WAKEUPMETHOD_ADDRESSMARK
Definition: stm32f4xx_hal_uart.h:295
#define UART_PARITY_NONE
Definition: stm32f4xx_hal_uart.h:236
#define UART_HWCONTROL_RTS
Definition: stm32f4xx_hal_uart.h:247
#define UART_DIVFRAQ_SAMPLING16(_PCLK_, _BAUD_)
Definition: stm32f4xx_hal_uart.h:749
#define UART_WAKEUPMETHOD_IDLELINE
Definition: stm32f4xx_hal_uart.h:294
#define UART_HWCONTROL_RTS_CTS
Definition: stm32f4xx_hal_uart.h:249
#define UART_PARITY_EVEN
Definition: stm32f4xx_hal_uart.h:237
#define UART_LINBREAKDETECTLENGTH_11B
Definition: stm32f4xx_hal_uart.h:286
#define UART_STOPBITS_1
Definition: stm32f4xx_hal_uart.h:227
#define UART_STOPBITS_2
Definition: stm32f4xx_hal_uart.h:228
#define UART_WORDLENGTH_8B
Definition: stm32f4xx_hal_uart.h:218
#define UART_PARITY_ODD
Definition: stm32f4xx_hal_uart.h:238
#define UART_OVERSAMPLING_8
Definition: stm32f4xx_hal_uart.h:277
#define UART_STATE_ENABLE
Definition: stm32f4xx_hal_uart.h:268