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

Go to the source code of this file.

Functions

 CPhidget_read ((CPhidgetHandle) phid)
 for (i=0;i< STEPPER_MAXINPUTS;i++)
 for (i=0;i< phid->phid.attr.stepper.numInputs;i++)
 if ()
 if (phid->packetCounter[Index]==PUNK_INT) phid->packetCounter[Index]=0
TESTATTACHED TESTATTACHED
TESTATTACHED TESTATTACHED
TESTATTACHED 
if (CPhidget_statusFlagIsSet(phid->phid.status, PHIDGET_REMOTE_FLAG))
 switch (phid->phid.deviceUID)
 switch (packet_type)
 TESTPTR (phid)
 TESTPTRS (phid, buffer)

Variables

unsigned char accel = 0
phid accelerationMax = PUNI_DBL
phid accelerationMin = PUNI_DBL
double current [STEPPER_MAXSTEPPERS]
phid currentMax = PUNI_DBL
phid currentMin = PUNI_DBL
return EPHIDGET_OK
unsigned char flags = 0
int i = 0
 Index = Index & 0x0F
unsigned char input [STEPPER_MAXINPUTS]
int j = 0
unsigned char justStopped [STEPPER_MAXSTEPPERS]
double lastCurrent [STEPPER_MAXSTEPPERS]
unsigned char lastInput [STEPPER_MAXINPUTS]
__int64 lastPosition [STEPPER_MAXSTEPPERS]
double lastSpeed [STEPPER_MAXSTEPPERS]
unsigned char motorDone [STEPPER_MAXSTEPPERS]
unsigned char motorEngaged [STEPPER_MAXSTEPPERS]
phid motorPositionMax = PUNI_INT64
phid motorPositionMin = PUNI_INT64
phid motorSpeedMax = PUNI_DBL
phid motorSpeedMin = PUNI_DBL
phid packetCounter &[Index] phid motorStoppedState [Index] = 0x0F PFALSE
phid outputPacketLen = 0
int packet_type = Index & 0x30
phid packetCounter [Index]
CThread_mutex_lockphid
__int64 position [STEPPER_MAXSTEPPERS] = 0
double speed [STEPPER_MAXSTEPPERS] = 0

Function Documentation

for ( )

Definition at line 22 of file cphidgetstepper.c.

for ( i  = 0; i<phid->phid.attr.stepper.numInputs; i++)

Definition at line 98 of file cphidgetstepper.c.

if ( )

Definition at line 148 of file cphidgetstepper.c.

if ( phid->  packetCounter[Index] = =PUNK_INT) [pure virtual]

Definition at line 628 of file cphidgetstepper.c.

switch ( phid->phid.  deviceUID)

Definition at line 58 of file cphidgetstepper.c.

Definition at line 370 of file cphidgetstepper.c.

TESTPTR ( phid  )
TESTPTRS ( phid  ,
buffer   
)

Variable Documentation

unsigned char accel = 0

Definition at line 345 of file cphidgetstepper.c.

Definition at line 15 of file cphidgetstepper.c.

Definition at line 16 of file cphidgetstepper.c.

Definition at line 142 of file cphidgetstepper.c.

Definition at line 19 of file cphidgetstepper.c.

Definition at line 20 of file cphidgetstepper.c.

return EPHIDGET_OK

Definition at line 44 of file cphidgetstepper.c.

unsigned char flags = 0

Definition at line 345 of file cphidgetstepper.c.

int i = 0

Definition at line 11 of file cphidgetstepper.c.

Index = Index & 0x0F

Definition at line 350 of file cphidgetstepper.c.

unsigned char input[STEPPER_MAXINPUTS]

Definition at line 145 of file cphidgetstepper.c.

int j = 0

Definition at line 140 of file cphidgetstepper.c.

Definition at line 146 of file cphidgetstepper.c.

Definition at line 143 of file cphidgetstepper.c.

unsigned char lastInput[STEPPER_MAXINPUTS]

Definition at line 145 of file cphidgetstepper.c.

Definition at line 144 of file cphidgetstepper.c.

Definition at line 143 of file cphidgetstepper.c.

Definition at line 146 of file cphidgetstepper.c.

Definition at line 146 of file cphidgetstepper.c.

Definition at line 17 of file cphidgetstepper.c.

Definition at line 18 of file cphidgetstepper.c.

Definition at line 13 of file cphidgetstepper.c.

Definition at line 14 of file cphidgetstepper.c.

Definition at line 359 of file cphidgetstepper.c.

Definition at line 55 of file cphidgetstepper.c.

int packet_type = Index & 0x30

Definition at line 349 of file cphidgetstepper.c.

Definition at line 357 of file cphidgetstepper.c.

Definition at line 269 of file cphidgetstepper.c.

Definition at line 144 of file cphidgetstepper.c.

unsigned short speed = 0

Definition at line 142 of file cphidgetstepper.c.



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