class KNX::GroupAddress

Defined in:

knx/address.cr

Constant Summary

AFTER_DESERIALIZE = [] of Nil
BEFORE_SERIALIZE = [] of Nil
ENDIAN = ["big"]
KLASS_NAME = [KNX::GroupAddress]
PARTS = [{type: "bitfield", name: 2, cls: KNX::GroupAddress, onlyif: nil, verify: nil}, {type: "basic", name: sub_group, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}] of Nil
REMAINING = [] of Nil

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Instance methods inherited from class KNX::Address

__format__ : IO::ByteFormat __format__, group? group?, to_i to_i, to_s : String to_s

Constructor methods inherited from class KNX::Address

parse(address : String) : Address parse

Class methods inherited from class KNX::Address

bit_fields bit_fields, parse(input : Int)
parse(bytes : Bytes)
parse(io : IO)
parse

Macros inherited from class KNX::Address

knx_address(name, onlyif = nil, verify = nil, value = nil) knx_address, knx_header(name, onlyif = nil, verify = nil, value = nil) knx_header, knx_header_timer(name, onlyif = nil, verify = nil, value = nil) knx_header_timer, knx_header_wrapper(name, onlyif = nil, verify = nil, value = nil) knx_header_wrapper

Constructor Detail

def self.parse(address : String) : self #

[View source]

Class Method Detail

def self.bit_fields #

[View source]
def self.parse_friendly(string) #

[View source]

Macro Detail

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

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

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

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

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

[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def _reserved_ : UInt8 #

def _reserved_=(_reserved_ : UInt8) #

def main_group : UInt8 #

def main_group=(main_group : UInt8) #

def middle_group : UInt8 #

def middle_group=(middle_group : UInt8) #

def sub_group : UInt8 #

def sub_group=(sub_group : UInt8) #

def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]