knx
ETS configurable knx-stack
knx_ip_disconnect_request.cpp
Go to the documentation of this file.
2 #ifdef USE_IP
3 KnxIpDisconnectRequest::KnxIpDisconnectRequest(uint8_t* data, uint16_t length)
4  : KnxIpFrame(data, length), _hpaiCtrl(data + LEN_KNXIP_HEADER + 1 /*ChannelId*/ + 1 /*Reserved*/)
5 {
6 }
7 
9  : KnxIpFrame(1 /*ChannelId*/ + 1 /*Reserved*/ + LEN_KNXIP_HEADER + LEN_IPHPAI), _hpaiCtrl(_data + 1 /*ChannelId*/ + 1 /*Reserved*/ + LEN_KNXIP_HEADER)
10 {
12 }
13 
15 {
16  return _hpaiCtrl;
17 }
19 {
20  return _data[LEN_KNXIP_HEADER];
21 }
22 void KnxIpDisconnectRequest::channelId(uint8_t channelId)
23 {
24  _data[LEN_KNXIP_HEADER] = channelId;
25 }
26 #endif
IpHostProtocolAddressInformation & hpaiCtrl()
uint16_t serviceTypeIdentifier() const
uint8_t * _data
Definition: knx_ip_frame.h:54
@ DisconnectRequest
Definition: knx_ip_frame.h:24