36 lines
913 B
C
36 lines
913 B
C
|
|
/*!
|
|
* \todo should be mdcommon.h
|
|
*/
|
|
|
|
|
|
#define MAX_CMD_ARGS 20
|
|
#define N_EPP_VERBS 9
|
|
#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
|
|
|
|
#define OTHERCLIENT 2
|
|
|
|
|
|
enum md_datagrams {
|
|
|
|
HEARTBEAT,
|
|
TELEMETRY
|
|
|
|
};
|
|
|
|
typedef
|
|
struct mdHB {
|
|
char msgType;
|
|
char deviceType;
|
|
int msgId;
|
|
} MDHB;
|