![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork to see if I can get working
Dependencies: BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated
Fork of xDotBridge_update_test20180823 by
xDotBridge/inc/SerialTermMgr.h
- Committer:
- Matt Briggs
- Date:
- 2017-05-10
- Revision:
- 75:600cb3a9f126
- Child:
- 76:d1b20a259d8f
File content as of revision 75:600cb3a9f126:
/* * SerialTermMgr.h * * Created on: May 8, 2017 * Author: mbriggs */ #ifndef XDOTBRIDGE_INC_SERIALTERMMGR_H_ #define XDOTBRIDGE_INC_SERIALTERMMGR_H_ #include "mbed.h" #include "BaseboardIO.h" const uint8_t TERM_TIMEOUT = 30; // In seconds enum ScreenId { mainScreenId, genInfoScreenId, settingsScreenId, statsScreenId, errorLogScreenId, liveLogScreenId, enterSerialBridgeScreenId, enterProgModeScreenId }; class SerialTermMgr { private: ScreenId mCurrScreen; // Current selection float mFwVersion; BaseboardIO *mBbio; // Handle for reading states Serial *mPc; bool inputMainPage(char in); void printMainScreen(); void inputGenInfo (char in); void printGenInfo(); public: SerialTermMgr(BaseboardIO *bbio, float fwVersion); void regSerial (Serial *pc) { mPc = pc; } ScreenId getCurrentScreenId() { return mCurrScreen; } void printScreen(); bool input(); }; #endif /* XDOTBRIDGE_INC_SERIALTERMMGR_H_ */