blob: 009832f9639f003e66da0a9ae40e700ac912fd82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#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);
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 */
|