class KNX::InformationBlock
- KNX::InformationBlock
- BinData
- Reference
- Object
Overview
Generic block
Defined in:
knx/discovery/dib.crConstant Summary
-
ENDIAN =
["big"]
-
Generic block
-
KLASS_NAME =
[KNX::InformationBlock]
-
Generic block
-
PARTS =
[{type: "basic", name: length, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "enum", name: description_type, cls: typeof(DescriptionType::DeviceInformation.value), onlyif: nil, verify: nil, value: nil, encoding: nil, enum_type: KNX::DescriptionType}, {type: "basic", name: device_info, cls: KNX::DIB, onlyif: -> do description_type == DescriptionType::DeviceInformation end, verify: nil, value: nil}, {type: "array", name: supported_services, cls: KNX::ServiceFamily, onlyif: -> do description_type == DescriptionType::SupportedServiceFamilies end, verify: nil, length: -> do (length - 2) // 2 end, value: nil}, {type: "bytes", name: raw_data, cls: Slice(UInt8), onlyif: -> do !({DescriptionType::DeviceInformation, DescriptionType::SupportedServiceFamilies}.includes?(description_type)) end, verify: nil, length: -> do length - 2 end, value: nil}] of Nil
-
Generic block
-
REMAINING =
[] of Nil
-
Generic block
Class Method Summary
-
.bit_fields
Generic block
Instance Method Summary
- #__format__ : IO::ByteFormat
- #description_type : DescriptionType
- #description_type=(description_type : DescriptionType)
- #device_info : DIB
- #device_info=(device_info : DIB)
- #length : UInt8
- #length=(length : UInt8)
-
#raw_data : Bytes
Ignore data for information we can't parse
-
#raw_data=(raw_data : Bytes)
Ignore data for information we can't parse
- #supported_services : Array(KNX::ServiceFamily)
- #supported_services=(supported_services : Array(KNX::ServiceFamily))
Macro Summary
-
knx_address(name, onlyif = nil, verify = nil, value = nil)
Generic block
-
knx_cemi(name, onlyif = nil, verify = nil, value = nil)
Generic block
-
knx_dib(name, onlyif = nil, verify = nil, value = nil)
Generic block
-
knx_group_address(name, onlyif = nil, verify = nil, value = nil)
Generic block
-
knx_group_address2_level(name, onlyif = nil, verify = nil, value = nil)
Generic block
-
knx_header(name, onlyif = nil, verify = nil, value = nil)
Generic block
-
knx_header_timer(name, onlyif = nil, verify = nil, value = nil)
Generic block
-
knx_header_wrapper(name, onlyif = nil, verify = nil, value = nil)
Generic block
-
knx_hpai(name, onlyif = nil, verify = nil, value = nil)
Generic block
-
knx_individual_address(name, onlyif = nil, verify = nil, value = nil)
Generic block
-
knx_information_block(name, onlyif = nil, verify = nil, value = nil)
Generic block
-
knx_service_family(name, onlyif = nil, verify = nil, value = nil)
Generic block
Class Method Detail
Instance Method Detail
Macro Detail
Generic block
Generic block
Generic block
Generic block
Generic block
Generic block