diff options
author | Mike Fiore <mfiore@multitech.com> | 2015-11-20 10:08:28 -0600 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2015-11-20 10:08:28 -0600 |
commit | 4166bbd0ff84397f31d4928c2ebe6d9a57c3694d (patch) | |
tree | c8dcffee0c9c26a34883bf6d7ab7b2b7051291e3 /Mode/Mode.h | |
parent | 5634a9576e46c0c89e3b0c876d5ecf7b7e70c067 (diff) | |
download | mtdot-box-evb-factory-firmware-4166bbd0ff84397f31d4928c2ebe6d9a57c3694d.tar.gz mtdot-box-evb-factory-firmware-4166bbd0ff84397f31d4928c2ebe6d9a57c3694d.tar.bz2 mtdot-box-evb-factory-firmware-4166bbd0ff84397f31d4928c2ebe6d9a57c3694d.zip |
refactor more common elements into Mode template class
Diffstat (limited to 'Mode/Mode.h')
-rw-r--r-- | Mode/Mode.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Mode/Mode.h b/Mode/Mode.h index ac5d839..903d9c8 100644 --- a/Mode/Mode.h +++ b/Mode/Mode.h @@ -3,6 +3,8 @@ #include "DOGS102.h" #include "ButtonHandler.h" +#include "mDot.h" +#include "LoRaHandler.h" #include "GPSPARSER.h" class Mode { @@ -29,7 +31,7 @@ class Mode { uint8_t power; } DataItem; - Mode(DOGS102* lcd, ButtonHandler* buttons); + Mode(DOGS102* lcd, ButtonHandler* buttons, mDot* dot, LoRaHandler* lora); ~Mode(); virtual bool start() = 0; @@ -40,9 +42,20 @@ class Mode { DOGS102* _lcd; ButtonHandler* _buttons; - uint32_t _index; + mDot* _dot; + LoRaHandler* _lora; osThreadId _main_id; static const char* _file_name; + uint32_t _index; + uint8_t _band; + uint8_t _sub_band; + uint8_t _data_rate; + uint8_t _power; + uint32_t _next_tx; + ButtonHandler::ButtonEvent _be; + LoRaHandler::LoRaStatus _ls; + uint8_t _state; + bool _send_data; }; #endif |