summaryrefslogtreecommitdiffstats
path: root/rf_test/radio.h
diff options
context:
space:
mode:
Diffstat (limited to 'rf_test/radio.h')
-rw-r--r--rf_test/radio.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/rf_test/radio.h b/rf_test/radio.h
new file mode 100644
index 0000000..fe715b2
--- /dev/null
+++ b/rf_test/radio.h
@@ -0,0 +1,16 @@
+#ifndef RADIO_H
+#define RADIO_H
+
+#include <stdint.h>
+
+struct radio_cfg {
+ uint8_t payload_len;
+};
+
+void radio_init(struct radio_cfg *cfg);
+
+void radio_send(const char *data, uint8_t n);
+
+uint8_t radio_recv(char *buf, uint8_t n);
+
+#endif