Function definitions for UART driver.
Functions | |
| u32 | uart_read (uart_instance_t *inst) |
| Read 32-bit UART data. | |
| u32 | uart_readStatus (uart_instance_t *inst) |
| Write 32-bit UART data. | |
| u32 | uart_getReadOccupancy (uart_instance_t *inst) |
| Get the occupancy of the UART buffer for reading data. | |
| u32 | uart_getWriteAvailability (uart_instance_t *inst) |
| Get 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_writeStatus (uart_instance_t *inst, u32 data) |
| Writes a value to the UART status register. | |
| void | uart_setTxInterruptEnable (uart_instance_t *inst, char Ena) |
| Enable or Disable UART TX Empty Interrupt. | |
| void | uart_setRxInterruptEnable (uart_instance_t *inst, char Ena) |
| Enable or Disable UART RX Not Empty Interrupt. | |
| void uart_applyConfig | ( | uart_instance_t * | inst | ) |
| u32 uart_getReadOccupancy | ( | uart_instance_t * | inst | ) |
#include <uart.h>
Get the occupancy of the UART buffer for reading data.
| inst | Pointer to UART instance. |
| u32 uart_getWriteAvailability | ( | uart_instance_t * | inst | ) |
#include <uart.h>
Get the availability of the UART buffer for writing data.
| inst | Pointer to UART instance. |
| u32 uart_read | ( | uart_instance_t * | inst | ) |
| u32 uart_readStatus | ( | uart_instance_t * | inst | ) |
| void uart_setRxInterruptEnable | ( | 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. |
| void uart_setTxInterruptEnable | ( | 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. |
| 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_writeStatus | ( | uart_instance_t * | inst, |
| u32 | data ) |
| void uart_writeStr | ( | uart_instance_t * | inst, |
| const char * | str ) |