diff --git a/motorApp/MotorSrc/drvMotorAsyn.h b/motorApp/MotorSrc/drvMotorAsyn.h deleted file mode 100644 index e4b5e7e5..00000000 --- a/motorApp/MotorSrc/drvMotorAsyn.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef DRV_MOTOR_ASYN_H -#define DRV_MOTOR_ASYN_H - -#include "motor_interface.h" - -#include - -#define NMASKBITS (sizeof(int) * CHAR_BIT) -#define BIT_ISSET(bit, n, mask) ( ((bit)/NMASKBITS < (n)) && \ - ((mask)[(bit)/NMASKBITS] & (1 << ((bit) % NMASKBITS))) ) -#define BIT_SET(bit, mask, value) do { \ - (mask)[(bit)/NMASKBITS] &= ~(1 << ((bit) % NMASKBITS)); \ - if (value) { \ - (mask)[(bit)/NMASKBITS] |= (1 << ((bit) % NMASKBITS)); \ - } \ - } while (0); - -typedef enum { - /* Parameters - these must match the definitions in motor_interface.h */ - motorPosition = motorAxisPosition, - motorEncRatio = motorAxisEncoderRatio, - motorResolution = motorAxisResolution, - motorPgain = motorAxisPGain, - motorIgain = motorAxisIGain, - motorDgain = motorAxisDGain, - motorHighLim = motorAxisHighLimit, - motorLowLim = motorAxisLowLimit, - motorSetClosedLoop = motorAxisClosedLoop, - motorEncoderPosition = motorAxisEncoderPosn, - motorDeferMoves = motorAxisDeferMoves, - /* Not exposed by the driver */ - motorVelocity=100, motorVelBase, motorAccel, - /* Commands */ - motorMoveRel, motorMoveAbs, motorMoveVel, motorHome, motorStop, - /* Status readback */ - motorStatus, motorUpStatus, - /* Status bits split out */ - motorStatusDirection=motorAxisDirection, - motorStatusDone, motorStatusHighLimit, motorStatusAtHome, - motorStatusSlip, motorStatusPowerOn, motorStatusFollowingError, - motorStatusHome, motorStatusHasEncoder, motorStatusProblem, - motorStatusMoving, motorStatusGainSupport, motorStatusCommsError, - motorStatusLowLimit, motorStatusHomed, motorStatusLast -} motorCommand; - -#endif