XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.

Dependencies:   BufferedArray

Dependents:   MBEDminiproject

Revision:
0:837e6c48e90d
Child:
4:a0f1fba6c2fb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Options/OptionsBase.cpp	Thu Oct 22 12:28:26 2015 +0000
@@ -0,0 +1,35 @@
+#include "OptionsBase.h"
+
+OptionsBase::OptionsBase()
+{
+    value = 0x00;
+}
+
+OptionsBase::OptionsBase(char option)
+{
+    value = option;
+}
+
+OptionsBase OptionsBase::DEFAULT = OptionsBase();
+
+OptionsBase OptionsBase::DisableRetriesRouteRepair = OptionsBase(0x01);
+
+bool OptionsBase::getDisableRetriesRouteRepair()
+{
+    if ((value & 0x01) == 0x01)
+        return true;
+    else return false;
+}
+
+void OptionsBase::setDisableRetriesRouteRepair(bool status)
+{
+    if (status)
+        value |= 0x01;
+    else
+        value &= 0xFE;
+}
+
+char OptionsBase::getValue()
+{
+    return value;
+}
\ No newline at end of file