knx
ETS configurable knx-stack
ip_host_protocol_address_information.cpp
Go to the documentation of this file.
2 #include "bits.h"
3 #ifdef USE_IP
5  : _data(data)
6 {}
7 
8 
10 {
11  return *_data;
12 }
13 
15 {
16  *_data = value;
17 }
18 
20 {
21  return (HostProtocolCode)_data[1];
22 }
23 
25 {
26  _data[1] = value;
27 }
28 
30 {
31  return getInt(_data + 2);
32 }
33 
35 {
36  pushInt(value, _data + 2);
37 }
38 
40 {
41  return getWord(_data + 6);
42 }
43 
45 {
46  pushWord(value, _data + 6);
47 }
48 #endif
uint8_t * pushInt(uint32_t i, uint8_t *data)
Definition: bits.cpp:72
uint8_t * pushWord(uint16_t w, uint8_t *data)
Definition: bits.cpp:64
uint16_t getWord(const uint8_t *data)
Definition: bits.cpp:91
uint32_t getInt(const uint8_t *data)
Definition: bits.cpp:96