24 : _phiHandle(handle), _serialNumber(-1), _last_error(-1), _sensMode(mode)
36 return CPhidget_open(*
_phiHandle, serial_number);
46 return CPhidget_waitForAttachment(*
_phiHandle, timeout);
52 const char * deviceptr = a;
53 CPhidget_getDeviceType(*
_phiHandle, &deviceptr);
54 return std::string(deviceptr);
60 const char * deviceptr = a;
61 CPhidget_getDeviceName(*
_phiHandle, &deviceptr);
62 return std::string(deviceptr);
68 const char * deviceptr = a;
69 CPhidget_getDeviceType(*
_phiHandle, &deviceptr);
70 return std::string(deviceptr);
76 const char * deviceptr = a;
77 CPhidget_getLibraryVersion(&deviceptr);
78 return std::string(deviceptr);
84 CPhidget_getSerialNumber(*
_phiHandle, &sernum);
92 CPhidget_getDeviceVersion(*
_phiHandle, &version);
99 const char * errorPtr = a;
100 CPhidget_getErrorDescription(errorCode, &errorPtr);
101 return std::string(errorPtr);
106 printf(
"attachHandler()");
112 printf(
"detachHandler()");
118 printf(
"Phidget::update()");
auto open(int serial_number) -> int
auto waitForAttachment(int timeout) -> int
virtual auto detachHandler() -> int
auto close(int serial_number) -> int
auto getDeviceType() -> std::string
Phidget(CPhidgetHandle *handle, SensingMode mode)
auto getDeviceName() -> std::string
virtual auto update() -> void
CPhidgetHandle * _phiHandle
auto getLibraryVersion() -> std::string
static auto getErrorDescription(int errorCode) -> std::string
auto getDeviceSerialNumber() -> int
auto getDeviceVersion() -> int
auto getDeviceLabel() -> std::string
virtual auto attachHandler() -> int