abstract class KNX::Address

Overview

      +-----------------------------------------------+

16 bits | GROUP ADDRESS (2 level) | +-----------------------+-----------------------+ | OCTET 0 (high byte) | OCTET 1 (low byte) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ bits | 7| 6| 5| 4| 3| 2| 1| 0| 7| 6| 5| 4| 3| 2| 1| 0| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | Main Grp | Sub Group | +--+--------------------+-----------------------+

Direct Known Subclasses

Defined in:

knx/address.cr

Constant Summary

AFTER_DESERIALIZE = [] of Nil
      +-----------------------------------------------+

16 bits | GROUP ADDRESS (2 level) | +-----------------------+-----------------------+ | OCTET 0 (high byte) | OCTET 1 (low byte) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ bits | 7| 6| 5| 4| 3| 2| 1| 0| 7| 6| 5| 4| 3| 2| 1| 0| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | Main Grp | Sub Group | +--+--------------------+-----------------------+

BEFORE_SERIALIZE = [] of Nil
      +-----------------------------------------------+

16 bits | GROUP ADDRESS (2 level) | +-----------------------+-----------------------+ | OCTET 0 (high byte) | OCTET 1 (low byte) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ bits | 7| 6| 5| 4| 3| 2| 1| 0| 7| 6| 5| 4| 3| 2| 1| 0| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | Main Grp | Sub Group | +--+--------------------+-----------------------+

ENDIAN = ["big"]
      +-----------------------------------------------+

16 bits | GROUP ADDRESS (2 level) | +-----------------------+-----------------------+ | OCTET 0 (high byte) | OCTET 1 (low byte) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ bits | 7| 6| 5| 4| 3| 2| 1| 0| 7| 6| 5| 4| 3| 2| 1| 0| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | Main Grp | Sub Group | +--+--------------------+-----------------------+

KLASS_NAME = [KNX::Address]
      +-----------------------------------------------+

16 bits | GROUP ADDRESS (2 level) | +-----------------------+-----------------------+ | OCTET 0 (high byte) | OCTET 1 (low byte) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ bits | 7| 6| 5| 4| 3| 2| 1| 0| 7| 6| 5| 4| 3| 2| 1| 0| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | Main Grp | Sub Group | +--+--------------------+-----------------------+

PARTS = [] of Nil
      +-----------------------------------------------+

16 bits | GROUP ADDRESS (2 level) | +-----------------------+-----------------------+ | OCTET 0 (high byte) | OCTET 1 (low byte) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ bits | 7| 6| 5| 4| 3| 2| 1| 0| 7| 6| 5| 4| 3| 2| 1| 0| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | Main Grp | Sub Group | +--+--------------------+-----------------------+

REMAINING = [] of Nil
      +-----------------------------------------------+

16 bits | GROUP ADDRESS (2 level) | +-----------------------+-----------------------+ | OCTET 0 (high byte) | OCTET 1 (low byte) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ bits | 7| 6| 5| 4| 3| 2| 1| 0| 7| 6| 5| 4| 3| 2| 1| 0| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | Main Grp | Sub Group | +--+--------------------+-----------------------+

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

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

[View source]

Class Method Detail

def self.bit_fields #
      +-----------------------------------------------+

16 bits | GROUP ADDRESS (2 level) | +-----------------------+-----------------------+ | OCTET 0 (high byte) | OCTET 1 (low byte) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ bits | 7| 6| 5| 4| 3| 2| 1| 0| 7| 6| 5| 4| 3| 2| 1| 0| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | Main Grp | Sub Group | +--+--------------------+-----------------------+


[View source]
def self.parse(input : Int) #

[View source]
def self.parse(bytes : Bytes) #

[View source]
def self.parse(io : IO) #

[View source]

Macro Detail

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

16 bits | GROUP ADDRESS (2 level) | +-----------------------+-----------------------+ | OCTET 0 (high byte) | OCTET 1 (low byte) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ bits | 7| 6| 5| 4| 3| 2| 1| 0| 7| 6| 5| 4| 3| 2| 1| 0| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | Main Grp | Sub Group | +--+--------------------+-----------------------+


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

16 bits | GROUP ADDRESS (2 level) | +-----------------------+-----------------------+ | OCTET 0 (high byte) | OCTET 1 (low byte) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ bits | 7| 6| 5| 4| 3| 2| 1| 0| 7| 6| 5| 4| 3| 2| 1| 0| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | Main Grp | Sub Group | +--+--------------------+-----------------------+


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

16 bits | GROUP ADDRESS (2 level) | +-----------------------+-----------------------+ | OCTET 0 (high byte) | OCTET 1 (low byte) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ bits | 7| 6| 5| 4| 3| 2| 1| 0| 7| 6| 5| 4| 3| 2| 1| 0| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | Main Grp | Sub Group | +--+--------------------+-----------------------+


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

16 bits | GROUP ADDRESS (2 level) | +-----------------------+-----------------------+ | OCTET 0 (high byte) | OCTET 1 (low byte) | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ bits | 7| 6| 5| 4| 3| 2| 1| 0| 7| 6| 5| 4| 3| 2| 1| 0| +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | Main Grp | Sub Group | +--+--------------------+-----------------------+


[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def group? #

[View source]
def to_i #

[View source]
abstract 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]