summaryrefslogtreecommitdiffstats
path: root/lock/nrfm.h
blob: 5f33e866a09788d1cc7645489247ff07896e4c88 (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);

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

#endif /* NRFM_H */