diff options
Diffstat (limited to 'rf69/radio.h')
| -rw-r--r-- | rf69/radio.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/rf69/radio.h b/rf69/radio.h new file mode 100644 index 0000000..924da2d --- /dev/null +++ b/rf69/radio.h @@ -0,0 +1,22 @@ +#ifndef RADIO_H +#define RADIO_H + +#include <stdint.h> + +struct radio_cfg { + uint8_t netid; + uint8_t nodeid; + uint8_t payload_len; +}; + +void radio_init(const struct radio_cfg *cfg); + +void radio_set_tx_power(int8_t val); + +void radio_listen(void); + +void radio_send(const char *data, uint8_t n); + +uint8_t radio_recv(char *buf, uint8_t n); + +#endif |
