Expand description
§AMD AXI UART16550 driver
This is a native Rust driver for the AMD AXI UART16550 IP core.
§Features
If asynchronous TX operations are used, the number of wakers which defaults to 1 waker can also be configured. The tx_async module provides more details on the meaning of this number.
1-wakerwhich is also adefaultfeature2-wakers4-wakers8-wakers16-wakers32-wakers
Re-exports§
Modules§
- registers
- Raw register module
- rx
- Receiver (RX) support module
- tx
- Transmitter (TX) support module
- tx_
async - Asynchronous TX support.
Structs§
- AxiUart16550
- AXI UART16550 peripheral driver.
- Clock
Config - Clock configuration structure.
- Divisor
Zero Error - Divisor is zero error.
- Uart
Config - UART configuration structure.
Enums§
- Clock
Config Error - If this error occurs, the calculated baudrate divisor is too large, either because the used clock is too large, or the baudrate is too slow for the used clock frequency.
- Parity
- Parity configuration.
Constants§
- DEFAULT_
RX_ TRIGGER_ LEVEL - Default RX FIFO trigger level.
- FIFO_
DEPTH - Maximum FIFO depth of the AXI UART16550.
Functions§
- calculate_
error_ rate_ from_ div - Calculate the error rate of the baudrate with the given clock frequency, baudrate and divisor as a floating point value between 0.0 and 1.0.