libpynq  (release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
uart.c
Go to the documentation of this file.
1 #include <uart.h>
2 void uart_init(const int uart){};
3 void uart_destroy(const int uart){};
4 void uart_send(const int uart, const uint8_t data){};
5 uint8_t uart_recv(const int uart){};
6 bool uart_has_data(const int uart){};
7 bool uart_has_space(const int uart){};
8 void uart_reset_fifos(const int uart){};
uart_recv
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
uart_init
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
uart_has_space
bool uart_has_space(const int uart)
Check if the transmit FIFO for the specified UART index has space available.
Definition: uart.c:7
uart.h
uart_reset_fifos
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
uart_destroy
void uart_destroy(const int uart)
Close the shared memory handle for the specified UART index.
Definition: uart.c:3
uart_send
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
uart_has_data
bool uart_has_data(const int uart)
Check if the receive FIFO for the specified UART index has data available.
Definition: uart.c:6