knx
ETS configurable knx-stack
knx_ip_state_response.cpp
Go to the documentation of this file.
2 #ifdef USE_IP
3 
4 #define LEN_SERVICE_FAMILIES 2
5 #if MASK_VERSION == 0x091A
6  #ifdef KNX_TUNNELING
7  #define LEN_SERVICE_DIB (2 + 4 * LEN_SERVICE_FAMILIES)
8  #else
9  #define LEN_SERVICE_DIB (2 + 3 * LEN_SERVICE_FAMILIES)
10  #endif
11 #else
12  #ifdef KNX_TUNNELING
13  #define LEN_SERVICE_DIB (2 + 3 * LEN_SERVICE_FAMILIES)
14  #else
15  #define LEN_SERVICE_DIB (2 + 2 * LEN_SERVICE_FAMILIES)
16  #endif
17 #endif
18 
19 KnxIpStateResponse::KnxIpStateResponse(uint8_t channelId, uint8_t errorCode)
20  : KnxIpFrame(LEN_KNXIP_HEADER + 2)
21 {
23  _data[LEN_KNXIP_HEADER] = channelId;
24  _data[LEN_KNXIP_HEADER + 1] = errorCode;
25 }
26 #endif
uint16_t serviceTypeIdentifier() const
uint8_t * _data
Definition: knx_ip_frame.h:54
KnxIpStateResponse(uint8_t channelId, uint8_t errorCode)
@ ConnectionStateResponse
Definition: knx_ip_frame.h:23