summaryrefslogtreecommitdiffstats
path: root/nRF24L01/radio.h
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-02-01 11:25:19 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-02-01 11:25:19 +0800
commit50deb9d280254c8e17624b368ea778f69dd86767 (patch)
tree5ca1724ebdee3ff2a786dc37b6cc266ba9cb0585 /nRF24L01/radio.h
parenta7644c020c4c2b72fc0f13aeea4be47ba08f1961 (diff)
downloadsmart-home-50deb9d280254c8e17624b368ea778f69dd86767.tar.gz
Start work on nRF24L01.
Diffstat (limited to 'nRF24L01/radio.h')
-rw-r--r--nRF24L01/radio.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/nRF24L01/radio.h b/nRF24L01/radio.h
new file mode 100644
index 0000000..a44d67e
--- /dev/null
+++ b/nRF24L01/radio.h
@@ -0,0 +1,19 @@
+#ifndef RADIO_H
+#define RADIO_H
+
+#include <stdint.h>
+
+struct radio_cfg {
+ uint8_t netid;
+ uint8_t nodeid;
+};
+
+void radio_init(const struct radio_cfg *cfg);
+
+void radio_listen(void);
+
+void radio_send(const char *data, uint8_t n);
+
+uint8_t radio_recv(char *buf, uint8_t n);
+
+#endif