17 #ifndef USBINTERFACE_H 18 #define USBINTERFACE_H 1 25 #include <boost/python/list.hpp> 26 #include <boost/python/extract.hpp> 42 typedef unsigned long U32;
43 typedef unsigned short U16;
44 typedef unsigned char U8;
71 virtual void help() {
info(
"UsbFTInterface "+
name()+
". No help.",
"UsbFTInterface::help"); };
93 info(
"Reset of the Usb interface "+
name(),
"UsbFTInterface::reset");
102 info(
"UsbFTInterface "+
name()+
". Nothing to do.",
"UsbFTInterface::update");
120 boost::python::list&);
126 boost::python::list);
void info(std::string mymsg)
StatusCode usbRead(unsigned long int, unsigned long int, std::vector< U32 > &)
void setWordCount(unsigned long wordCount)
StatusCode usbReadU8(unsigned long int, unsigned long int, unsigned char *)
LALUSB_API BOOL _cstmcall USB_GetLatencyTimer(int id, PUCHAR msecs)
unsigned long wordCount()
StatusCode usbWrite(unsigned long int, std::vector< U32 >)
void setTimeOut(int txTimeOut, int rxTimeOut)
StatusCode usbWriteRead(unsigned long int, std::vector< U8 >, std::vector< U8 > &)
void setBuffer(int txBuffer, int rxBuffer)
LALUSB_API BOOL _cstmcall USB_SetLatencyTimer(int id, UCHAR msecs)
void setShowEpromState(bool showEpromState)
StatusCode read(IOdata *)
void setNFrames(long int nFrames)
void setSerialNum(std::string serialNum)
StatusCode usbWriteU32(unsigned long int, unsigned long int, unsigned long *)
void setWrBlockMax(bool wrBlockMax)
void setRdBlockMax(bool rdBlockMax)
StatusCode usbWriteU16(unsigned long int, unsigned long int, unsigned short *)
StatusCode usbWriteU8(unsigned long int, unsigned long int, unsigned char *)
void setFakeErr(unsigned int fakeErr)
void setLatencyTimer(unsigned char latencyTimer)
LALUSB_API BOOL _cstmcall USB_SetTimeouts(int id, int tx_timeout, int rx_timeout)
unsigned char m_latencyTimer
virtual ~UsbFTInterface()
StatusCode write(IOdata *)
void setDeviceDesc(std::string deviceDesc)
void setPrintout(bool printout)
void setWordSize(unsigned long wordSize)
unsigned long m_wordCount
StatusCode usbReadU16(unsigned long int, unsigned long int, unsigned short *)
unsigned char latencyTimer()
StatusCode usbReadU32(unsigned long int, unsigned long int, unsigned long *)
virtual StatusCode init()
LALUSB_API BOOL _cstmcall USB_SetXferSize(int id, unsigned long txsize, unsigned long rxsize)
void setInterrupts(bool interrupts)