Command all jmCLIG modules from serial port

Committer:
jm
Date:
Sat Feb 12 16:50:25 2011 +0000
Revision:
0:9112e09912db
jmAll Command Line Interface Module

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jm 0:9112e09912db 1 /*************************************************************************
jm 0:9112e09912db 2 * @file jmStepperAxis.h
jm 0:9112e09912db 3 * @brief
jm 0:9112e09912db 4 * .
jm 0:9112e09912db 5 * @version 1.0
jm 0:9112e09912db 6 * @date Feb 12, 2011
jm 0:9112e09912db 7 */
jm 0:9112e09912db 8
jm 0:9112e09912db 9 /*
jm 0:9112e09912db 10 * Module Command Line Interface
jm 0:9112e09912db 11 Format: command name (arg info)min..max values [optional argument]
jm 0:9112e09912db 12
jm 0:9112e09912db 13
jm 0:9112e09912db 14 * Module Events
jm 0:9112e09912db 15
jm 0:9112e09912db 16 * Module Feedback and Help messages may be enabled/disabled by Command Lines.
jm 0:9112e09912db 17 feedback (enable/disable)0..1
jm 0:9112e09912db 18 help (enable/disable)0..1
jm 0:9112e09912db 19
jm 0:9112e09912db 20 */
jm 0:9112e09912db 21
jm 0:9112e09912db 22 #ifndef jmStepperAxisdef
jm 0:9112e09912db 23 #define jmStepperAxisdef 1
jm 0:9112e09912db 24
jm 0:9112e09912db 25 #define stepperAxisQty 4 // 4 steppers max
jm 0:9112e09912db 26
jm 0:9112e09912db 27 #include "LPC17xx.h"
jm 0:9112e09912db 28
jm 0:9112e09912db 29 // Module Data Structure
jm 0:9112e09912db 30 extern struct StructStepperAxis{
jm 0:9112e09912db 31 uint8_t active;
jm 0:9112e09912db 32 uint8_t limitCW;
jm 0:9112e09912db 33 uint8_t limitCCW;
jm 0:9112e09912db 34 uint8_t stepperID;
jm 0:9112e09912db 35 uint8_t status;
jm 0:9112e09912db 36 }sStepperAxis[stepperAxisQty];
jm 0:9112e09912db 37
jm 0:9112e09912db 38 #endif
jm 0:9112e09912db 39
jm 0:9112e09912db 40 // Module Prototypes
jm 0:9112e09912db 41 void StepperAxisInit(void);
jm 0:9112e09912db 42 void StepperAxisSM(void);
jm 0:9112e09912db 43 void cli_StepperAxis(void);
jm 0:9112e09912db 44 void rGPPSTA(unsigned int id );
jm 0:9112e09912db 45 void cli_GPPSTA(void);
jm 0:9112e09912db 46
jm 0:9112e09912db 47 //-------------------------- CLIG PLUGS --------------------
jm 0:9112e09912db 48 // CLIG-INCLUDE
jm 0:9112e09912db 49 /*
jm 0:9112e09912db 50 #include "jmStepperAxis.h"
jm 0:9112e09912db 51 */
jm 0:9112e09912db 52
jm 0:9112e09912db 53 // CLIG-INIT
jm 0:9112e09912db 54 /*
jm 0:9112e09912db 55 StepperAxisInit();
jm 0:9112e09912db 56 */
jm 0:9112e09912db 57
jm 0:9112e09912db 58 // CLIG-NEEDS
jm 0:9112e09912db 59 /*
jm 0:9112e09912db 60 jmStepper
jm 0:9112e09912db 61 jmSwitch
jm 0:9112e09912db 62 */
jm 0:9112e09912db 63
jm 0:9112e09912db 64 // CLIG-CMD
jm 0:9112e09912db 65 /*
jm 0:9112e09912db 66 stepperAxis cli_StepperAxis();
jm 0:9112e09912db 67 GPPSTA cli_GPPSTA();
jm 0:9112e09912db 68 */
jm 0:9112e09912db 69
jm 0:9112e09912db 70 // CLIG-SM
jm 0:9112e09912db 71 /*
jm 0:9112e09912db 72 StepperAxisSM();
jm 0:9112e09912db 73 */
jm 0:9112e09912db 74 //-------------------------- END CLIG PLUGS --------------------