Addresses

Address

class knx_stack.Address

A wrapper to c_uint16.

A common representation for both individual addresses and group addresses.

>>> import knx_stack
>>> g = knx_stack.Address(0x0A)
>>> g.free_style
10
free_style

Structure/Union member

GroupAddress

class knx_stack.GroupAddress

A wrapper to c_uint16.

It has properties to access three level style and two level style group addresses representations.

>>> import knx_stack
>>> g = knx_stack.GroupAddress(three_level_style=knx_stack.address.ThreeLevelStyle(main=1, middle=1, sub=1))
>>> hex(g.free_style)
'0x901'
>>> g.two_level_style.main
1
>>> g.three_level_style.middle
1
>>> g
(0x0901 1/257 1/1/1)
>>> g = knx_stack.GroupAddress(free_style=0x1202)
>>> hex(g.free_style)
'0x1202'
>>> g.two_level_style.main
2
>>> g.three_level_style.middle
2
>>> g
(0x1202 2/514 2/2/2)
free_style

Structure/Union member

three_level_style

Structure/Union member

two_level_style

Structure/Union member

TwoLevelStyle

class knx_stack.address.TwoLevelStyle
main

Structure/Union member

sub

Structure/Union member

ThreeLevelStyle

class knx_stack.address.ThreeLevelStyle
main

Structure/Union member

middle

Structure/Union member

sub

Structure/Union member