20.10.2013 - Modified PIObject - virtual debugName() for macro piCoutObj, improved timer measurements and timers on Windows
This commit is contained in:
6
piusb.h
6
piusb.h
@@ -95,6 +95,8 @@ public:
|
||||
ushort vendorID() const {return vid_;}
|
||||
ushort productID() const {return pid_;}
|
||||
|
||||
int deviceNumber() const {return dev_num;}
|
||||
|
||||
const PIVector<Endpoint> & endpoints() const {return eps;}
|
||||
PIVector<Endpoint> endpointsRead();
|
||||
PIVector<Endpoint> endpointsWrite();
|
||||
@@ -103,6 +105,9 @@ public:
|
||||
const Endpoint & endpointRead() {return ep_read;}
|
||||
const Endpoint & endpointWrite() {return ep_write;}
|
||||
|
||||
void setVendorID(ushort vid) {vid_ = vid; path_ = PIString::fromNumber(vid_, 16).expandLeftTo(4, "0") + ":" + PIString::fromNumber(pid_, 16).expandLeftTo(4, "0");}
|
||||
void setProductID(ushort pid) {pid_ = pid; path_ = PIString::fromNumber(vid_, 16).expandLeftTo(4, "0") + ":" + PIString::fromNumber(pid_, 16).expandLeftTo(4, "0");}
|
||||
|
||||
bool setConfiguration(uchar value);
|
||||
bool setInterface(uchar value);
|
||||
|
||||
@@ -119,6 +124,7 @@ public:
|
||||
void flush();
|
||||
|
||||
protected:
|
||||
bool configureDevice(const void * e_main, const void * e_parent = 0);
|
||||
//bool init();
|
||||
bool openDevice();
|
||||
bool closeDevice();
|
||||
|
||||
Reference in New Issue
Block a user