Function definitions for UART driver.
Functions | |
| u32 | uart_read (uart_instance_t *inst) |
| Read 32-bit UART data. | |
| u32 | uart_status_read (uart_instance_t *inst) |
| Write 32-bit UART data. | |
| u32 | uart_readOccupancy (uart_instance_t *inst) |
| Checks the occupancy of the UART buffer for reading data. | |
| u32 | uart_writeAvailability (uart_instance_t *inst) |
| Checks the availability of the UART buffer for writing data. | |
| void | uart_applyConfig (uart_instance_t *inst) |
| Apply stored UART configuration to hardware. | |
| void | uart_write (uart_instance_t *inst, char data) |
| Writes a single character to the UART data register. | |
| void | uart_writeStr (uart_instance_t *inst, const char *str) |
| Write string to UART. | |
| void | uart_writeHex (uart_instance_t *inst, int value) |
| Write integer as decimal to UART. | |
| void | uart_status_write (uart_instance_t *inst, u32 data) |
| Writes a value to the UART status register. | |
| void | uart_TX_emptyInterruptEna (uart_instance_t *inst, char Ena) |
| Enable or Disable UART TX Empty Interrupt. | |
| void | uart_RX_NotemptyInterruptEna (uart_instance_t *inst, char Ena) |
| Enable or Disable UART RX Not Empty Interrupt. | |
| void uart_applyConfig | ( | uart_instance_t * | inst | ) |
| u32 uart_read | ( | uart_instance_t * | inst | ) |
| u32 uart_readOccupancy | ( | uart_instance_t * | inst | ) |
#include <uart.h>
Checks the occupancy of the UART buffer for reading data.
| inst | Pointer to UART instance. |
| void uart_RX_NotemptyInterruptEna | ( | uart_instance_t * | inst, |
| char | Ena ) |
#include <uart.h>
Enable or Disable UART RX Not Empty Interrupt.
| inst | Pointer to UART instance. |
| Ena | The flag indicating whether to enable (1) or disable (0) the RX not empty interrupt. |
| u32 uart_status_read | ( | uart_instance_t * | inst | ) |
| void uart_status_write | ( | uart_instance_t * | inst, |
| u32 | data ) |
| void uart_TX_emptyInterruptEna | ( | uart_instance_t * | inst, |
| char | Ena ) |
#include <uart.h>
Enable or Disable UART TX Empty Interrupt.
| inst | Pointer to UART instance. |
| Ena | The flag indicating whether to enable (1) or disable (0) the TX empty interrupt. |
| void uart_write | ( | uart_instance_t * | inst, |
| char | data ) |
#include <uart.h>
Writes a single character to the UART data register.
| inst | Pointer to UART instance. |
| data | The character data to be written. |
| u32 uart_writeAvailability | ( | uart_instance_t * | inst | ) |
#include <uart.h>
Checks the availability of the UART buffer for writing data.
| inst | Pointer to UART instance. |
| void uart_writeHex | ( | uart_instance_t * | inst, |
| int | value ) |
#include <uart.h>
Write integer as decimal to UART.
| inst | Pointer to UART instance. |
| value | Integer value to be written in hexadecimal format. |
| void uart_writeStr | ( | uart_instance_t * | inst, |
| const char * | str ) |