#include "stdafx.h"#include "cphidgetweightsensor.h"#include "cusb.h"#include "csocket.h"#include "cthread.h"#include <math.h>
Go to the source code of this file.
Functions | |
| CPhidget_read ((CPhidgetHandle) phid) | |
| if () | |
| if (fabs(phid->Weight-phid->lastweight) >=phid->WeightChangeTrigger||phid->lastweight==PUNK_DBL) | |
| if (phid->Weight!=PUNK_DBL) | |
| TESTPTR (phid) | |
Variables | |
| return | EPHIDGET_OK |
| return | EPHIDGET_UNEXPECTED |
| phid | lastweight = PUNK_DBL |
| phid | Weight = PUNI_DBL |
| phid | WeightChangeTrigger = PUNI_DBL |
| CPhidget_read | ( | (CPhidgetHandle) | phid | ) |
| if | ( | ) |
Definition at line 40 of file cphidgetweightsensor.c.
| if | ( | fabs(phid->Weight-phid->lastweight) >=phid->WeightChangeTrigger||phid-> | lastweight = = PUNK_DBL | ) |
Definition at line 59 of file cphidgetweightsensor.c.
Definition at line 69 of file cphidgetweightsensor.c.
| return EPHIDGET_OK |
Definition at line 17 of file cphidgetweightsensor.c.
| return EPHIDGET_UNEXPECTED |
Definition at line 79 of file cphidgetweightsensor.c.
Definition at line 14 of file cphidgetweightsensor.c.
Definition at line 13 of file cphidgetweightsensor.c.
Definition at line 15 of file cphidgetweightsensor.c.