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

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 | +--+--------------------+-----------------------+

Class Method Summary

Instance Method Summary

Macro Summary

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) #

[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]

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_cemi(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]