Version FC

Dependencies:   DmTftLibrary eeprom SX1280Lib filesystem mbed

Fork of MSNV2-Terminal_V1-5 by Francis CHATAIN

ChannelValue.hpp

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

File content as of revision 41:5a436163dddf:

#ifndef __CHANNELVALUE_HPP__
#define __CHANNELVALUE_HPP__

#include "Context.h"

class Value;


namespace misnet {
    class ChannelValue;
}


// This class represents a channel value block.
// NB. The term "channel" represents both the channel concept and the index of a service in a payload.
// NB2. For performance reasons, the value is actually a reference to the "value" part of a service.
class misnet::ChannelValue {
    public:

    private:
        uint8_t     _channel;       // Index of the payload channel whose value follows
        Value&      _value;         // Channel value
};

#endif  // __CHANNELVALUE_HPP__