iUSB_Device Class Reference

This class is the interface to the USB enabled microcontroller. More...

#include <usbp_iusb_device.h>

Inheritance diagram for iUSB_Device:

FX2LP_8051

Public Member Functions

virtual void setUSB (iUSB_Driver *ud)=0
virtual int downloadFirmware (string file, int vid, int pid)=0
virtual int LED (int led, bool on_off)=0
virtual int i2c_write (byte addr, byte *b, byte len)=0

Detailed Description

This class is the interface to the USB enabled microcontroller.

Each USB controller type will need the pointer to the current USBDevice (current driver).

Every implementation will need a pointer to the current USB interface that will be passed through the constructor Example: private: USBP_USB *Usbd; ///< Pointer to the USB interface public: fx2lp8051(USBDevice *ud){ Usbd = ud; }

Definition at line 60 of file usbp_iusb_device.h.


Member Function Documentation

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

Implemented in FX2LP_8051.

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

virtual int iUSB_Device::downloadFirmware ( string  file,
int  vid,
int  pid 
) [pure virtual]

Implemented in FX2LP_8051.

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

virtual int iUSB_Device::LED ( int  led,
bool  on_off 
) [pure virtual]

Implemented in FX2LP_8051.

virtual int iUSB_Device::i2c_write ( byte  addr,
byte b,
byte  len 
) [pure virtual]

Implemented in FX2LP_8051.

Referenced by USBP_PBRD_BLANK::writeVID_PID().


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