|
STC15W408AS library 0.12.0
|
Enumerations | |
| enum | uart1_mode2_baudrate_t { baudrate_172800 = 172800U , baudrate_345600 = 345600U } |
| UART1 baud rate enumeration. | |
init | |
UART1 initialization functions | |
| #define | uart1_mode2_init(pins, baudRate) |
| Initializes UART1 in Mode 0. | |
Functions and data structures for UART1 communication in Mode 2.
Mode 2 provides asynchronous communication with fixed baud rate and 9-bit data. 9-N-1.
The baud rate is fixed at 1/32 (or 1/64) the System clock cycle.
| #define uart1_mode2_init | ( | pins, | |
| baudRate | |||
| ) |
Initializes UART1 in Mode 0.
Must be called before any UART communication is initiated.
| pins | uart1_pins_t The desired UART1 pins. |
| baudRate | uart1_mode2_baudrate_t The desired UART1 baud rate. |