diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2020-01-07 15:50:56 -0600 |
---|---|---|
committer | Harsh Sharma <harsh.sharma@multitech.com> | 2020-01-07 15:50:56 -0600 |
commit | c4811dd1b73b37b0916803097237acd31f1df98b (patch) | |
tree | b0d73a975fc7e7de8444775440e0b729fa61d0fa /src/AccessoryCards/LoraCard.cpp | |
parent | 68c0c5ed8ad7c733743de1afc5deb9de862d60f3 (diff) | |
download | mts-io-sysfs-c4811dd1b73b37b0916803097237acd31f1df98b.tar.gz mts-io-sysfs-c4811dd1b73b37b0916803097237acd31f1df98b.tar.bz2 mts-io-sysfs-c4811dd1b73b37b0916803097237acd31f1df98b.zip |
Refactored accessory cards classes with inheritence, fixed Makefile clean, moved some helper functions to header utility
Diffstat (limited to 'src/AccessoryCards/LoraCard.cpp')
-rw-r--r-- | src/AccessoryCards/LoraCard.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/AccessoryCards/LoraCard.cpp b/src/AccessoryCards/LoraCard.cpp new file mode 100644 index 0000000..ba50aa7 --- /dev/null +++ b/src/AccessoryCards/LoraCard.cpp @@ -0,0 +1,23 @@ +/********************************************************************** +* COPYRIGHT 2020 MULTI-TECH SYSTEMS, INC. +* +* ALL RIGHTS RESERVED BY AND FOR THE EXCLUSIVE BENEFIT OF +* MULTI-TECH SYSTEMS, INC. +* +* MULTI-TECH SYSTEMS, INC. - CONFIDENTIAL AND PROPRIETARY +* INFORMATION AND/OR TRADE SECRET. +* +* NOTICE: ALL CODE, PROGRAM, INFORMATION, SCRIPT, INSTRUCTION, +* DATA, AND COMMENT HEREIN IS AND SHALL REMAIN THE CONFIDENTIAL +* INFORMATION AND PROPERTY OF MULTI-TECH SYSTEMS, INC. +* USE AND DISCLOSURE THEREOF, EXCEPT AS STRICTLY AUTHORIZED IN A +* WRITTEN AGREEMENT SIGNED BY MULTI-TECH SYSTEMS, INC. IS PROHIBITED. +* +***********************************************************************/ + +#include "Device.h" + +Device::LoraCard::LoraCard(Device& d, const std::string productId, const std::string port) : AccessoryCard(d) { + spiPath = "/dev/spidev0.0"; + device.capabilityList["lora"] = true; +}
\ No newline at end of file |