![](/media/cache/profiles/0f0ee3310223fe38a989b2c818709393.50x50_q85.jpg)
Generate up to 8 different digital waeforms from serial port
jmCommands.c
- Committer:
- jm
- Date:
- 2011-02-12
- Revision:
- 0:374d47623fab
File content as of revision 0:374d47623fab:
/** @file jmCommands.c * Auto Generated by jmCLIG * Saturday, February 12, 2011 10:43 AM * @version 2011.01.05 */ #include "main.h" #include "jmCommands.h" #include "jmMessages.h" #include "jmRingBuffer.h" #include "jmPulse.h" const char jmCLIG[] = {"\njmCLIG Version 2011.01.05 \nInstance Saturday, February 12, 2011 10:43 AM\n"}; // Command Name Table const char cmdNames[]= { 'l','i','s','t',0, 'v','e','r',0, 'h','e','l','p',0, 'f','e','e','d','b','a','c','k',0, 'e','c','h','o',0, 'p','u','l','s','e',0, 'p','u','l','s','e','I','n','i','t',0, 'p','u','l','s','e','S','t','o','p',0, 'G','P','P','P','0',0, 'i','n','i','t',0, 0 }; // Section Definitions #define list 0 #define ver 1 #define help 2 #define feedback 3 #define echo 4 #define pulse 5 #define pulseInit 6 #define pulseStop 7 #define GPPP0 8 #define init 9 /*********************************************************************** * @brief Command steering * Command Associated with Command Number is Executed * @param[in] cmdNum Command Number * @return none **********************************************************************/ void Action(int cmdNum){ switch(cmdNum){ case list : cli_list(); break; case ver : cli_version(); break; case help : cli_help(); break; case feedback : cli_feedback(); break; case echo : cli_echo(); break; case pulse : cli_Pulse(); break; case pulseInit : PulseInit(); break; case pulseStop : cli_PulseStop(); break; case GPPP0 : cli_GPPP0(); break; case init : Inits(); break; default : UnknownCommand(); NextCommand(nl,pLine); } }