summaryrefslogtreecommitdiffstats
path: root/rf_test/radio.h
blob: f016659a52bdf77cfcdb200843d1259eb44418d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef RADIO_H
#define RADIO_H

#include <stdint.h>

struct radio_cfg {
	uint8_t node_id;
	uint8_t network_id;
	uint8_t payload_len;
};

void radio_init(const struct radio_cfg *cfg);

void radio_send(const char *data, uint8_t n);

uint8_t radio_recv(char *buf, uint8_t n);

#endif