summaryrefslogtreecommitdiff
path: root/include/AccessoryCards/AccessoryCardLora15.h
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2019-12-19 11:53:10 -0600
committerHarsh Sharma <harsh.sharma@multitech.com>2019-12-19 11:53:10 -0600
commit8ce2b9763c880084fd9d38fae6033e487fde58d9 (patch)
tree8b77e3d0c5f24bb8ba4b9ade6298684781a91665 /include/AccessoryCards/AccessoryCardLora15.h
downloadmts-io-sysfs-8ce2b9763c880084fd9d38fae6033e487fde58d9.tar.gz
mts-io-sysfs-8ce2b9763c880084fd9d38fae6033e487fde58d9.tar.bz2
mts-io-sysfs-8ce2b9763c880084fd9d38fae6033e487fde58d9.zip
Initial commit
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_ */