aboutsummaryrefslogtreecommitdiff
path: root/nrf24l01p/nrf.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-03-22 14:06:38 +0100
committerKarel Kočí <cynerd@email.cz>2015-03-22 14:06:38 +0100
commitbc781d73f00dc60aab4f04a8676deb34fbf724d4 (patch)
treeda5b12f4ac7c30df42731724029b3ef382b8042d /nrf24l01p/nrf.h
parent6664647efb75075f967680b82944710e15ec9ce9 (diff)
downloadavr-ioe-bc781d73f00dc60aab4f04a8676deb34fbf724d4.tar.gz
avr-ioe-bc781d73f00dc60aab4f04a8676deb34fbf724d4.tar.bz2
avr-ioe-bc781d73f00dc60aab4f04a8676deb34fbf724d4.zip
Prepare for nrf24l01p
Diffstat (limited to 'nrf24l01p/nrf.h')
-rw-r--r--nrf24l01p/nrf.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/nrf24l01p/nrf.h b/nrf24l01p/nrf.h
new file mode 100644
index 0000000..9dcf572
--- /dev/null
+++ b/nrf24l01p/nrf.h
@@ -0,0 +1,24 @@
+#include <inttypes.h>
+
+#include "config.h"
+
+#if (defined IOE_NRF_SPI)
+#include "../spi.h"
+#elif (defined IOE_NRF_USI)
+#include "../spi_usi.h"
+#elif (defined IOE_NRF_USART)
+#include "../spi_usart.h"
+#endif
+
+#ifndef _IOE_NRF_H_
+#define _IOE_NRF_H_
+
+void ioe_nrf_init(void);
+
+void ioe_nrf_set_address();
+int ioe_nrf_ready(void);
+void ioe_nrf_joint(void);
+void ioe_nrf_transmit(int8_t);
+int8_t ioe_nrf_retrieve(void);
+
+#endif /* _IOE_NRF_H_ */