串口初始化结构体句柄,初始化时请定义该句柄,并用其地址来传参。 更多...
#include <STC8x_UART.h>
成员变量 | |
| UARTMode_Type | Mode |
| UART_BRTGen_Type | BRTGen |
| uint8_t | BRTGenClkDiv |
| UART_BRTMode_Type | BRTMode |
| BOOL | BRTDouble |
| uint32_t | BaudRate |
| BOOL | MulitComm |
| BOOL | Relay |
| BOOL | RxEnable |
串口初始化结构体句柄,初始化时请定义该句柄,并用其地址来传参。
The uart initializes the structure handle. When initializing, please define the handle and use its address to pass parameters.
| uint32_t BaudRate |
波特率值。 Baud rate value.
| BOOL BRTDouble |
波特率加倍控制位。 Baud rate double control bit.
| UART_BRTGen_Type BRTGen |
1T指令周期。 Baud rate generator.
| uint8_t BRTGenClkDiv |
1T指令周期。 Baud rate generator clock division.
| UART_BRTMode_Type BRTMode |
波特率发生器时钟模式。 Baud rate generator clock mode.
| UARTMode_Type Mode |
1T指令周期。 Working mode.
| BOOL MulitComm |
多机通信控制位。Multi-machine communication control bit.
| BOOL Relay |
中继广播控制位。 Relay broadcasting control bit.
| BOOL RxEnable |
串口接收控制位。 Serial port receive control bit.