CuVoodoo STM32F1 firmware template
|
library to control up to 4 independent receive and transmit software UART ports (API) More...
Go to the source code of this file.
Functions | |
bool | uart_soft_setup (uint32_t *rx_baudrates, uint32_t *tx_baudrates) |
setup software UART ports More... | |
uint8_t | uart_soft_getbyte (uint8_t uart) |
get received byte from UART port More... | |
void | uart_soft_flush (uint8_t uart) |
ensure all bytes are transmitted for the UART More... | |
void | uart_soft_putbyte_nonblocking (uint8_t uart, uint8_t byte) |
put byte in buffer to be transmitted on UART port More... | |
void | uart_soft_putbyte_blocking (uint8_t uart, uint8_t byte) |
transmit byte on UART port More... | |
Variables | |
volatile bool | uart_soft_received [4] |
if data has been received from UART port and is available to be read | |
library to control up to 4 independent receive and transmit software UART ports (API)
Definition in file uart_soft.h.
void uart_soft_flush | ( | uint8_t | uart | ) |
ensure all bytes are transmitted for the UART
[in] | uart | UART port to flush |
Definition at line 253 of file uart_soft.c.
uint8_t uart_soft_getbyte | ( | uint8_t | uart | ) |
get received byte from UART port
[in] | uart | UART receive port to read byte from |
Definition at line 195 of file uart_soft.c.
void uart_soft_putbyte_blocking | ( | uint8_t | uart, |
uint8_t | byte | ||
) |
transmit byte on UART port
[in] | uart | UART port to transmit the byte from |
[in] | byte | byte to transmit |
Definition at line 303 of file uart_soft.c.
void uart_soft_putbyte_nonblocking | ( | uint8_t | uart, |
uint8_t | byte | ||
) |
put byte in buffer to be transmitted on UART port
[in] | uart | UART port to transmit the byte from |
[in] | byte | byte to put in transmit buffer |
Definition at line 290 of file uart_soft.c.
bool uart_soft_setup | ( | uint32_t * | rx_baudrates, |
uint32_t * | tx_baudrates | ||
) |
setup software UART ports
[in] | rx_baudrates | baud rates of the 4 UART RX ports (0 if unused) |
[in] | tx_baudrates | baud rates of the 4 UART TX ports (0 if unused) |
Definition at line 115 of file uart_soft.c.