summaryrefslogtreecommitdiffstats
path: root/rf_test/radio.h
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2024-12-03 18:00:14 +0800
committerSadeep Madurange <sadeep@asciimx.com>2024-12-03 18:00:14 +0800
commitd162d1cfd2421509a8d6933cb93dd80ffeda9cf8 (patch)
tree6236628fd6868f100b039036f020dc485b563874 /rf_test/radio.h
parentab97e3dfbd93a876bf16b74345af1d6b8b3843f1 (diff)
downloadsmart-home-d162d1cfd2421509a8d6933cb93dd80ffeda9cf8.tar.gz
Move the rfm code to separate file.
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