Class for the.
More...
#include <Axis_FIFO.h>
AXIS_FIFO::AXIS_FIFO |
( |
int |
base_address, |
|
|
int |
size_in_k, |
|
|
int |
depth |
|
) |
| |
|
inline |
class constructor
- Parameters
-
base_adress | address of the spi core (from Vivado), e.g. 0x44C00000 |
size_in_k | size of the required adress space in k (from Vivado) |
depth | size of the FIFO in samples (from Vivado) |
int AXIS_FIFO::get_fifo_occupancy |
( |
| ) |
|
|
inline |
reads the number of available samples
- Returns
- fifo occupancy
bool AXIS_FIFO::is_empty |
( |
| ) |
|
|
inline |
checks if FIFO is empty
- Returns
- true: FIFO empty, false: FIFO not empty
bool AXIS_FIFO::is_full |
( |
| ) |
|
|
inline |
checks if FIFO is full
- Returns
- true: FIFO full, false: FIFO not full
int AXIS_FIFO::read_block_data |
( |
int |
data[], |
|
|
int |
size |
|
) |
| |
|
inline |
reads a block of data (32 bit/word) out of the FIFO
- Parameters
-
data[] | array, that will contain the data |
size | size of the block to be read (=size of data[]) |
- Returns
- error code: 0: no error, -1: FIFO does not contain "size" samples
int AXIS_FIFO::read_single_data |
( |
int & |
data | ) |
|
|
inline |
reads one data (1 sample, 32 bit) out of the FIFO
- Parameters
-
data | one data sample from the FIFO |
- Returns
- error code: 0: no error, -1: FIFO is empty
The documentation for this class was generated from the following file: