2020-06-04 21:55:18 +02:00
|
|
|
#ifndef DCCEXParser_h
|
|
|
|
#define DCCEXParser_h
|
|
|
|
struct DCCEXParser
|
2020-05-25 14:38:18 +02:00
|
|
|
{
|
2020-05-25 20:59:47 +02:00
|
|
|
static void parse(Stream & stream,const char * command);
|
2020-06-03 15:26:49 +02:00
|
|
|
|
2020-05-25 14:38:18 +02:00
|
|
|
private:
|
2020-06-03 15:26:49 +02:00
|
|
|
|
|
|
|
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
|
2020-05-25 14:38:18 +02:00
|
|
|
};
|
2020-06-03 15:26:49 +02:00
|
|
|
|
|
|
|
#define BOARD_NAME "not yet configured"
|
2020-05-27 10:40:12 +02:00
|
|
|
#endif
|