Version FC

Dependencies:   DmTftLibrary eeprom SX1280Lib filesystem mbed

Fork of MSNV2-Terminal_V1-5 by Francis CHATAIN

SMTClearMessagePart.hpp

Committer:
FCH_31
Date:
2018-10-22
Revision:
41:5a436163dddf
Parent:
24:92c30dabfda4

File content as of revision 41:5a436163dddf:

#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__