knx
ETS configurable knx-stack
ip_host_protocol_address_information.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstdint>
4 #include "config.h"
5 
6 enum HostProtocolCode : uint8_t
7 {
8  IPV4_UDP = 1,
9  IPV4_TCP = 2
10 };
11 
12 #ifdef USE_IP
13 
14 #define LEN_IPHPAI 8
15 #define LEN_CRD 4
16 
18 {
19  public:
20  IpHostProtocolAddressInformation(uint8_t* data);
21  uint8_t length() const;
22  void length(uint8_t value);
23  HostProtocolCode code() const;
24  void code(HostProtocolCode value);
25  uint32_t ipAddress() const;
26  void ipAddress(uint32_t value);
27  uint16_t ipPortNumber() const;
28  void ipPortNumber(uint16_t value);
29 
30  private:
31  uint8_t* _data;
32 };
33 #endif