Jean Mercier / Mbed 2 deprecated jmStepperAxis

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers jmStepperAxis.h Source File

jmStepperAxis.h

00001 /*************************************************************************
00002  * @file    jmStepperAxis.h
00003  * @brief   
00004  *             .
00005  * @version 1.0
00006  * @date    Feb 12, 2011
00007  */
00008 
00009 /*
00010    * Module Command Line Interface 
00011      Format: command name (arg info)min..max values [optional argument]
00012 
00013 
00014    * Module Events
00015 
00016    *  Module Feedback and Help messages may be enabled/disabled by Command Lines.
00017          feedback (enable/disable)0..1
00018          help (enable/disable)0..1
00019 
00020 */
00021 
00022 #ifndef jmStepperAxisdef
00023   #define jmStepperAxisdef 1
00024 
00025   #define stepperAxisQty 4 // 4 steppers max 
00026 
00027   #include "LPC17xx.h"
00028 
00029   // Module Data Structure
00030   extern struct StructStepperAxis{
00031    uint8_t active;    
00032    uint8_t limitCW;  
00033    uint8_t limitCCW; 
00034    uint8_t stepperID; 
00035    uint8_t status;  
00036  }sStepperAxis[stepperAxisQty];
00037 
00038 #endif
00039 
00040 // Module Prototypes
00041 void StepperAxisInit(void);
00042 void StepperAxisSM(void);
00043 void cli_StepperAxis(void);
00044 void rGPPSTA(unsigned int id );
00045 void cli_GPPSTA(void);
00046 
00047 //-------------------------- CLIG PLUGS --------------------
00048 // CLIG-INCLUDE
00049 /*
00050 #include "jmStepperAxis.h"
00051 */
00052 
00053 // CLIG-INIT
00054 /*
00055    StepperAxisInit();
00056 */
00057 
00058 // CLIG-NEEDS
00059 /*
00060 jmStepper
00061 jmSwitch
00062 */
00063 
00064 // CLIG-CMD
00065 /*
00066 stepperAxis cli_StepperAxis();
00067 GPPSTA cli_GPPSTA();
00068 */
00069 
00070 // CLIG-SM
00071 /*
00072      StepperAxisSM();
00073 */
00074 //-------------------------- END CLIG PLUGS --------------------