![]() |
NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
Stream Link Interface HW driver source file. More...
#include <neorv32.h>
Functions | |
int | neorv32_slink_available (void) |
void | neorv32_slink_setup (uint32_t irq) |
void | neorv32_slink_rx_clear (void) |
void | neorv32_slink_tx_clear (void) |
int | neorv32_slink_get_rx_fifo_depth (void) |
int | neorv32_slink_get_tx_fifo_depth (void) |
uint32_t | neorv32_slink_get (void) |
uint32_t | neorv32_slink_check_last (void) |
void | neorv32_slink_set_dst (uint32_t dst) |
uint32_t | neorv32_slink_get_src (void) |
void | neorv32_slink_put (uint32_t tx_data) |
void | neorv32_slink_put_last (uint32_t tx_data) |
int | neorv32_slink_rx_status (void) |
int | neorv32_slink_tx_status (void) |
Stream Link Interface HW driver source file.
int neorv32_slink_available | ( | void | ) |
Check if stream link interface was synthesized.
|
inline |
Check if last RX word has "end-of-stream" delimiter.
|
inline |
Read data from RX link (non-blocking)
int neorv32_slink_get_rx_fifo_depth | ( | void | ) |
Get FIFO depth of RX link.
|
inline |
Get RX link routing source
int neorv32_slink_get_tx_fifo_depth | ( | void | ) |
Get FIFO depth of TX link.
|
inline |
Write data to TX link (non-blocking)
[in] | tx_data | Data to send to link. |
|
inline |
Write data to TX link (non-blocking) and set "last" (end-of-stream) delimiter.
[in] | tx_data | Data to send to link. |
void neorv32_slink_rx_clear | ( | void | ) |
Clear RX FIFO.
int neorv32_slink_rx_status | ( | void | ) |
Get RX link FIFO status.
|
inline |
Set TX link routing destination
[in] | dst | Routing destination ID (4-bit, LSB-aligned). |
void neorv32_slink_setup | ( | uint32_t | irq | ) |
Reset, enable and configure SLINK.
[in] | irq | Interrupt conditions (NEORV32_SLINK_CTRL_enum). |
void neorv32_slink_tx_clear | ( | void | ) |
Clear TX FIFO.
int neorv32_slink_tx_status | ( | void | ) |
Get TX link FIFO status.