#include <phidgetik.h>
Public Member Functions | |
auto | getDataRate (int index) -> int |
auto | getDataRateMax (int index) -> int |
auto | getDataRateMin (int index) -> int |
auto | getError () -> int |
auto | getInputCount () -> int |
auto | getInputState (int index) -> int |
auto | getOutputCount () -> int |
auto | getOutputState (int index) -> int |
auto | getRatiometric () -> int |
auto | getSensorChangeTrigger (int index) -> int |
auto | getSensorCount () -> int |
auto | getSensorRawValue (int index) -> int |
auto | getSensorValue (int index) -> int |
auto | init (int serial_number) -> int |
PhidgetIK (SensingMode mode) | |
auto | setDataRate (int index, int datarate) -> int |
auto | setOutputState (int index, int state) -> int |
auto | setRatiometric (int ratiometric) -> int |
auto | setSensorChangeTrigger (int index, int trigger) -> int |
virtual auto | update () -> void |
~PhidgetIK () | |
Public Member Functions inherited from Phidget | |
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 |
auto | waitForAttachment (int timeout) -> int |
~Phidget () | |
Protected Member Functions | |
virtual int | attachHandler () |
virtual int | detachHandler () |
virtual int | inputChangeHandler (int index, int inputState) |
virtual int | outputChangeHandler (int index, int outputState) |
virtual int | sensorChangeHandler (int index, int sensorValue) |
Protected Member Functions inherited from Phidget | |
Phidget (CPhidgetHandle *handle, SensingMode mode) | |
Protected Attributes | |
CPhidgetInterfaceKitHandle | _iKitHandle |
Protected Attributes inherited from Phidget | |
int | _last_error |
CPhidgetHandle * | _phiHandle |
SensingMode | _sensMode |
int | _serialNumber |
Static Private Member Functions | |
static auto | attachDelegate (CPhidgetHandle phid, void *userptr) -> int |
static auto | inputChangeDelegate (CPhidgetInterfaceKitHandle phid, void *userPtr, int index, int inputState) -> int |
static auto | outputChangeDelegate (CPhidgetInterfaceKitHandle phid, void *userPtr, int index, int outputState) -> int |
static auto | sensorChangeDelegate (CPhidgetInterfaceKitHandle phid, void *userPtr, int index, int sensorValue) -> int |
Additional Inherited Members | |
Public Types inherited from Phidget | |
enum | SensingMode { SensingMode::EVENT =0, SensingMode::POLLING =1 } |
Static Public Member Functions inherited from Phidget | |
static auto | getErrorDescription (int errorCode) -> std::string |
Definition at line 23 of file phidgetik.h.
PhidgetIK::PhidgetIK | ( | SensingMode | mode | ) |
Definition at line 20 of file phidgetik.cpp.
PhidgetIK::~PhidgetIK | ( | ) |
Definition at line 40 of file phidgetik.cpp.
|
staticprivate |
Definition at line 247 of file phidgetik.cpp.
|
protectedvirtual |
Reimplemented from Phidget.
Reimplemented in PhidgetIKROS.
Definition at line 187 of file phidgetik.cpp.
|
protectedvirtual |
Reimplemented from Phidget.
Reimplemented in PhidgetIKROS.
Definition at line 221 of file phidgetik.cpp.
auto PhidgetIK::getDataRate | ( | int | index | ) | -> int |
Definition at line 150 of file phidgetik.cpp.
auto PhidgetIK::getDataRateMax | ( | int | index | ) | -> int |
Definition at line 164 of file phidgetik.cpp.
auto PhidgetIK::getDataRateMin | ( | int | index | ) | -> int |
Definition at line 173 of file phidgetik.cpp.
auto PhidgetIK::getError | ( | ) | -> int |
Definition at line 182 of file phidgetik.cpp.
auto PhidgetIK::getInputCount | ( | ) | -> int |
Definition at line 49 of file phidgetik.cpp.
auto PhidgetIK::getInputState | ( | int | index | ) | -> int |
Definition at line 58 of file phidgetik.cpp.
auto PhidgetIK::getOutputCount | ( | ) | -> int |
Definition at line 68 of file phidgetik.cpp.
auto PhidgetIK::getOutputState | ( | int | index | ) | -> int |
Definition at line 77 of file phidgetik.cpp.
auto PhidgetIK::getRatiometric | ( | ) | -> int |
Definition at line 134 of file phidgetik.cpp.
auto PhidgetIK::getSensorChangeTrigger | ( | int | index | ) | -> int |
Definition at line 120 of file phidgetik.cpp.
auto PhidgetIK::getSensorCount | ( | ) | -> int |
Definition at line 93 of file phidgetik.cpp.
auto PhidgetIK::getSensorRawValue | ( | int | index | ) | -> int |
Definition at line 111 of file phidgetik.cpp.
auto PhidgetIK::getSensorValue | ( | int | index | ) | -> int |
Definition at line 102 of file phidgetik.cpp.
auto PhidgetIK::init | ( | int | serial_number | ) | -> int |
Definition at line 44 of file phidgetik.cpp.
|
staticprivate |
Definition at line 252 of file phidgetik.cpp.
|
protectedvirtual |
Reimplemented in PhidgetIKROS.
Definition at line 232 of file phidgetik.cpp.
|
staticprivate |
Definition at line 258 of file phidgetik.cpp.
|
protectedvirtual |
Reimplemented in PhidgetIKROS.
Definition at line 237 of file phidgetik.cpp.
|
staticprivate |
Definition at line 264 of file phidgetik.cpp.
|
protectedvirtual |
Reimplemented in PhidgetIKROS.
Definition at line 242 of file phidgetik.cpp.
auto PhidgetIK::setDataRate | ( | int | index, |
int | datarate | ||
) | -> int |
Definition at line 159 of file phidgetik.cpp.
auto PhidgetIK::setOutputState | ( | int | index, |
int | state | ||
) | -> int |
Definition at line 87 of file phidgetik.cpp.
auto PhidgetIK::setRatiometric | ( | int | ratiometric | ) | -> int |
Definition at line 144 of file phidgetik.cpp.
auto PhidgetIK::setSensorChangeTrigger | ( | int | index, |
int | trigger | ||
) | -> int |
Definition at line 129 of file phidgetik.cpp.
|
virtual |
Reimplemented from Phidget.
Reimplemented in PhidgetIKROS.
Definition at line 270 of file phidgetik.cpp.
|
protected |
Definition at line 60 of file phidgetik.h.