DuneNvme  1.0.0
This is a simple NVMe test environment that allows experimentation with the low level PCIe NVMe interfaces as available on a Xilinx FPGA environment.
Public Member Functions | Protected Attributes | List of all members
BFifoBytes Class Reference

Public Member Functions

 BFifoBytes (BUInt size)
 
void clear ()
 
BUInt size ()
 Returns fifo size.
 
int resize (BUInt size)
 Resize FIFO, clears it as well.
 
BUInt writeAvailable ()
 How many items that can be written.
 
int write (const void *data, BUInt num)
 Write a set of items. Can only write a maximum of writeAvailableChunk() to save going beyond end of FIFO buffer.
 
BUInt readAvailable ()
 How many items are available to read.
 
int read (void *data, BUInt num)
 Read a set of items.
 

Protected Attributes

BUInt osize
 The size of the FIFO.
 
char * odata
 FIFO memory buffer.
 
volatile BUInt owritePos
 The write pointer.
 
volatile BUInt oreadPos
 The read pointer.
 

The documentation for this class was generated from the following files: