|
Typedefs |
typedef struct
_CPhidgetInterfaceKit * | CPhidgetInterfaceKitHandle |
Functions |
| int | CPhidgetInterfaceKit_create (CPhidgetInterfaceKitHandle *phid) |
| int | CPhidgetInterfaceKit_getInputCount (CPhidgetInterfaceKitHandle phid, int *count) |
| int | CPhidgetInterfaceKit_getInputState (CPhidgetInterfaceKitHandle phid, int index, int *inputState) |
| int | CPhidgetInterfaceKit_set_OnInputChange_Handler (CPhidgetInterfaceKitHandle phid, int(*fptr)(CPhidgetInterfaceKitHandle phid, void *userPtr, int index, int inputState), void *userPtr) |
| int | CPhidgetInterfaceKit_getOutputCount (CPhidgetInterfaceKitHandle phid, int *count) |
| int | CPhidgetInterfaceKit_getOutputState (CPhidgetInterfaceKitHandle phid, int index, int *outputState) |
| int | CPhidgetInterfaceKit_setOutputState (CPhidgetInterfaceKitHandle phid, int index, int outputState) |
| int | CPhidgetInterfaceKit_set_OnOutputChange_Handler (CPhidgetInterfaceKitHandle phid, int(*fptr)(CPhidgetInterfaceKitHandle phid, void *userPtr, int index, int outputState), void *userPtr) |
| int | CPhidgetInterfaceKit_getSensorCount (CPhidgetInterfaceKitHandle phid, int *count) |
| int | CPhidgetInterfaceKit_getSensorValue (CPhidgetInterfaceKitHandle phid, int index, int *sensorValue) |
| int | CPhidgetInterfaceKit_getSensorRawValue (CPhidgetInterfaceKitHandle phid, int index, int *sensorRawValue) |
| int | CPhidgetInterfaceKit_set_OnSensorChange_Handler (CPhidgetInterfaceKitHandle phid, int(*fptr)(CPhidgetInterfaceKitHandle phid, void *userPtr, int index, int sensorValue), void *userPtr) |
| int | CPhidgetInterfaceKit_getSensorChangeTrigger (CPhidgetInterfaceKitHandle phid, int index, int *trigger) |
| int | CPhidgetInterfaceKit_setSensorChangeTrigger (CPhidgetInterfaceKitHandle phid, int index, int trigger) |
| int | CPhidgetInterfaceKit_getRatiometric (CPhidgetInterfaceKitHandle phid, int *ratiometric) |
| int | CPhidgetInterfaceKit_setRatiometric (CPhidgetInterfaceKitHandle phid, int ratiometric) |
| int | CPhidgetInterfaceKit_getDataRate (CPhidgetInterfaceKitHandle phid, int index, int *milliseconds) |
| int | CPhidgetInterfaceKit_setDataRate (CPhidgetInterfaceKitHandle phid, int index, int milliseconds) |
| int | CPhidgetInterfaceKit_getDataRateMax (CPhidgetInterfaceKitHandle phid, int index, int *max) |
| int | CPhidgetInterfaceKit_getDataRateMin (CPhidgetInterfaceKitHandle phid, int index, int *min) |
Detailed Description
Calls specific to the Phidget InterfaceKit. See the product manual for more specific API details, supported functionality, units, etc.
Typedef Documentation
A Phidget InterfaceKit handle
Function Documentation
Creates a Phidget InterfaceKit handle.
- Parameters:
-
| phid | A pointer to an unallocated Phidget InterfaceKit handle. |
Gets the number of digital inputs supported by this board.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| count | The ditial input count. |
Gets the state of a digital input.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| index | The input index. |
| inputState | The input state. Possible values are PTRUE and PFALSE. |
Set a digital input change handler. This is called when a digital input changes.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| fptr | Callback function pointer. |
| userPtr | A pointer for use by the user - this value is passed back into the callback function. |
Gets the number of digital outputs supported by this board.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| count | The output count. |
Gets the state of a digital output.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| index | The output index. |
| outputState | The output state. Possible values are PTRUE and PFALSE. |
Sets the state of a digital output.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| index | The otuput index. |
| outputState | The output state. Possible values are PTRUE and PFALSE. |
Set a digital output change handler. This is called when a digital output changes.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| fptr | Callback function pointer. |
| userPtr | A pointer for use by the user - this value is passed back into the callback function. |
Gets the number of sensor (analog) inputs supported by this board.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| count | The sensor input count. |
Gets a sensor value (0-1000).
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| index | The sensor index. |
| sensorValue | The sensor value. |
Gets a sensor raw value (12-bit).
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| index | The sensor index. |
| sensorRawValue | The sensor value. |
Set a sensor change handler. This is called when a sensor value changes by more then the change trigger.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| fptr | Callback function pointer. |
| userPtr | A pointer for use by the user - this value is passed back into the callback function. |
Gets a sensor change trigger.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| index | The sensor index. |
| trigger | The change trigger. |
Sets a sensor change trigger.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| index | The sensor index. |
| trigger | The change trigger. |
Gets the ratiometric state for this board.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| ratiometric | The ratiometric state. Possible values are PTRUE and PFALSE. |
Sets the ratiometric state for this board.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| ratiometric | The ratiometric state. Possible values are PTRUE and PFALSE. |
Gets the Data Rate for an analog input.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| index | The sensor index. |
| milliseconds | Data rate in ms. |
Sets the Data Rate for an analog input.
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| index | The sensor index. |
| milliseconds | Data rate in ms. |
Gets the maximum supported data rate for an analog input
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| index | The sensor index. |
| max | Data rate in ms. |
Gets the minimum supported data rate for an analog input
- Parameters:
-
| phid | An attached phidget interface kit handle. |
| index | The sensor index. |
| min | Data rate in ms. |