|
Typedefs |
typedef struct _CPhidgetBridge * | CPhidgetBridgeHandle |
Enumerations |
enum | CPhidgetBridge_Gain {
PHIDGET_BRIDGE_GAIN_1 = 1,
PHIDGET_BRIDGE_GAIN_8,
PHIDGET_BRIDGE_GAIN_16,
PHIDGET_BRIDGE_GAIN_32,
PHIDGET_BRIDGE_GAIN_64,
PHIDGET_BRIDGE_GAIN_128,
PHIDGET_BRIDGE_GAIN_UNKNOWN
} |
Functions |
int | CPhidgetBridge_create (CPhidgetBridgeHandle *phid) |
int | CPhidgetBridge_getInputCount (CPhidgetBridgeHandle phid, int *count) |
int | CPhidgetBridge_getBridgeValue (CPhidgetBridgeHandle phid, int index, double *value) |
int | CPhidgetBridge_getBridgeMax (CPhidgetBridgeHandle phid, int index, double *max) |
int | CPhidgetBridge_getBridgeMin (CPhidgetBridgeHandle phid, int index, double *min) |
int | CPhidgetBridge_setEnabled (CPhidgetBridgeHandle phid, int index, int enabledState) |
int | CPhidgetBridge_getEnabled (CPhidgetBridgeHandle phid, int index, int *enabledState) |
int | CPhidgetBridge_getGain (CPhidgetBridgeHandle phid, int index, CPhidgetBridge_Gain *gain) |
int | CPhidgetBridge_setGain (CPhidgetBridgeHandle phid, int index, CPhidgetBridge_Gain gain) |
int | CPhidgetBridge_getDataRate (CPhidgetBridgeHandle phid, int *milliseconds) |
int | CPhidgetBridge_setDataRate (CPhidgetBridgeHandle phid, int milliseconds) |
int | CPhidgetBridge_getDataRateMax (CPhidgetBridgeHandle phid, int *max) |
int | CPhidgetBridge_getDataRateMin (CPhidgetBridgeHandle phid, int *min) |
int | CPhidgetBridge_set_OnBridgeData_Handler (CPhidgetBridgeHandle phid, int(*fptr)(CPhidgetBridgeHandle phid, void *userPtr, int index, double value), void *userPtr) |
Detailed Description
These calls are specific to the Phidget Bridge object. See your device's User Guide for more specific API details, technical information, and revision details. The User Guide, along with other resources, can be found on the product page for your device.
Typedef Documentation
Enumeration Type Documentation
List of gains supported by the PhidgetBridge.
- Enumerator:
-
PHIDGET_BRIDGE_GAIN_1 |
Gain of 1. |
PHIDGET_BRIDGE_GAIN_8 |
Gain of 8. |
PHIDGET_BRIDGE_GAIN_16 |
Gain of 16. |
PHIDGET_BRIDGE_GAIN_32 |
Gain of 32. |
PHIDGET_BRIDGE_GAIN_64 |
Gain of 64. |
PHIDGET_BRIDGE_GAIN_128 |
Gain of 128. |
PHIDGET_BRIDGE_GAIN_UNKNOWN |
Unknown Gain. |
Function Documentation
Creates a Phidget Bridge handle.
- Parameters:
-
| phid | A pointer to an unallocated Phidget Bridge handle. |
Gets the number of inputs supported by this phidget bridge.
- Parameters:
-
| phid | An attached phidget bridge handle. |
| count | The input count. |
Gets the current value of a bridge input, in mV/V.
- Parameters:
-
| phid | An attached phidget bridge handle. |
| index | The input index. |
| value | The value. |
Gets the maximum value supported by a bridge input, in mV/V. This is affected by Gain.
- Parameters:
-
| phid | An attached phidget bridge handle. |
| index | The input index. |
| max | The max value. |
Gets the minimum value supported by a bridge input, in mV/V. This is affected by Gain.
- Parameters:
-
| phid | An attached phidget bridge handle. |
| index | The input index. |
| min | The min value. |
Gets the enabled state for an input.
- Parameters:
-
| phid | An attached phidget bridge handle. |
| index | The input index. |
| enabledState | The enabled state. |
Sets the enabled state for an input.
- Parameters:
-
| phid | An attached phidget bridge handle. |
| index | The input index. |
| enabledState | The enabled state. |
Gets the the Gain for an input.
- Parameters:
-
| phid | An attached phidget bridge handle. |
| index | The input index. |
| gain | The gain. |
Sets the the Gain for an input.
- Parameters:
-
| phid | An attached phidget bridge handle. |
| index | The input index. |
| gain | The gain. |
Gets the the data rate for the Phidget Bridge, in milliseconds.
- Parameters:
-
| phid | An attached phidget bridge handle. |
| milliseconds | The data rate. |
Sets the the data rate for the Phidget Bridge, in milliseconds.
- Parameters:
-
| phid | An attached phidget bridge handle. |
| milliseconds | The data rate. |
Gets the the maximum data rate for the Phidget Bridge, in milliseconds.
- Parameters:
-
| phid | An attached phidget bridge handle. |
| max | The max data rate. |
Gets the the minimum data rate for the Phidget Bridge, in milliseconds.
- Parameters:
-
| phid | An attached phidget bridge handle. |
| min | The min data rate. |
Sets a bridge data event handler. This is called at a set rate as defined by data rate.
- Parameters:
-
| phid | A phidget bridge handle. |
| fptr | Callback function pointer. |
| userPtr | A pointer for use by the user - this value is passed back into the callback function. |