Phidget States | |
| Returned by getStatus() functions | |
| #define | PHIDGET_ATTACHED 0x1 |
| Phidget attached. | |
| #define | PHIDGET_NOTATTACHED 0x0 |
| Phidget not attached. | |
Phidget Error Codes | |
| Returned by all C API calls | |
| #define | PHIDGET_ERROR_CODE_COUNT 20 |
| Function completed successfully. | |
| #define | EPHIDGET_OK 0 |
| Function completed successfully. | |
| #define | EPHIDGET_NOTFOUND 1 |
| Phidget not found. | |
| #define | EPHIDGET_NOMEMORY 2 |
| No memory. | |
| #define | EPHIDGET_UNEXPECTED 3 |
| Unexpected. | |
| #define | EPHIDGET_INVALIDARG 4 |
| Invalid argument. | |
| #define | EPHIDGET_NOTATTACHED 5 |
| Phidget not attached. | |
| #define | EPHIDGET_INTERRUPTED 6 |
| Interrupted. | |
| #define | EPHIDGET_INVALID 7 |
| Invalid error code. | |
| #define | EPHIDGET_NETWORK 8 |
| Network. | |
| #define | EPHIDGET_UNKNOWNVAL 9 |
| Value unknown. | |
| #define | EPHIDGET_BADPASSWORD 10 |
| Authorization exception. | |
| #define | EPHIDGET_UNSUPPORTED 11 |
| Unsupported. | |
| #define | EPHIDGET_DUPLICATE 12 |
| Duplicate request. | |
| #define | EPHIDGET_TIMEOUT 13 |
| Timeout. | |
| #define | EPHIDGET_OUTOFBOUNDS 14 |
| Out of bounds. | |
| #define | EPHIDGET_EVENT 15 |
| Event. | |
| #define | EPHIDGET_NETWORK_NOTCONNECTED 16 |
| Network not connected. | |
| #define | EPHIDGET_WRONGDEVICE 17 |
| Wrong device. | |
| #define | EPHIDGET_CLOSED 18 |
| Phidget Closed. | |
| #define | EPHIDGET_BADVERSION 19 |
| Version Mismatch. | |
Phidget Unknown Constants | |
| Data values will be set to these constants when a call fails with EPHIDGET_UNKNOWNVAL. | |
| #define | PUNK_BOOL 0x02 |
| Unknown Boolean (unsigned char). | |
| #define | PUNK_SHRT 0x7FFF |
| Unknown Short (16-bit). | |
| #define | PUNK_INT 0x7FFFFFFF |
| Unknown Integer (32-bit). | |
| #define | PUNK_INT64 0x7FFFFFFFFFFFFFFFLL |
| Unknown Integer (64-bit). | |
| #define | PUNK_DBL 1e300 |
| Unknown Double. | |
| #define | PUNK_FLT 1e30 |
| Unknown Float. | |
Defines | |
| #define | PFALSE 0x00 |
| False. | |
| #define | PTRUE 0x01 |
| True. | |
| #define PHIDGET_ERROR_CODE_COUNT 20 |
| #define EPHIDGET_OK 0 |
| #define EPHIDGET_NOTFOUND 1 |
Phidget not found.
"A Phidget matching the type and or serial number could not be found." This code is not currently used.
Definition at line 424 of file phidget21.h.
| #define EPHIDGET_NOMEMORY 2 |
| #define EPHIDGET_UNEXPECTED 3 |
Unexpected.
"Unexpected Error. Contact Phidgets Inc. for support."
Definition at line 426 of file phidget21.h.
| #define EPHIDGET_INVALIDARG 4 |
Invalid argument.
"Invalid argument passed to function."
Definition at line 427 of file phidget21.h.
| #define EPHIDGET_NOTATTACHED 5 |
Phidget not attached.
"Phidget not physically attached."
Definition at line 428 of file phidget21.h.
| #define EPHIDGET_INTERRUPTED 6 |
Interrupted.
"Read/Write operation was interrupted." This code is not currently used.
Definition at line 429 of file phidget21.h.
| #define EPHIDGET_INVALID 7 |
| #define EPHIDGET_NETWORK 8 |
| #define EPHIDGET_UNKNOWNVAL 9 |
Value unknown.
"Value is Unknown (State not yet received from device, or not yet set by user)."
Definition at line 432 of file phidget21.h.
| #define EPHIDGET_BADPASSWORD 10 |
| #define EPHIDGET_UNSUPPORTED 11 |
| #define EPHIDGET_DUPLICATE 12 |
| #define EPHIDGET_TIMEOUT 13 |
| #define EPHIDGET_OUTOFBOUNDS 14 |
| #define EPHIDGET_EVENT 15 |
Event.
"A non-null error code was returned from an event handler." This code is not currently used.
Definition at line 438 of file phidget21.h.
| #define EPHIDGET_NETWORK_NOTCONNECTED 16 |
Network not connected.
"A connection to the server does not exist."
Definition at line 439 of file phidget21.h.
| #define EPHIDGET_WRONGDEVICE 17 |
Wrong device.
"Function is not applicable for this device."
Definition at line 440 of file phidget21.h.
| #define EPHIDGET_CLOSED 18 |
| #define EPHIDGET_BADVERSION 19 |
Version Mismatch.
"Webservice and Client protocol versions don't match. Update to newest release."
Definition at line 442 of file phidget21.h.
| #define PFALSE 0x00 |
| #define PTRUE 0x01 |
1.5.6