Version FC
Dependencies: DmTftLibrary eeprom SX1280Lib filesystem mbed
Fork of MSNV2-Terminal_V1-5 by
Diff: SMTClearMessagePart.hpp
- Revision:
- 24:92c30dabfda4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SMTClearMessagePart.hpp Tue Sep 11 21:45:52 2018 +0000 @@ -0,0 +1,28 @@ +#ifndef __SMTCLEARMESSAGEPART_HPP__ +#define __SMTCLEARMESSAGEPART_HPP__ + +#include "Context.h" + + +#include "ClearMessagePart.hpp" + + +namespace misnet { + class SMTClearMessagePart; +} + + +class misnet::SMTClearMessagePart : virtual public ClearMessagePart { + public: + SMTClearMessagePart(uint16_t smtId) : ClearMessagePart((uint16_t) ClearMessagePart::SMART_TOOL), + _smtId(smtId & SMART_TOOL_ID_MASK) { + this->_buffer += smtId & SMART_TOOL_ID_MASK; + } + + private: + static const uint16_t SMART_TOOL_ID_MASK = 0x3FFF; + + uint16_t _smtId; // Smart Tool identifier +}; + +#endif // __SMTCLEARMESSAGEPART_HPP__