Phidget PH Sensor
[Specific Phidgets]


Typedefs

typedef struct _CPhidgetPHSensor * CPhidgetPHSensorHandle

Functions

int CPhidgetPHSensor_create (CPhidgetPHSensorHandle *phid)
int CPhidgetPHSensor_getPH (CPhidgetPHSensorHandle phid, double *ph)
int CPhidgetPHSensor_getPHMax (CPhidgetPHSensorHandle phid, double *max)
int CPhidgetPHSensor_getPHMin (CPhidgetPHSensorHandle phid, double *min)
int CPhidgetPHSensor_set_OnPHChange_Handler (CPhidgetPHSensorHandle phid, int(*fptr)(CPhidgetPHSensorHandle phid, void *userPtr, double ph), void *userPtr)
int CPhidgetPHSensor_getPHChangeTrigger (CPhidgetPHSensorHandle phid, double *trigger)
int CPhidgetPHSensor_setPHChangeTrigger (CPhidgetPHSensorHandle phid, double trigger)
int CPhidgetPHSensor_getPotential (CPhidgetPHSensorHandle phid, double *potential)
int CPhidgetPHSensor_getPotentialMax (CPhidgetPHSensorHandle phid, double *max)
int CPhidgetPHSensor_getPotentialMin (CPhidgetPHSensorHandle phid, double *min)
int CPhidgetPHSensor_setTemperature (CPhidgetPHSensorHandle phid, double temperature)

Detailed Description

These calls are specific to the Phidget PH Sensor 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 _CPhidgetPHSensor* CPhidgetPHSensorHandle

A Phidget PHSensor handle


Function Documentation

int CPhidgetPHSensor_create ( CPhidgetPHSensorHandle phid  ) 

Creates a Phidget PHSensor handle.

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

int CPhidgetPHSensor_getPH ( CPhidgetPHSensorHandle  phid,
double *  ph 
)

Gets the sensed PH.

Parameters:
phid An attached phidget ph sensor handle.
ph The PH.

int CPhidgetPHSensor_getPHMax ( CPhidgetPHSensorHandle  phid,
double *  max 
)

Gets the maximum PH that the sensor could report.

Parameters:
phid An attached phidget ph sensor handle.
max The maximum PH.

int CPhidgetPHSensor_getPHMin ( CPhidgetPHSensorHandle  phid,
double *  min 
)

Gets the minimum PH that the sensor could report.

Parameters:
phid An attached phidget ph sensor handle.
min The minimum PH.

int CPhidgetPHSensor_set_OnPHChange_Handler ( CPhidgetPHSensorHandle  phid,
int(*)(CPhidgetPHSensorHandle phid, void *userPtr, double ph)  fptr,
void *  userPtr 
)

Set a PH change handler. This is called when the PH changes by more then the change trigger.

Parameters:
phid An attached phidget ph sensor handle.
fptr Callback function pointer.
userPtr A pointer for use by the user - this value is passed back into the callback function.

int CPhidgetPHSensor_getPHChangeTrigger ( CPhidgetPHSensorHandle  phid,
double *  trigger 
)

Gets the PH change trigger.

Parameters:
phid An attached phidget ph sensor handle.
trigger The change trigger.

int CPhidgetPHSensor_setPHChangeTrigger ( CPhidgetPHSensorHandle  phid,
double  trigger 
)

Sets the PH change trigger.

Parameters:
phid An attached phidget ph sensor handle.
trigger The change trigger.

int CPhidgetPHSensor_getPotential ( CPhidgetPHSensorHandle  phid,
double *  potential 
)

Gets the sensed potential.

Parameters:
phid An attached phidget ph sensor handle.
potential The potential.

int CPhidgetPHSensor_getPotentialMax ( CPhidgetPHSensorHandle  phid,
double *  max 
)

Gets the maximum potential that can be sensed.

Parameters:
phid An attached phidget ph sensor handle.
max The maximum potential.

int CPhidgetPHSensor_getPotentialMin ( CPhidgetPHSensorHandle  phid,
double *  min 
)

Gets the minimum potential that can be sensed.

Parameters:
phid An attached phidget ph sensor handle.
min The minimum potential.

int CPhidgetPHSensor_setTemperature ( CPhidgetPHSensorHandle  phid,
double  temperature 
)

Sets the temperature to be used for PH calculations.

Parameters:
phid An attached phidget ph sensor handle.
temperature The temperature (degrees celcius). By default this is 20.


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