+ /* Settings not from SmartRF® Studio. Setting both sync word registers to
+ * 0xAA = 0b10101010, i.e., the same as the preamble pattern. Not necessary,
+ * but gives control of what the radio attempts to transmit.
+ */
+
+ //These sync values are better for jamming, but they break reception.
+ //SYNC1 = 0xAA;
+ //SYNC0 = 0xAA;
+
+#define RFON RFST = RFST_SIDLE; RFST = RFST_STX; while ((MARCSTATE & MARCSTATE_MARC_STATE) != MARC_STATE_TX);
+#define RFOFF RFST = RFST_SIDLE; //while ((MARCSTATE & MARCSTATE_MARC_STATE) != MARC_STATE_IDLE);
+ //RFON;
+ //while(1);