Functions | Variables
cphidgetphsensor.c File Reference
#include "stdafx.h"
#include "cphidgetphsensor.h"
#include <math.h>
#include "cusb.h"
#include "csocket.h"
#include "cthread.h"
Include dependency graph for cphidgetphsensor.c:

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

Function Documentation

static double calculate_ph ( double  Vad,
double  temperature 
) [static]

Definition at line 131 of file cphidgetphsensor.c.

if ( )

Definition at line 70 of file cphidgetphsensor.c.

if ( PH< phid->phMin||  PH,
phid->  phMax 
)
if ( Potential< phid->potentialMin||  Potential,
phid->  potentialMax 
)

Definition at line 106 of file cphidgetphsensor.c.

if ( phid->PH!  = PUNK_DBL)

Definition at line 118 of file cphidgetphsensor.c.

switch ( phid->phid.  deviceIDSpec)

Definition at line 37 of file cphidgetphsensor.c.

TESTPTR ( phid  )

Variable Documentation

return EPHIDGET_OK

Definition at line 26 of file cphidgetphsensor.c.

Definition at line 128 of file cphidgetphsensor.c.

else phid PH = PUNI_DBL

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.



pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:21