Phidget Analog
[Specific Phidgets]


Typedefs

typedef struct _CPhidgetAnalog * CPhidgetAnalogHandle

Functions

int CPhidgetAnalog_create (CPhidgetAnalogHandle *phid)
int CPhidgetAnalog_getOutputCount (CPhidgetAnalogHandle phid, int *count)
int CPhidgetAnalog_getVoltage (CPhidgetAnalogHandle phid, int index, double *voltage)
int CPhidgetAnalog_setVoltage (CPhidgetAnalogHandle phid, int index, double voltage)
int CPhidgetAnalog_getVoltageMax (CPhidgetAnalogHandle phid, int index, double *max)
int CPhidgetAnalog_getVoltageMin (CPhidgetAnalogHandle phid, int index, double *min)
int CPhidgetAnalog_setEnabled (CPhidgetAnalogHandle phid, int index, int enabledState)
int CPhidgetAnalog_getEnabled (CPhidgetAnalogHandle phid, int index, int *enabledState)

Detailed Description

These calls are specific to the Phidget Analog 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 _CPhidgetAnalog* CPhidgetAnalogHandle

A Phidget Analog handle


Function Documentation

int CPhidgetAnalog_create ( CPhidgetAnalogHandle phid  ) 

Creates a Phidget Analog handle.

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

int CPhidgetAnalog_getOutputCount ( CPhidgetAnalogHandle  phid,
int *  count 
)

Gets the number of outputs supported by this phidget analog.

Parameters:
phid An attached phidget analog handle.
count The axis count.

int CPhidgetAnalog_getVoltage ( CPhidgetAnalogHandle  phid,
int  index,
double *  voltage 
)

Gets the currently set voltage for an output, in V.

Parameters:
phid An attached phidget analog handle.
index The output index.
voltage The voltage.

int CPhidgetAnalog_setVoltage ( CPhidgetAnalogHandle  phid,
int  index,
double  voltage 
)

Sets the voltage of an output, in V.

Parameters:
phid An attached phidget analog handle.
index The otuput index.
voltage The output voltage.

int CPhidgetAnalog_getVoltageMax ( CPhidgetAnalogHandle  phid,
int  index,
double *  max 
)

Gets the maximum settable output voltage, in V.

Parameters:
phid An attached phidget analog handle.
index The output index.
max The max voltage.

int CPhidgetAnalog_getVoltageMin ( CPhidgetAnalogHandle  phid,
int  index,
double *  min 
)

Gets the minimum settable output voltage, in V.

Parameters:
phid An attached phidget analog handle.
index The output index.
min The min voltage.

int CPhidgetAnalog_setEnabled ( CPhidgetAnalogHandle  phid,
int  index,
int  enabledState 
)

Sets the enabled state for an output.

Parameters:
phid An attached phidget analog handle.
index The output index.
enabledState The enabled state. Possible values are PTRUE and PFALSE.

int CPhidgetAnalog_getEnabled ( CPhidgetAnalogHandle  phid,
int  index,
int *  enabledState 
)

Gets the enabled state for an output.

Parameters:
phid An attached phidget analog handle.
index The output index.
enabledState The enabled state. Possible values are PTRUE and PFALSE.


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