NEORV32 Software Framework Documentation
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) |
int | neorv32_sdi_put (uint8_t data) |
int | neorv32_sdi_get (uint8_t *data) |
int | neorv32_sdi_check_cs (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.
int neorv32_sdi_get | ( | uint8_t * | data | ) |
Get data from SDI input FIFO.
[in,out] | Pointer | fro data byte read from RX FIFO. |
int neorv32_sdi_get_fifo_depth | ( | void | ) |
Get SDI FIFO depth.
int neorv32_sdi_put | ( | uint8_t | data | ) |
Push data to SDI output FIFO.
[in] | data | Byte to push into TX FIFO. |
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). |