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 #ifdef ARDUINO_ARCH_AVR
11 #ifndef TextCommand_h
12 #define TextCommand_h
13 
14 #include "DCCpp.h"
15 
19 #ifdef USE_TEXTCOMMAND
20 
21 #include "PacketRegister.h"
22 #include "CurrentMonitor.h"
23 
24 #define MAX_COMMAND_LENGTH 30
25 
30 struct TextCommand{
31  static char commandString[MAX_COMMAND_LENGTH+1];
32  static void init(volatile RegisterList *, volatile RegisterList *, CurrentMonitor *);
33  static void parse(char *);
34  static void process();
35 }; // TextCommand
36 
37 #endif
38 #endif
39 #endif