Committer:
yangcq88517
Date:
Wed Mar 30 20:44:56 2016 +0000
Revision:
9:6e4ef3c302b4
Parent:
8:4da2ac03e35e
Address.cpp static broadcast variable fix

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yangcq88517 8:4da2ac03e35e 1 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_Tx16TransmitOptions
yangcq88517 8:4da2ac03e35e 2 #define UK_AC_HERTS_SMARTLAB_XBEE_Tx16TransmitOptions
yangcq88517 8:4da2ac03e35e 3
yangcq88517 8:4da2ac03e35e 4 #include "OptionsBase.h"
yangcq88517 8:4da2ac03e35e 5
yangcq88517 8:4da2ac03e35e 6 class Tx16TransmitOptions : public OptionsBase
yangcq88517 8:4da2ac03e35e 7 {
yangcq88517 8:4da2ac03e35e 8
yangcq88517 8:4da2ac03e35e 9 //0x01 - Disable retries and route repair
yangcq88517 8:4da2ac03e35e 10 //0x02 - Force a long header to precede this packet
yangcq88517 8:4da2ac03e35e 11 //0x04 - Disable Sending of long header
yangcq88517 8:4da2ac03e35e 12 //0x08 - Invoke Traceroute
yangcq88517 8:4da2ac03e35e 13
yangcq88517 8:4da2ac03e35e 14 public:
yangcq88517 8:4da2ac03e35e 15 static Tx16TransmitOptions * ForceLongHeader;
yangcq88517 8:4da2ac03e35e 16
yangcq88517 8:4da2ac03e35e 17 static Tx16TransmitOptions * DisableLongHeader;
yangcq88517 8:4da2ac03e35e 18
yangcq88517 8:4da2ac03e35e 19 static Tx16TransmitOptions * InvokeTraceroute;
yangcq88517 8:4da2ac03e35e 20
yangcq88517 8:4da2ac03e35e 21 Tx16TransmitOptions();
yangcq88517 8:4da2ac03e35e 22
yangcq88517 8:4da2ac03e35e 23 Tx16TransmitOptions(unsigned char value);
yangcq88517 8:4da2ac03e35e 24
yangcq88517 8:4da2ac03e35e 25 Tx16TransmitOptions(bool disable_retries_and_route_repair, bool force_long_header, bool disable_long_header, bool invoke_traceroute);
yangcq88517 8:4da2ac03e35e 26
yangcq88517 8:4da2ac03e35e 27 bool getForceLongHeader();
yangcq88517 8:4da2ac03e35e 28
yangcq88517 8:4da2ac03e35e 29 void setForceLongHeader(bool status);
yangcq88517 8:4da2ac03e35e 30
yangcq88517 8:4da2ac03e35e 31 bool getDisableLongHeader();
yangcq88517 8:4da2ac03e35e 32
yangcq88517 8:4da2ac03e35e 33 void setDisableLongHeader(bool status);
yangcq88517 8:4da2ac03e35e 34
yangcq88517 8:4da2ac03e35e 35 bool getInvokeTraceroute();
yangcq88517 8:4da2ac03e35e 36
yangcq88517 8:4da2ac03e35e 37 void setInvokeTraceroute(bool status);
yangcq88517 8:4da2ac03e35e 38 };
yangcq88517 8:4da2ac03e35e 39
yangcq88517 8:4da2ac03e35e 40 #endif