|
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
Calls specific to the Phidget PH Sensor. See the product manual for more specific API details, supported functionality, units, etc.
Typedef Documentation
A Phidget PHSensor handle
Function Documentation
Creates a Phidget PHSensor handle.
- Parameters:
-
| phid | A pointer to an unallocated Phidget PHSensor handle. |
Gets the sensed PH.
- Parameters:
-
| phid | An attached phidget ph sensor handle. |
| ph | The PH. |
Gets the maximum PH that the sensor could report.
- Parameters:
-
| phid | An attached phidget ph sensor handle. |
| max | The maximum PH. |
Gets the minimum PH that the sensor could report.
- Parameters:
-
| phid | An attached phidget ph sensor handle. |
| min | The minimum PH. |
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. |
Gets the PH change trigger.
- Parameters:
-
| phid | An attached phidget ph sensor handle. |
| trigger | The change trigger. |
Sets the PH change trigger.
- Parameters:
-
| phid | An attached phidget ph sensor handle. |
| trigger | The change trigger. |
Gets the sensed potential.
- Parameters:
-
| phid | An attached phidget ph sensor handle. |
| potential | The potential. |
Gets the maximum potential that can be sensed.
- Parameters:
-
| phid | An attached phidget ph sensor handle. |
| max | The maximum potential. |
Gets the minimum potential that can be sensed.
- Parameters:
-
| phid | An attached phidget ph sensor handle. |
| min | The minimum potential. |
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. |