summaryrefslogtreecommitdiffstats
path: root/nrf24l01/radio.h
diff options
context:
space:
mode:
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