usbp_xem3001.h

Go to the documentation of this file.
00001 
00027 #ifndef __USBP_XEM3001_H__
00028 #define __USBP_XEM3001_H__
00029 
00030 using namespace std;
00031 
00035 class USBP_XEM3001 : USBP
00036 {
00037 
00042   USBP_XEM3001{
00043     // if(LIBUSB)
00044     UsbD      = new CUsbpCyUSB();
00045     UsbFpga   = new XS3_XEM(UsbD);
00046     UsbDevice = new FX2LP_8051(UsbD);
00047 
00048     iVid = 0x151F; iPid = 0x0020;
00049     rVid = 0x151F; rPid = 0x0020;
00050   };
00051   
00055   virtual ~USBP(){
00056     if(UsbD)
00057       delete UsbD;
00058     if(UsbFpga)
00059       delete UsbFpga;
00060     if(UsbDevice)
00061       delete UsbDevice;
00062 
00063     UsbD      = NULL;
00064     UsbFpga   = NULL;
00065     UsbDevice = NULL;
00066   };
00067 
00068 };
00069 
00070 #endif

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