summaryrefslogtreecommitdiff
path: root/firmware/c1224/include/status.h
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-07 18:15:00 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-07 18:15:00 +0000
commitd393e0c30192611d4cac65a5429fd7180ce1f49c (patch)
tree7e47bd930340c75c4802801a81f3bd17c2469d9f /firmware/c1224/include/status.h
Initial pushmain
Diffstat (limited to 'firmware/c1224/include/status.h')
-rw-r--r--firmware/c1224/include/status.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/firmware/c1224/include/status.h b/firmware/c1224/include/status.h
new file mode 100644
index 0000000..fefe6e8
--- /dev/null
+++ b/firmware/c1224/include/status.h
@@ -0,0 +1,23 @@
+#ifndef C1224_STATUS_H
+#define C1224_STATUS_H
+
+#include <stdbool.h>
+
+typedef enum {
+ C1224_STATE_STARTING = 0,
+ C1224_STATE_READY,
+ C1224_STATE_FAULT,
+ C1224_STATE_SENDING,
+ C1224_STATE_SIGNAL, /* CDT active (Signal/RX) */
+ C1224_STATE_PACKET /* RXD packet sense (may coexist with signal) */
+} c1224_state_t;
+
+/** Operator-facing text for state (from INI). */
+const char *c1224_state_string(c1224_state_t st);
+void status_set(c1224_state_t st);
+c1224_state_t status_get(void);
+/** Recompute composite state from PTT + sense; publish if changed. */
+void status_tick(void);
+void status_publish(void);
+
+#endif
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com