libpynq (release 5EWC0-2023 version 0.2.0 of 2023-08-28 20:33)
Loading...
Searching...
No Matches
uart.c
Go to the documentation of this file.
1#include <uart.h>
2void uart_init(const int uart){};
3void uart_destroy(const int uart){};
4void uart_send(const int uart, const uint8_t data){};
5uint8_t uart_recv(const int uart){};
6bool uart_has_data(const int uart){};
7bool uart_has_space(const int uart){};
8void uart_reset_fifos(const int uart){};
void uart_destroy(const int uart)
Close the shared memory handle for the specified UART index.
Definition uart.c:3
void uart_reset_fifos(const int uart)
This function resets both the transmit and receive FIFOs of the UART specified by the uart parameter....
Definition uart.c:8
bool uart_has_data(const int uart)
Check if the receive FIFO for the specified UART index has data available.
Definition uart.c:6
bool uart_has_space(const int uart)
Check if the transmit FIFO for the specified UART index has space available.
Definition uart.c:7
uint8_t uart_recv(const int uart)
Receive a byte of data from the specified UART index by waiting for the receive FIFO to have data and...
Definition uart.c:5
void uart_send(const int uart, const uint8_t data)
Send a byte of data on the specified UART index by waiting for the transmit FIFO to have space and th...
Definition uart.c:4
void uart_init(const int uart)
Initialize the UART specified by the index with a shared memory handle and a buffer size of 4096 byte...
Definition uart.c:2