summaryrefslogtreecommitdiff
path: root/map65/libm65/ptt.h
diff options
context:
space:
mode:
Diffstat (limited to 'map65/libm65/ptt.h')
-rw-r--r--map65/libm65/ptt.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/map65/libm65/ptt.h b/map65/libm65/ptt.h
new file mode 100644
index 00000000..150c1545
--- /dev/null
+++ b/map65/libm65/ptt.h
@@ -0,0 +1,19 @@
+#ifndef MAP65_PTT_H
+#define MAP65_PTT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Device loss resets logical PTT but does not confirm physical release. */
+enum { PTT_OK = 0, PTT_ERROR = 1, PTT_DEVICE_LOST = 2 };
+
+int ptt_(int *nport, int *ntx, int *iptt);
+void ptt_close(void);
+void ptt_set_override(const char *path);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif