1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-27 01:56:14 +01:00
CommandStation-EX/JMRIParser.h
Asbelos b89c9068ff Compileable JMRIParser
Has Turnout, Output Sensor support.
Needs further cleaning and cross checking against spec.
May implement Daves Comms manager etc.
2020-06-03 14:26:49 +01:00

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