mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 01:56:14 +01:00
b89c9068ff
Has Turnout, Output Sensor support. Needs further cleaning and cross checking against spec. May implement Daves Comms manager etc.
18 lines
452 B
C++
18 lines
452 B
C++
#ifndef JMRIParser_h
|
|
#define JMRIParser_h
|
|
struct JMRIParser
|
|
{
|
|
static void parse(Stream & stream,const char * command);
|
|
|
|
private:
|
|
|
|
static bool parseT(Stream & stream, int params, int p[]);
|
|
static bool parseZ(Stream & stream, int params, int p[]);
|
|
static bool parseS(Stream & stream, int params, int p[]);
|
|
|
|
static const int MAX_PARAMS=10; // longest command sent in
|
|
};
|
|
|
|
#define BOARD_NAME "not yet configured"
|
|
#endif
|