32 lines
724 B
C
32 lines
724 B
C
/**********************************************************************
|
|
|
|
SerialCommand.h
|
|
COPYRIGHT (c) 2013-2016 Gregg E. Berman
|
|
|
|
Part of DCC++ BASE STATION for the Arduino
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef SerialCommand_h
|
|
#define SerialCommand_h
|
|
|
|
#include "PacketRegister.h"
|
|
#include "CurrentMonitor.h"
|
|
|
|
#define MAX_COMMAND_LENGTH 30
|
|
|
|
struct SerialCommand{
|
|
static char commandString[MAX_COMMAND_LENGTH+1];
|
|
static volatile RegisterList *mRegs, *pRegs;
|
|
static CurrentMonitor *mMonitor;
|
|
static void init(volatile RegisterList *, volatile RegisterList *, CurrentMonitor *);
|
|
static void parse(char *);
|
|
static void process();
|
|
}; // SerialCommand
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|