mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-30 03:26:13 +01:00
0ad395a63a
but remains untested
27 lines
751 B
C++
27 lines
751 B
C++
#ifndef DCCEXParser_h
|
|
#define DCCEXParser_h
|
|
struct DCCEXParser
|
|
{
|
|
static void parse(Stream & stream,const char * command);
|
|
|
|
private:
|
|
|
|
static const int MAX_PARAMS=10; // longest command sent in
|
|
|
|
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 int stashP[MAX_PARAMS];
|
|
static bool stashBusy;
|
|
static Stream & stashStream;
|
|
static bool stashCallback(Stream & stream, int p[MAX_PARAMS]);
|
|
static void callback_W(int result);
|
|
static void callback_B(int result);
|
|
static void callback_R(int result);
|
|
|
|
};
|
|
|
|
#define BOARD_NAME "not yet configured"
|
|
#endif
|