#include <phidget.h>
|
static int | AttachHandler (CPhidgetHandle handle, void *userptr) |
|
static int | DetachHandler (CPhidgetHandle handle, void *userptr) |
|
static int | ErrorHandler (CPhidgetHandle handle, void *userptr, int ErrorCode, const char *unknown) |
|
Definition at line 40 of file phidget.h.
phidgets::Phidget::Phidget |
( |
| ) |
|
phidgets::Phidget::~Phidget |
( |
| ) |
|
|
virtual |
void phidgets::Phidget::attachHandler |
( |
| ) |
|
|
protectedvirtual |
int phidgets::Phidget::AttachHandler |
( |
CPhidgetHandle |
handle, |
|
|
void * |
userptr |
|
) |
| |
|
staticprivate |
int phidgets::Phidget::close |
( |
| ) |
|
Close the connection to the phidget.
Definition at line 40 of file phidget.cpp.
void phidgets::Phidget::detachHandler |
( |
| ) |
|
|
protectedvirtual |
int phidgets::Phidget::DetachHandler |
( |
CPhidgetHandle |
handle, |
|
|
void * |
userptr |
|
) |
| |
|
staticprivate |
void phidgets::Phidget::errorHandler |
( |
int |
error | ) |
|
|
protectedvirtual |
int phidgets::Phidget::ErrorHandler |
( |
CPhidgetHandle |
handle, |
|
|
void * |
userptr, |
|
|
int |
ErrorCode, |
|
|
const char * |
unknown |
|
) |
| |
|
staticprivate |
std::string phidgets::Phidget::getDeviceLabel |
( |
| ) |
|
Get the device label string.
Definition at line 61 of file phidget.cpp.
std::string phidgets::Phidget::getDeviceName |
( |
| ) |
|
Get the device name string.
Definition at line 53 of file phidget.cpp.
int phidgets::Phidget::getDeviceSerialNumber |
( |
| ) |
|
std::string phidgets::Phidget::getDeviceType |
( |
| ) |
|
Get the device type string.
Definition at line 45 of file phidget.cpp.
int phidgets::Phidget::getDeviceVersion |
( |
| ) |
|
std::string phidgets::Phidget::getErrorDescription |
( |
int |
errorCode | ) |
|
|
static |
Lookup the string for a CPhidget Error Code.
- Parameters
-
errorCode | The error code returned from the CPhidget API |
Definition at line 91 of file phidget.cpp.
std::string phidgets::Phidget::getLibraryVersion |
( |
| ) |
|
Get the library version string.
Definition at line 69 of file phidget.cpp.
void phidgets::Phidget::init |
( |
CPhidgetHandle |
handle | ) |
|
|
protected |
int phidgets::Phidget::openAndWaitForAttachment |
( |
int |
serial_number, |
|
|
int |
timeout |
|
) |
| |
Open a connection to a Phidget.
- Parameters
-
serial_number | The serial number of the phidget to which to attach (-1 will connect to any) |
timeout | Milliseconds to wait before timing out |
- Returns
- 0 on success
Definition at line 29 of file phidget.cpp.
void phidgets::Phidget::registerHandlers |
( |
| ) |
|
|
protected |
CPhidgetHandle phidgets::Phidget::handle_ |
|
private |
The documentation for this class was generated from the following files: