summaryrefslogtreecommitdiffstats
path: root/nrfm.h
blob: 22a9b89162b4738fe4e2dc474c89fb576662060f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef NRFM_H
#define NRFM_H

#include <stdint.h>

#define ADDRLEN     3
#define MAXPDLEN   32

void radio_init(const uint8_t rxaddr[ADDRLEN]);

void radio_print_config(void);

void radio_listen(void);

uint8_t radio_recv(char *buf, uint8_t n);

void radio_sendto(const uint8_t addr[ADDRLEN], const char *msg, uint8_t n);

#endif /* NRFM_H */