From d162d1cfd2421509a8d6933cb93dd80ffeda9cf8 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Tue, 3 Dec 2024 18:00:14 +0800 Subject: Move the rfm code to separate file. --- rf_test/radio.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 rf_test/radio.h (limited to 'rf_test/radio.h') 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 + +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 -- cgit v1.2.3