iUSB_FPGA Class Reference

This is an abstract class that defines the interface to the USB enabled FPGAs. More...

#include <usbp_iusb_fpga.h>

Inheritance diagram for iUSB_FPGA:

USB_FPGA XILINX_XS3

Public Member Functions

virtual void setUSB (iUSB_Driver *ud)=0
virtual int downloadConfigFile (string file)=0
 Configure the FPGA.
virtual int setupShadowReg (int ep, eXferType type=BULK, int num_reg=32)=0
 FPGA generic register interface.
virtual int writeShadowReg (byte *b, int start_addr, int len)=0
virtual int readShadowReg (byte *b, int start_addr, int len)=0
virtual int setupDataXfer (int ep, eXferType type=BULK)=0
 FPGA Data Xfer interface (should be a stream??).
virtual int writeData (byte *b, int len)=0
virtual int readData (byte *b, int len)=0

Detailed Description

This is an abstract class that defines the interface to the USB enabled FPGAs.

A basic set of interfaces is defined.

Definition at line 41 of file usbp_iusb_fpga.h.


Member Function Documentation

virtual void iUSB_FPGA::setUSB ( iUSB_Driver ud  )  [pure virtual]

Implemented in USB_FPGA.

Referenced by USBP_PBRD_BLANK::USBP_PBRD_BLANK(), USBP_PBRD_V01::USBP_PBRD_V01(), and USBP_XS3SK::USBP_XS3SK().

virtual int iUSB_FPGA::downloadConfigFile ( string  file  )  [pure virtual]

Configure the FPGA.

Implemented in USB_FPGA, and XILINX_XS3.

Referenced by USBP_XS3SK::configFPGA(), and USBP_PBRD_V01::configFPGA().

virtual int iUSB_FPGA::setupShadowReg ( int  ep,
eXferType  type = BULK,
int  num_reg = 32 
) [pure virtual]

FPGA generic register interface.

Implemented in USB_FPGA.

virtual int iUSB_FPGA::writeShadowReg ( byte b,
int  start_addr,
int  len 
) [pure virtual]

Implemented in USB_FPGA.

virtual int iUSB_FPGA::readShadowReg ( byte b,
int  start_addr,
int  len 
) [pure virtual]

Implemented in USB_FPGA.

virtual int iUSB_FPGA::setupDataXfer ( int  ep,
eXferType  type = BULK 
) [pure virtual]

FPGA Data Xfer interface (should be a stream??).

Implemented in USB_FPGA.

virtual int iUSB_FPGA::writeData ( byte b,
int  len 
) [pure virtual]

Implemented in USB_FPGA.

Referenced by USBP_PBRD_V01::PyWriteData(), USBP_XS3SK::sendData(), USBP_PBRD_V01::testFPGAXfer(), USBP_PBRD_V01::testFPGAXferSpeed(), and USBP_PBRD_V01::testXferLoopback().

virtual int iUSB_FPGA::readData ( byte b,
int  len 
) [pure virtual]

Implemented in USB_FPGA.

Referenced by USBP_PBRD_V01::PyReadData(), and USBP_PBRD_V01::testXferLoopback().


The documentation for this class was generated from the following file:
Generated on Mon Mar 5 20:44:21 2007 for usbp by  doxygen 1.5.1-p1