#include <phidget.h>
Public Types | |
enum | SensingMode { SensingMode::EVENT =0, SensingMode::POLLING =1 } |
Public Member Functions | |
auto | close (int serial_number) -> int |
auto | getDeviceLabel () -> std::string |
auto | getDeviceName () -> std::string |
auto | getDeviceSerialNumber () -> int |
auto | getDeviceType () -> std::string |
auto | getDeviceVersion () -> int |
auto | getLibraryVersion () -> std::string |
auto | open (int serial_number) -> int |
virtual auto | update () -> void |
auto | waitForAttachment (int timeout) -> int |
~Phidget () | |
Static Public Member Functions | |
static auto | getErrorDescription (int errorCode) -> std::string |
Protected Member Functions | |
virtual auto | attachHandler () -> int |
virtual auto | detachHandler () -> int |
Phidget (CPhidgetHandle *handle, SensingMode mode) | |
Protected Attributes | |
int | _last_error |
CPhidgetHandle * | _phiHandle |
SensingMode | _sensMode |
int | _serialNumber |
|
strong |
Phidget::~Phidget | ( | ) |
Definition at line 28 of file phidget.cpp.
|
protected |
Definition at line 23 of file phidget.cpp.
|
protectedvirtual |
Reimplemented in PhidgetIKROS, and PhidgetIK.
Definition at line 104 of file phidget.cpp.
auto Phidget::close | ( | int | serial_number | ) | -> int |
Definition at line 39 of file phidget.cpp.
|
protectedvirtual |
Reimplemented in PhidgetIKROS, and PhidgetIK.
Definition at line 110 of file phidget.cpp.
auto Phidget::getDeviceLabel | ( | ) | -> std::string |
Definition at line 65 of file phidget.cpp.
auto Phidget::getDeviceName | ( | ) | -> std::string |
Definition at line 57 of file phidget.cpp.
auto Phidget::getDeviceSerialNumber | ( | ) | -> int |
Definition at line 81 of file phidget.cpp.
auto Phidget::getDeviceType | ( | ) | -> std::string |
Definition at line 49 of file phidget.cpp.
auto Phidget::getDeviceVersion | ( | ) | -> int |
Definition at line 89 of file phidget.cpp.
|
static |
Definition at line 96 of file phidget.cpp.
auto Phidget::getLibraryVersion | ( | ) | -> std::string |
Definition at line 73 of file phidget.cpp.
auto Phidget::open | ( | int | serial_number | ) | -> int |
Definition at line 34 of file phidget.cpp.
|
virtual |
Reimplemented in PhidgetIKROS, and PhidgetIK.
Definition at line 116 of file phidget.cpp.
auto Phidget::waitForAttachment | ( | int | timeout | ) | -> int |
Definition at line 44 of file phidget.cpp.
|
protected |