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