class KNX::HPAI

Overview

Host Protocol Address Information

Defined in:

knx/discovery/hpai.cr

Constant Summary

AFTER_DESERIALIZE = [] of Nil

Host Protocol Address Information

BEFORE_SERIALIZE = [] of Nil

Host Protocol Address Information

ENDIAN = ["big"]

Host Protocol Address Information

KLASS_NAME = [KNX::HPAI]

Host Protocol Address Information

LENGTH = 8
PARTS = [{type: "basic", name: length, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "enum", name: protocol, cls: typeof(ProtocolType::IPv4UDP.value), onlyif: nil, verify: nil, value: nil, encoding: nil, enum_type: KNX::ProtocolType}, {type: "bytes", name: ip_addr, cls: Slice(UInt8), onlyif: nil, verify: nil, length: -> do 4 end, value: nil}, {type: "basic", name: port, cls: UInt16, onlyif: nil, verify: nil, value: nil, endian: nil}] of Nil

Host Protocol Address Information

REMAINING = [] of Nil

Host Protocol Address Information

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ip : Socket::IPAddress) #

[View source]

Class Method Detail

def self.bit_fields #

Host Protocol Address Information


[View source]

Macro Detail

macro knx_address(name, onlyif = nil, verify = nil, value = nil) #

Host Protocol Address Information


[View source]
macro knx_cemi(name, onlyif = nil, verify = nil, value = nil) #

Host Protocol Address Information


[View source]
macro knx_group_address(name, onlyif = nil, verify = nil, value = nil) #

Host Protocol Address Information


[View source]
macro knx_group_address2_level(name, onlyif = nil, verify = nil, value = nil) #

Host Protocol Address Information


[View source]
macro knx_header(name, onlyif = nil, verify = nil, value = nil) #

Host Protocol Address Information


[View source]
macro knx_header_timer(name, onlyif = nil, verify = nil, value = nil) #

Host Protocol Address Information


[View source]
macro knx_header_wrapper(name, onlyif = nil, verify = nil, value = nil) #

Host Protocol Address Information


[View source]
macro knx_hpai(name, onlyif = nil, verify = nil, value = nil) #

Host Protocol Address Information


[View source]
macro knx_individual_address(name, onlyif = nil, verify = nil, value = nil) #

Host Protocol Address Information


[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def ip_addr : Bytes #

def ip_addr=(ip_addr : Bytes) #

def ip_address #

[View source]
def ip_address=(address : String) #

[View source]
def ip_address=(ip : Socket::IPAddress) #

[View source]
def length : UInt8 #

def length=(length : UInt8) #

def port : UInt16 #

def port=(port : UInt16) #

def protocol : ProtocolType #

def protocol=(protocol : ProtocolType) #