00001 /* -*- c++ -*- */ 00027 #ifndef __USBP_IUSB_FPGA_H__ 00028 #define __USBP_IUSB_FPGA_H__ 00029 00030 #include <string> 00031 #include "usbp_iusb_driver.h" 00032 00033 using namespace std; 00034 00035 00041 class iUSB_FPGA 00042 { 00043 00044 public: 00045 virtual void setUSB(iUSB_Driver *ud) = 0; 00047 virtual int downloadConfigFile(string file) = 0; 00048 00050 virtual int setupShadowReg(int ep, eXferType type = BULK, int num_reg=32) = 0; 00051 virtual int writeShadowReg(byte *b, int start_addr, int len) = 0; 00052 virtual int readShadowReg(byte *b, int start_addr, int len) = 0; 00053 00055 virtual int setupDataXfer(int ep, eXferType type = BULK) = 0; 00056 virtual int writeData(byte *b, int len) = 0; 00057 virtual int readData(byte *b, int len) = 0; 00058 00059 }; 00060 00061 #endif
1.5.1-p1