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

Go to the source code of this file.

Functions

 CPhidget_read ((CPhidgetHandle) phid)
static int CCONV CPhidgetAnalog_sendPacket_setEnabled (CPhidgetAnalogHandle phid, unsigned int index, int enabled)
static int CCONV CPhidgetAnalog_sendPacket_setVoltage (CPhidgetAnalogHandle phid, unsigned int index, double voltage)
 for (i=0;i< ANALOG_MAXOUTPUTS;i++)
 for (i=0;i< phid->phid.attr.analog.numAnalogOutputs;i++)
 if ()
 if (tsd &&!phid->lastTsd)
else if (!tsd &&phid->lastTsd)
 switch (phid->phid.deviceIDSpec)
 TESTPTR (phid)

Variables

phid controlPacketWaiting = PFALSE
if lenp return EPHIDGET_INVALIDARG
return EPHIDGET_OK
char error_buffer [128]
int i = 0
int iVoltage
phid lastTsd = tsd
lenp = phid->phid.outputReportByteLength
unsigned char overcurrent [ANALOG_MAXOUTPUTS] = {PFALSE}
 phid = 0
unsigned char tsd = PFALSE
phid voltageMax = PUNI_DBL
phid voltageMin = PUNI_DBL

Function Documentation

static int CCONV CPhidgetAnalog_sendPacket_setEnabled ( CPhidgetAnalogHandle  phid,
unsigned int  index,
int  enabled 
) [static]

Definition at line 286 of file cphidgetanalog.c.

static int CCONV CPhidgetAnalog_sendPacket_setVoltage ( CPhidgetAnalogHandle  phid,
unsigned int  index,
double  voltage 
) [static]

Definition at line 226 of file cphidgetanalog.c.

for ( )

Definition at line 13 of file cphidgetanalog.c.

for ( i  = 0;i<phid->phid.attr.analog.numAnalogOutputs;i++)

Definition at line 77 of file cphidgetanalog.c.

if ( )

Definition at line 94 of file cphidgetanalog.c.

if ( tsd &&!phid->  lastTsd)

Definition at line 142 of file cphidgetanalog.c.

else if ( !tsd &&phid->  lastTsd)

Definition at line 146 of file cphidgetanalog.c.

switch ( phid->phid.  deviceIDSpec)

Definition at line 41 of file cphidgetanalog.c.

TESTPTR ( phid  )

Variable Documentation

Definition at line 73 of file cphidgetanalog.c.

Definition at line 171 of file cphidgetanalog.c.

return EPHIDGET_OK

Definition at line 30 of file cphidgetanalog.c.

char error_buffer[128]

Definition at line 89 of file cphidgetanalog.c.

int i = 0

Definition at line 11 of file cphidgetanalog.c.

int iVoltage

Definition at line 92 of file cphidgetanalog.c.

Definition at line 150 of file cphidgetanalog.c.

* lenp = phid->phid.outputReportByteLength

Definition at line 217 of file cphidgetanalog.c.

unsigned char overcurrent[ANALOG_MAXOUTPUTS] = {PFALSE}

Definition at line 90 of file cphidgetanalog.c.

Definition at line 157 of file cphidgetanalog.c.

unsigned char tsd = PFALSE

Definition at line 91 of file cphidgetanalog.c.

Definition at line 27 of file cphidgetanalog.c.

Definition at line 28 of file cphidgetanalog.c.



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