-
-static void
-radio_cmac_recv_cmd(void) __reentrant
-{
- uint8_t len, i;
- uint16_t timeout;
-
- ao_cmd_decimal();
- if (ao_cmd_status != ao_cmd_success)
- return;
- len = ao_cmd_lex_i;
- ao_cmd_decimal();
- if (ao_cmd_status != ao_cmd_success)
- return;
- timeout = AO_MS_TO_TICKS(ao_cmd_lex_i);
- i = ao_radio_cmac_recv(cmac_data, len, timeout);
- if (i == AO_RADIO_CMAC_OK) {
- printf ("PACKET ");
- for (i = 0; i < len; i++)
- printf("%02x", cmac_data[i]);
- printf (" %d\n", ao_radio_cmac_rssi);
- } else
- printf ("ERROR %d %d\n", i, ao_radio_cmac_rssi);
-}
-
-static __code struct ao_cmds ao_lco_cmds[] = {
- { radio_cmac_send_cmd, "s <length>\0Send AES-CMAC packet. Bytes to send follow on next line" },
- { radio_cmac_recv_cmd, "S <length> <timeout>\0Receive AES-CMAC packet. Timeout in ms" },
- { launch_report_cmd, "l <serial> <channel>\0Get remote launch status" },
- { launch_fire_cmd, "f <serial> <channel> <secs>\0Fire remote igniter" },
- { launch_arm_cmd, "a <serial> <channel>\0Arm remote igniter" },
- { launch_ignite_cmd, "i <serial> <channel>\0Pulse remote igniter" },
+#endif
+
+static const struct ao_cmds ao_lco_cmds[] = {
+ { lco_report_cmd, "l <box> <channel>\0Get remote status" },
+ { lco_fire_cmd, "F <box> <channel> <secs>\0Fire remote igniters" },
+#if HAS_STATIC_TEST
+ { lco_static_cmd, "S <box> <channel> <secs>\0Initiate static test" },
+ { lco_endstatic_cmd, "D\0End static test (and download someday)" },
+#endif
+ { lco_arm_cmd, "a <box> <channel>\0Arm remote igniter" },
+ { lco_ignite_cmd, "i <box> <channel>\0Pulse remote igniter" },