DRDE/AusRegCliever/include/mdconstants.h

36 lines
913 B
C
Raw Normal View History

2014-01-03 07:51:51 +00:00
/*!
* \todo should be mdcommon.h
*/
2014-01-13 01:29:22 +00:00
#define MAX_CMD_ARGS 20
#define N_EPP_VERBS 9
2014-01-03 07:51:51 +00:00
#define INSTRUMENT 1
#define MD_DATAGRAM_RESPONSE_SIZE 16 // First three bytes after header are ACK or NAK
#define MD_DEFAULT_RULE 0
// Our rendering of SCPI-99
// Custom behaviors greater than this
#define MD_EPOCH date()
#define MD_HEARTBEAT 1 // Network peer heartbeat in seconds.
#define MD_HEARTBEAT_SIZE 8 // Network peer heartbeat in seconds.
#define MD_VERSION " 1.0 "
#define MD_REFRESH 10 // default milliseconds between telemetry frame updates
2014-01-13 01:29:22 +00:00
#define OTHERCLIENT 2
2014-01-03 07:51:51 +00:00
enum md_datagrams {
HEARTBEAT,
TELEMETRY
};
typedef
struct mdHB {
char msgType;
char deviceType;
int msgId;
} MDHB;