diff options
Diffstat (limited to 'lock/nrfm.h')
| -rw-r--r-- | lock/nrfm.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lock/nrfm.h b/lock/nrfm.h new file mode 100644 index 0000000..22a9b89 --- /dev/null +++ b/lock/nrfm.h @@ -0,0 +1,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 */ |
