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 
15 #ifdef USE_TEXTCOMMAND
16 
17 #include "PacketRegister.h"
18 #include "CurrentMonitor.h"
19 
20 #define MAX_COMMAND_LENGTH 30
21 
26 struct TextCommand{
27  static char commandString[MAX_COMMAND_LENGTH+1];
28  static void init(volatile RegisterList *, volatile RegisterList *, CurrentMonitor *);
29  static void parse(char *);
30  static void process();
31 }; // TextCommand
32 
33 #endif
34 #endif
35 
36 
37 
38