diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-07 12:50:46 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-07 13:03:44 +0800 |
| commit | 2a5eaad1bcac0f0ff61bd82b6427932cb4d03872 (patch) | |
| tree | ccf47e934cf154603a7f7f6319ddebe440124570 /lock/nrfm.h | |
| parent | 77c3f8741ff2a8876a3107a68d42397034e6f08a (diff) | |
| download | smart-home-2a5eaad1bcac0f0ff61bd82b6427932cb4d03872.tar.gz | |
Copy working NRFM code.
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 */ |
