knx/src/knx/knx_ip_dib.h
2019-12-28 00:29:17 +01:00

32 lines
527 B
C++

#pragma once
#include <cstdint>
#include "config.h"
#ifdef USE_IP
enum DescriptionTypeCode : uint8_t
{
DEVICE_INFO = 0x01,
SUPP_SVC_FAMILIES = 0x02,
IP_CONFIG = 0x03,
IP_CUR_CONFIG = 0x04,
KNX_ADDRESSES = 0x05,
MFR_DATA = 0xFE
};
class KnxIpDIB
{
public:
KnxIpDIB(uint8_t* data);
virtual ~KnxIpDIB();
DescriptionTypeCode code() const;
void code(DescriptionTypeCode value);
uint8_t length() const;
void length(uint8_t value);
protected:
uint8_t* _data = 0;
};
#endif