Herzog Library 00.00.01
rel_libdev.herzog.00.00.01.10606
|
Functions | |
void | uart_reset_tx (UART_Device_t *dev) |
void | uart_reset_rx (UART_Device_t *dev) |
UART_Device_t * | UART_devRequest (const char *name) |
Request an UART device. More... | |
int32_t | UART_devInit (UART_Device_t *dev, UART_devBaudRate_t rate, UART_Dev_LineInitData_t *init) |
Initialize UART device. More... | |
uint32_t | uart_read (UART_Device_t *dev, uint8_t *data) |
void | uart_write (UART_Device_t *dev, uint8_t data) |
int32_t | UART_devDataReceived (UART_Device_t *dev) |
Get the number of bytes received. More... | |
int32_t | UART_devDataPendingTX (UART_Device_t *dev) |
Check the number of bytes pending on TX. More... | |
int32_t | UART_devSendByte (UART_Device_t *dev, uint8_t *data, uint32_t len) |
Send data to UART device. More... | |
int32_t | UART_devReceiveByte (UART_Device_t *dev, uint8_t *data, uint32_t len) |
Receive data to UART device. More... | |
int32_t | UART_devClearBuffer (UART_Device_t *dev) |
Clear data buffer in UART device driver. More... | |
int32_t | UART_devRegisterCallback (UART_Device_t *dev, uint32_t size, void *cb) |
Register a call back function to UART device driver. More... | |
void | uart_tx_isr_handler (UART_Device_t *dev) |
void | uart_rx_isr_handler (UART_Device_t *dev) |
int32_t | UART_devCheckError (UART_Device_t *dev) |
Check UART device for error. More... | |
int32_t | UART_devResetDevice (UART_Device_t *dev) |
Reset UART device. More... | |
void | UART_Handler (void) |
Variables | |
static const UART_Device_t * | UART_DeviceTable [] |
The instances of UART device. More... | |
static const uint16_t | board_rate_map [UART_DEV_BAUDRATE_MAX+1] |
UART_Dev_State_t | UART_State |
This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.
int32_t UART_devCheckError | ( | UART_Device_t * | dev | ) |
Check UART device for error.
dev | Pointer to UART Device structure |
int32_t UART_devClearBuffer | ( | UART_Device_t * | dev | ) |
Clear data buffer in UART device driver.
dev | Pointer to UART Device structure |
int32_t UART_devDataPendingTX | ( | UART_Device_t * | dev | ) |
Check the number of bytes pending on TX.
dev | Pointer to UART Device structure. |
int32_t UART_devDataReceived | ( | UART_Device_t * | dev | ) |
Get the number of bytes received.
dev | Pointer to UART Device structure. |
int32_t UART_devInit | ( | UART_Device_t * | dev, |
UART_devBaudRate_t | rate, | ||
UART_Dev_LineInitData_t * | init | ||
) |
Initialize UART device.
dev | Pointer to UART Device structure |
rate | Baud Rate |
init | Pointer to initial data structure |
int32_t UART_devReceiveByte | ( | UART_Device_t * | dev, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
Receive data to UART device.
dev | Pointer to UART Device structure. |
data | Pointer to the data memory to store the received data. |
len | The size of the data memory. |
int32_t UART_devRegisterCallback | ( | UART_Device_t * | dev, |
uint32_t | size, | ||
void * | cb | ||
) |
Register a call back function to UART device driver.
dev | Pointer to UART Device structure |
size | The size of the data block received to trigger the callback. |
cb | The pointer to the call back function. |
UART_Device_t* UART_devRequest | ( | const char * | name | ) |
Request an UART device.
name | Name string of the UART device. |
int32_t UART_devResetDevice | ( | UART_Device_t * | dev | ) |
Reset UART device.
dev | Pointer to UART Device structure |
int32_t UART_devSendByte | ( | UART_Device_t * | dev, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
Send data to UART device.
dev | Pointer to UART Device structure. |
data | Pointer to the data memory to be sent. |
len | The size of the data memory. |
void UART_Handler | ( | void | ) |
uint32_t uart_read | ( | UART_Device_t * | dev, |
uint8_t * | data | ||
) |
void uart_reset_rx | ( | UART_Device_t * | dev | ) |
void uart_reset_tx | ( | UART_Device_t * | dev | ) |
void uart_rx_isr_handler | ( | UART_Device_t * | dev | ) |
void uart_tx_isr_handler | ( | UART_Device_t * | dev | ) |
void uart_write | ( | UART_Device_t * | dev, |
uint8_t | data | ||
) |
|
static |
The clock divider settings for each UART baud rate at 12M system clock.
|
static |
The instances of UART device.
The table of UART device instances supported by the platform.
UART_Dev_State_t UART_State |
The The UART device state