#include "stdafx.h"
#include "cphidgetphsensor.h"
#include <math.h>
#include "cusb.h"
#include "csocket.h"
#include "cthread.h"
Go to the source code of this file.
Functions | |
static double | calculate_ph (double Vad, double temperature) |
CPhidget_read ((CPhidgetHandle) phid) | |
if () | |
if (PH< phid->phMin||PH > phid->phMax) phid->PH | |
if (Potential< phid->potentialMin||Potential > phid->potentialMax) phid->Potential | |
if ((fabs(phid->PH-phid->PHLastTrigger) >=phid->PHChangeTrigger||phid->PHLastTrigger==PUNK_DBL)&&phid->PH!=PUNK_DBL) | |
if (phid->PH!=PUNK_DBL) | |
switch (phid->phid.deviceIDSpec) | |
TESTPTR (phid) | |
Variables | |
return | EPHIDGET_OK |
return | EPHIDGET_UNEXPECTED |
phid | PH = PUNI_DBL |
phid | PHChangeTrigger = PUNI_DBL |
phid | PHLastTrigger = PUNK_DBL |
phid | phMax = PUNI_DBL |
phid | phMin = PUNI_DBL |
phid | Potential = PUNI_DBL |
phid | potentialMax = PUNI_DBL |
phid | potentialMin = PUNI_DBL |
phid | Temperature = PUNI_DBL |
static double calculate_ph | ( | double | Vad, |
double | temperature | ||
) | [static] |
Definition at line 131 of file cphidgetphsensor.c.
CPhidget_read | ( | (CPhidgetHandle) | phid | ) |
if | ( | ) |
Definition at line 70 of file cphidgetphsensor.c.
if | ( | Potential< phid->potentialMin|| | Potential, |
phid-> | potentialMax | ||
) |
if | ( | (fabs(phid->PH-phid->PHLastTrigger) >=phid->PHChangeTrigger||phid->PHLastTrigger==PUNK_DBL)&&phid->PH! | = PUNK_DBL | ) |
Definition at line 106 of file cphidgetphsensor.c.
Definition at line 118 of file cphidgetphsensor.c.
Definition at line 37 of file cphidgetphsensor.c.
return EPHIDGET_OK |
Definition at line 26 of file cphidgetphsensor.c.
return EPHIDGET_UNEXPECTED |
Definition at line 128 of file cphidgetphsensor.c.
Definition at line 21 of file cphidgetphsensor.c.
Definition at line 24 of file cphidgetphsensor.c.
Definition at line 22 of file cphidgetphsensor.c.
Definition at line 15 of file cphidgetphsensor.c.
Definition at line 16 of file cphidgetphsensor.c.
Definition at line 23 of file cphidgetphsensor.c.
Definition at line 17 of file cphidgetphsensor.c.
Definition at line 18 of file cphidgetphsensor.c.
Definition at line 20 of file cphidgetphsensor.c.