class

KNX::TunnelResponse

Inherits BinData < Reference < Object

Constants

AFTER_DESERIALIZE = [] of Nil
BEFORE_SERIALIZE = [] of Nil
ENDIAN = ["big"]
KLASS_NAME = [KNX::TunnelResponse]
PARTS = [{type: "basic", name: header, cls: KNX::Header, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: length, cls: UInt8, onlyif: nil, verify: nil, value: -> do 4 end, endian: nil}, {type: "basic", name: channel_id, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: sequence, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "enum", name: status, cls: typeof(ConnectionError::NoError.value), onlyif: nil, verify: nil, value: nil, encoding: nil, enum_type: KNX::ConnectionError}] of Nil
REMAINING = [] of Nil

Constructors

new(channel_id : Int, sequence : Int)
Source

Class methods

bit_fields
Source

Instance methods

__format__

A group or bit_field captures the endianness at its declaration point, so declaring endian after one would silently leave it system-endian. Fail loudly.

Source
channel_id
channel_id=(channel_id : UInt8)
header
header=(header : Header)
length
length=(length : UInt8)
sequence
sequence=(sequence : UInt8)
status
status=(status : ConnectionError)