summaryrefslogtreecommitdiffstats
path: root/lock/nrfm.h
blob: 52d4edb911feaa3b7609e43eee382c7bfb6c7a42 (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_listen(void);

void radio_pwr_dwn(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 */