summaryrefslogtreecommitdiffstats
path: root/nrfm.h
blob: 7c3803143559d7d97e89c3a176d9afc25f6e0f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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_flush_rx(void);

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

#endif /* NRFM_H */