knx
ETS configurable knx-stack
knx_ip_tunneling_request.cpp
Go to the documentation of this file.
2 #include <cstring>
3 
4 #ifdef USE_IP
6  uint16_t length) : KnxIpFrame(data, length), _frame(data + LEN_CH + headerLength(), length - LEN_CH - headerLength()), _ch(_data + headerLength())
7 {
8 }
9 
11  : KnxIpFrame(frame.totalLenght() + LEN_CH + LEN_KNXIP_HEADER), _frame(_data + LEN_CH + LEN_KNXIP_HEADER, frame.totalLenght()), _ch(_data + LEN_KNXIP_HEADER)
12 {
14  memcpy(_data + LEN_KNXIP_HEADER + LEN_CH, frame.data(), frame.totalLenght());
15 }
16 
18 {
19  return _frame;
20 }
21 
23 {
24  return _ch;
25 }
26 #endif
uint8_t * data()
Definition: cemi_frame.cpp:195
uint16_t totalLenght() const
Definition: cemi_frame.cpp:136
uint16_t serviceTypeIdentifier() const
uint8_t * _data
Definition: knx_ip_frame.h:54
KnxIpTunnelingRequest(uint8_t *data, uint16_t length)
@ TunnelingRequest
Definition: knx_ip_frame.h:30