mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-29 08:46:11 +02:00
0.8.99
* fix compilation of all environments
This commit is contained in:
parent
f47cb107f3
commit
d5ed0272e9
4 changed files with 29 additions and 3 deletions
|
@ -959,3 +959,24 @@ index c029c8e..c9d612a 100644
|
|||
-#endif // __RF24_H__
|
||||
\ No newline at end of file
|
||||
+#endif // __RF24_H__
|
||||
diff --git a/RF24_hal.h b/RF24_hal.h
|
||||
new file mode 100644
|
||||
index 0000000..baceab3
|
||||
--- /dev/null
|
||||
+++ b/RF24_hal.h
|
||||
@@ -0,0 +1,15 @@
|
||||
+#pragma once
|
||||
+
|
||||
+#include "RF24_config.h"
|
||||
+
|
||||
+class RF24_hal
|
||||
+{
|
||||
+public:
|
||||
+ virtual void ce(bool level) = 0;
|
||||
+ virtual uint8_t read(uint8_t cmd, uint8_t* buf, uint8_t len) = 0;
|
||||
+ virtual uint8_t read(uint8_t cmd, uint8_t* buf, uint8_t data_len, uint8_t blank_len) = 0;
|
||||
+ virtual uint8_t write(uint8_t cmd, const uint8_t* buf, uint8_t len) = 0;
|
||||
+ virtual uint8_t write(uint8_t cmd, const uint8_t* buf, uint8_t len, uint8_t blank_len) = 0;
|
||||
+ virtual bool begin() = 0;
|
||||
+ virtual void end() = 0;
|
||||
+};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue