summaryrefslogtreecommitdiff
path: root/include/AccessoryCards/AccessoryCardLora15.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/AccessoryCards/AccessoryCardLora15.h')
-rw-r--r--include/AccessoryCards/AccessoryCardLora15.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/AccessoryCards/AccessoryCardLora15.h b/include/AccessoryCards/AccessoryCardLora15.h
new file mode 100644
index 0000000..b1a9d64
--- /dev/null
+++ b/include/AccessoryCards/AccessoryCardLora15.h
@@ -0,0 +1,18 @@
+#ifndef ACCESSORYCARDLORA15_H_
+#define ACCESSORYCARDLORA15_H_
+
+#include "General.h"
+#include "AccessoryCardLora.h"
+
+class AccessoryCardLora15 : private AccessoryCardLora {
+ private:
+ void *spi_target_ptr = NULL;
+ public:
+ AccessoryCardLora15(std::string ProductId, std::string Port);
+ int spiOpen(const char *spidev);
+ int spiRead(uint8_t address, uint8_t *data);
+ int spiClose();
+ uint8_t getFPGAVersion();
+};
+
+#endif /* ACCESSORYCARDLORA15_H_ */