class

KNX::ObjectServer::ObjectHeader

Inherits BinData < Reference < Object

Constants

AFTER_DESERIALIZE = [] of Nil
BEFORE_SERIALIZE = [] of Nil
ENDIAN = ["big"]
PARTS = [{type: "basic", name: main_service, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: sub_service, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: start_item, cls: UInt16, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: item_count, cls: UInt16, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "enum", name: _filter, cls: typeof(Filter::ValidValues.value), onlyif: -> do filter end, verify: nil, value: -> do filter ? filter : _filter end, encoding: nil, enum_type: KNX::ObjectServer::Filter}, {type: "enum", name: error, cls: typeof(Error::NoError.value), onlyif: -> do item_count == 0 end, verify: nil, value: nil, encoding: nil, enum_type: KNX::ObjectServer::Error}, {type: "array", name: items, cls: KNX::ObjectServer::Item, container: Array(KNX::ObjectServer::Item), onlyif: nil, verify: nil, length: -> do item_count end, value: nil}] of Nil
REMAINING = [] of Nil

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
_filter
_filter=(_filter : Filter)
error
error=(error : Error)
filter
Source
filter=(filter : Filter | Nil)
Source
item_count
item_count=(item_count : UInt16)
items

Requests or Statuses

items=(items : Array(KNX::ObjectServer::Item))

Requests or Statuses

main_service
main_service=(main_service : UInt8)
start_item
start_item=(start_item : UInt16)
sub_service
sub_service=(sub_service : UInt8)