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
static
void
init(
volatile
RegisterList
*,
volatile
RegisterList
*,
CurrentMonitor
*);
32
static
void
parse(
char
*);
33
static
void
process();
34
};
// TextCommand
35
36
#endif
37
#endif
38
39
40
41
CurrentMonitor
Definition:
CurrentMonitor.h:27
RegisterList
Definition:
PacketRegister.h:36
TextCommand
Definition:
TextCommand.h:29
src
TextCommand.h
Generated on mar. janv. 9 2018 20:54:46 for DCCpp by
1.2.10