Phidget Bridge
[Specific Phidgets]


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

typedef struct _CPhidgetBridge* CPhidgetBridgeHandle

A Phidget Bridge handle


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

int CPhidgetBridge_create ( CPhidgetBridgeHandle phid  ) 

Creates a Phidget Bridge handle.

Parameters:
phid A pointer to an unallocated Phidget Bridge handle.

int CPhidgetBridge_getInputCount ( CPhidgetBridgeHandle  phid,
int *  count 
)

Gets the number of inputs supported by this phidget bridge.

Parameters:
phid An attached phidget bridge handle.
count The input count.

int CPhidgetBridge_getBridgeValue ( CPhidgetBridgeHandle  phid,
int  index,
double *  value 
)

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.

int CPhidgetBridge_getBridgeMax ( CPhidgetBridgeHandle  phid,
int  index,
double *  max 
)

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.

int CPhidgetBridge_getBridgeMin ( CPhidgetBridgeHandle  phid,
int  index,
double *  min 
)

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.

int CPhidgetBridge_setEnabled ( CPhidgetBridgeHandle  phid,
int  index,
int  enabledState 
)

Gets the enabled state for an input.

Parameters:
phid An attached phidget bridge handle.
index The input index.
enabledState The enabled state.

int CPhidgetBridge_getEnabled ( CPhidgetBridgeHandle  phid,
int  index,
int *  enabledState 
)

Sets the enabled state for an input.

Parameters:
phid An attached phidget bridge handle.
index The input index.
enabledState The enabled state.

int CPhidgetBridge_getGain ( CPhidgetBridgeHandle  phid,
int  index,
CPhidgetBridge_Gain gain 
)

Gets the the Gain for an input.

Parameters:
phid An attached phidget bridge handle.
index The input index.
gain The gain.

int CPhidgetBridge_setGain ( CPhidgetBridgeHandle  phid,
int  index,
CPhidgetBridge_Gain  gain 
)

Sets the the Gain for an input.

Parameters:
phid An attached phidget bridge handle.
index The input index.
gain The gain.

int CPhidgetBridge_getDataRate ( CPhidgetBridgeHandle  phid,
int *  milliseconds 
)

Gets the the data rate for the Phidget Bridge, in milliseconds.

Parameters:
phid An attached phidget bridge handle.
milliseconds The data rate.

int CPhidgetBridge_setDataRate ( CPhidgetBridgeHandle  phid,
int  milliseconds 
)

Sets the the data rate for the Phidget Bridge, in milliseconds.

Parameters:
phid An attached phidget bridge handle.
milliseconds The data rate.

int CPhidgetBridge_getDataRateMax ( CPhidgetBridgeHandle  phid,
int *  max 
)

Gets the the maximum data rate for the Phidget Bridge, in milliseconds.

Parameters:
phid An attached phidget bridge handle.
max The max data rate.

int CPhidgetBridge_getDataRateMin ( CPhidgetBridgeHandle  phid,
int *  min 
)

Gets the the minimum data rate for the Phidget Bridge, in milliseconds.

Parameters:
phid An attached phidget bridge handle.
min The min data rate.

int CPhidgetBridge_set_OnBridgeData_Handler ( CPhidgetBridgeHandle  phid,
int(*)(CPhidgetBridgeHandle phid, void *userPtr, int index, double value)  fptr,
void *  userPtr 
)

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.


Generated on Wed Jan 5 12:08:42 2022 for Phidget21 by  doxygen 1.5.9