DCCpp
This is the library version of a program for Arduino to control railroading DCC devices.
TextCommand.h
1 /**********************************************************************
2 
3 SerialCommand.h
4 COPYRIGHT (c) 2013-2016 Gregg E. Berman
5 
6 Part of DCC++ BASE STATION for the Arduino
7 
8 **********************************************************************/
9 
10 #ifndef TextCommand_h
11 #define TextCommand_h
12 
13 #include "DCCpp.h"
14 
18 #ifdef USE_TEXTCOMMAND
19 
20 #include "PacketRegister.h"
21 #include "CurrentMonitor.h"
22 
23 #define MAX_COMMAND_LENGTH 30
24 
29 struct TextCommand{
30  static char commandString[MAX_COMMAND_LENGTH+1];
31 
32  static void init(volatile RegisterList *, volatile RegisterList *, CurrentMonitor *);
37  static bool parse(char *com);
40  static void process();
41 }; // TextCommand
42 
43 #endif
44 #endif
static void process()
Definition: TextCommand.cpp:37
static bool parse(char *com)