mcdc3006s_data.h
Go to the documentation of this file.
00001 #ifndef __MCD3006S_DATA_H__
00002 #define __MCD3006S_DATA_H__
00003 
00030 //#define MCDC3006S_PULSES_PER_REV 2048     // Warning
00031 //#define MCDC3006S_REDUCTION_FACTOR 123000 /* motorValue = FACTOR * dofValue */
00032 #define CALIBRATION_TIMEOUT 5000           
00034 #define ACTIVATE 1
00035 #define DEACTIVATE 0
00036 
00037 #ifndef TRUE
00038 #define TRUE 1
00039 #endif
00040 
00041 #ifndef FALSE
00042 #define FALSE 0
00043 #endif
00044 
00045 // Driver Masks used to extract information from GST and GFS (Get Status and Get Fault Status) commands
00046 #define ENABLED_MASK            8           
00047 #define CURRENT_LIMITING_MASK   16          
00048 #define OVERVOLTAGE_MASK        64          
00049 #define OVERTEMPERATURE_MASK    128         
00050 #define DRIVER_INPUT_4_MASK     2048        
00055 typedef struct driverConf {
00056         long int maxPos; 
00057         long int minPos; 
00058         long int maxVel; 
00059         long int maxAcc; 
00060         long int maxDec; 
00061         long int cCLimit; 
00062 } driverConf_t;
00063 
00067 typedef struct driverMotorSensor {
00068         long int p; 
00069         long int v; 
00070         long int i; 
00071 } driverSensor_t;
00072 
00076 typedef struct driverStatus {
00077         int disabled; 
00078         int overTemperature; 
00079         int curLimiting; 
00080         int overVoltage; 
00081         int sensorReached; 
00082 } driverStatus_t;
00083 
00084 #endif


motor_drivers
Author(s): Raul Perula-Martinez
autogenerated on Thu Apr 2 2015 03:07:04