usbp_iusb_device.h

Go to the documentation of this file.
00001 /* -*- c++ -*- */
00036 #ifndef __USBP_IUSB_DEVICE__
00037 #define __USBP_IUSB_DEVICE__
00038 
00039 #include <string>
00040 #include "usbp_iusb_driver.h"
00041 
00042 using namespace std;
00043 
00060 class iUSB_Device
00061 {
00062 
00063 public:
00064   virtual void setUSB(iUSB_Driver *ud) = 0;
00065   virtual int downloadFirmware(string file, int vid, int pid) = 0;
00066   virtual int LED(int led, bool on_off) = 0;
00067   virtual int i2c_write(byte addr, byte *b, byte len) = 0;
00068   //virtual i2c_read() = 0;
00069   //
00070 
00071   // JTAG Interface, many of the controllers will be able
00072   // to bit bang the JTAG signals to other devices, mainly
00073   // FPGAs.
00074   
00075 };
00076 
00077 
00078 #endif

Generated on Mon Mar 5 20:44:19 2007 for usbp by  doxygen 1.5.1-p1