![](/media/cache/profiles/0f0ee3310223fe38a989b2c818709393.50x50_q85.jpg)
Command all jmCLIG modules from serial port
Diff: jmStepperAxis.h
- Revision:
- 0:9112e09912db
diff -r 000000000000 -r 9112e09912db jmStepperAxis.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jmStepperAxis.h Sat Feb 12 16:50:25 2011 +0000 @@ -0,0 +1,74 @@ +/************************************************************************* + * @file jmStepperAxis.h + * @brief + * . + * @version 1.0 + * @date Feb 12, 2011 + */ + +/* + * Module Command Line Interface + Format: command name (arg info)min..max values [optional argument] + + + * Module Events + + * Module Feedback and Help messages may be enabled/disabled by Command Lines. + feedback (enable/disable)0..1 + help (enable/disable)0..1 + +*/ + +#ifndef jmStepperAxisdef + #define jmStepperAxisdef 1 + + #define stepperAxisQty 4 // 4 steppers max + + #include "LPC17xx.h" + + // Module Data Structure + extern struct StructStepperAxis{ + uint8_t active; + uint8_t limitCW; + uint8_t limitCCW; + uint8_t stepperID; + uint8_t status; + }sStepperAxis[stepperAxisQty]; + +#endif + +// Module Prototypes +void StepperAxisInit(void); +void StepperAxisSM(void); +void cli_StepperAxis(void); +void rGPPSTA(unsigned int id ); +void cli_GPPSTA(void); + +//-------------------------- CLIG PLUGS -------------------- +// CLIG-INCLUDE +/* +#include "jmStepperAxis.h" +*/ + +// CLIG-INIT +/* + StepperAxisInit(); +*/ + +// CLIG-NEEDS +/* +jmStepper +jmSwitch +*/ + +// CLIG-CMD +/* +stepperAxis cli_StepperAxis(); +GPPSTA cli_GPPSTA(); +*/ + +// CLIG-SM +/* + StepperAxisSM(); +*/ +//-------------------------- END CLIG PLUGS --------------------