![]() |
NEORV32 API Reference
The NEORV32 RISC-V Processor
|
Serial data interface controller (SDI) HW driver source file. More...
#include <neorv32.h>Functions | |
| int | neorv32_sdi_available (void) |
| void | neorv32_sdi_setup (uint32_t irq_mask) |
| void | neorv32_sdi_disable (void) |
| void | neorv32_sdi_enable (void) |
| int | neorv32_sdi_get_fifo_depth (void) |
| void | neorv32_sdi_put (uint8_t data) |
| uint8_t | neorv32_sdi_get (void) |
| void | neorv32_sdi_put_nonblocking (uint8_t data) |
| uint8_t | neorv32_sdi_get_nonblocking (void) |
| void | neorv32_sdi_rx_clear (void) |
| void | neorv32_sdi_tx_clear (void) |
| int | neorv32_sdi_check_cs (void) |
Prototypes | |
| int | neorv32_sdi_rx_empty (void) |
| int | neorv32_sdi_rx_full (void) |
| int | neorv32_sdi_tx_empty (void) |
| int | neorv32_sdi_tx_full (void) |
Serial data interface controller (SDI) HW driver source file.
| int neorv32_sdi_available | ( | void | ) |
Check if SDI unit was synthesized.
| int neorv32_sdi_check_cs | ( | void | ) |
Get status of chip-select line.
| void neorv32_sdi_disable | ( | void | ) |
Disable SDI controller.
| void neorv32_sdi_enable | ( | void | ) |
Enable SDI controller.
| uint8_t neorv32_sdi_get | ( | void | ) |
Get data from SDI input FIFO (blocking).
| int neorv32_sdi_get_fifo_depth | ( | void | ) |
Get SDI FIFO depth.
| uint8_t neorv32_sdi_get_nonblocking | ( | void | ) |
Get data from SDI input FIFO (non-blocking).
| void neorv32_sdi_put | ( | uint8_t | data | ) |
Push data to SDI output FIFO (blocking).
| [in] | data | Byte to push into TX FIFO. |
| void neorv32_sdi_put_nonblocking | ( | uint8_t | data | ) |
Push data to SDI output FIFO (non-blocking).
| [in] | data | Byte to push into TX FIFO. |
| void neorv32_sdi_rx_clear | ( | void | ) |
Clear RX FIFO.
| int neorv32_sdi_rx_empty | ( | void | ) |
Check if RX FIFO is empty.
| int neorv32_sdi_rx_full | ( | void | ) |
Check if RX FIFO is full.
| void neorv32_sdi_setup | ( | uint32_t | irq_mask | ) |
Reset, enable and configure SDI controller. The SDI control register bits are listed in NEORV32_SDI_CTRL_enum.
| [in] | irq_mask | Interrupt configuration bit mask (CTRL's irq_* bits). |
| void neorv32_sdi_tx_clear | ( | void | ) |
Clear TX FIFO.
| int neorv32_sdi_tx_empty | ( | void | ) |
Check if TX FIFO is empty.
| int neorv32_sdi_tx_full | ( | void | ) |
Check if TX FIFO is full.