USBP Class Reference

base class to the USB prototype board. More...

#include <usbp.h>

Inheritance diagram for USBP:

USBP_PBRD_BLANK USBP_PBRD_V01 USBP_XEM3001 USBP_XS3SK

Public Member Functions

 USBP ()
 Constructor.
virtual ~USBP ()
 Destructor.
int init (int vid, int pid)
 Init USBP.

Data Fields

iUSB_DriverUsbD
 USB Drive Interface (LIBUSB or CyUSB).
iUSB_FPGAUsbFpga
 FPGA Interface.
iUSB_DeviceUsbDevice
 USB Device interface.
int iVid
int iPid
 The initial USB VID and PID.
int rVid
int rPid
 After enumeration VID and PID.

Detailed Description

base class to the USB prototype board.

Definition at line 45 of file usbp.h.


Constructor & Destructor Documentation

USBP::USBP (  )  [inline]

Constructor.

Definition at line 61 of file usbp.h.

References UsbD, UsbDevice, and UsbFpga.

virtual USBP::~USBP (  )  [inline, virtual]

Destructor.

Definition at line 68 of file usbp.h.


Member Function Documentation

int USBP::init ( int  vid,
int  pid 
)

Init USBP.

??? Should this be in the Constructor???

Definition at line 43 of file usbp.cpp.

References iUSB_Driver::deviceOpen(), UPL_ERR, UsbD, UsbDevice, and UsbFpga.

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


Field Documentation

iUSB_Driver* USBP::UsbD

USB Drive Interface (LIBUSB or CyUSB).

Definition at line 53 of file usbp.h.

Referenced by USBP_XS3SK::deviceInfo(), USBP_PBRD_V01::deviceInfo(), USBP_PBRD_BLANK::deviceInfo(), init(), USBP_PBRD_V01::PyReadData(), USBP_PBRD_V01::PyWriteData(), USBP_PBRD_V01::testFPGAXfer(), USBP_PBRD_V01::testFPGAXferSpeed(), USBP_PBRD_V01::testXferLoopback(), USBP(), USBP_PBRD_BLANK::USBP_PBRD_BLANK(), USBP_PBRD_V01::USBP_PBRD_V01(), USBP_XS3SK::USBP_XS3SK(), USBP_PBRD_BLANK::~USBP_PBRD_BLANK(), USBP_PBRD_V01::~USBP_PBRD_V01(), and USBP_XS3SK::~USBP_XS3SK().

iUSB_FPGA* USBP::UsbFpga

FPGA Interface.

Definition at line 54 of file usbp.h.

Referenced by USBP_XS3SK::configFPGA(), USBP_PBRD_V01::configFPGA(), init(), USBP_PBRD_V01::PyReadData(), USBP_PBRD_V01::PyWriteData(), USBP_XS3SK::sendData(), USBP_PBRD_V01::testFPGAXfer(), USBP_PBRD_V01::testFPGAXferSpeed(), USBP_PBRD_V01::testXferLoopback(), USBP(), USBP_PBRD_BLANK::USBP_PBRD_BLANK(), USBP_PBRD_V01::USBP_PBRD_V01(), USBP_XS3SK::USBP_XS3SK(), USBP_PBRD_BLANK::~USBP_PBRD_BLANK(), USBP_PBRD_V01::~USBP_PBRD_V01(), and USBP_XS3SK::~USBP_XS3SK().

iUSB_Device* USBP::UsbDevice

USB Device interface.

Definition at line 55 of file usbp.h.

Referenced by init(), USBP_XS3SK::loadFxFirmware(), USBP_PBRD_V01::loadFxFirmware(), USBP_PBRD_BLANK::loadFxFirmware(), USBP(), USBP_PBRD_BLANK::USBP_PBRD_BLANK(), USBP_PBRD_V01::USBP_PBRD_V01(), USBP_XS3SK::USBP_XS3SK(), USBP_PBRD_BLANK::writeVID_PID(), USBP_PBRD_BLANK::~USBP_PBRD_BLANK(), USBP_PBRD_V01::~USBP_PBRD_V01(), and USBP_XS3SK::~USBP_XS3SK().

int USBP::iVid

Definition at line 57 of file usbp.h.

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

int USBP::iPid

The initial USB VID and PID.

Definition at line 57 of file usbp.h.

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

int USBP::rVid

Definition at line 58 of file usbp.h.

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

int USBP::rPid

After enumeration VID and PID.

Definition at line 58 of file usbp.h.

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


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