feat(io): Add bitaddress property to IO interfaces
Introduced the `bitaddress` property with read-write access to `Input` and `Output` D-Bus interfaces. Implemented corresponding property methods. Signed-off-by: Sven Sager <s.sager@kunbus.com>
This commit is contained in:
@@ -19,6 +19,7 @@ class InterfaceInput:
|
|||||||
<interface name="com.revolutionpi.ios1.Input">
|
<interface name="com.revolutionpi.ios1.Input">
|
||||||
<property name="address" type="n" access="read"/>
|
<property name="address" type="n" access="read"/>
|
||||||
<property name="bmk" type="s" access="read"/>
|
<property name="bmk" type="s" access="read"/>
|
||||||
|
<property name="bitaddress" type="n" access="readwrite"/>
|
||||||
<property name="byteorder" type="s" access="readwrite"/>
|
<property name="byteorder" type="s" access="readwrite"/>
|
||||||
<property name="defaultvalue" type="v" access="read"/>
|
<property name="defaultvalue" type="v" access="read"/>
|
||||||
<property name="length" type="q" access="read"/>
|
<property name="length" type="q" access="read"/>
|
||||||
@@ -53,6 +54,10 @@ class InterfaceInput:
|
|||||||
def bmk(self) -> str:
|
def bmk(self) -> str:
|
||||||
return self.io.bmk
|
return self.io.bmk
|
||||||
|
|
||||||
|
@property
|
||||||
|
def bitaddress(self) -> int:
|
||||||
|
return self.io._bitaddress
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def byteorder(self) -> str:
|
def byteorder(self) -> str:
|
||||||
return self.io.byteorder
|
return self.io.byteorder
|
||||||
@@ -99,6 +104,7 @@ class InterfaceOutput(InterfaceInput):
|
|||||||
<interface name="com.revolutionpi.ios1.Output">
|
<interface name="com.revolutionpi.ios1.Output">
|
||||||
<property name="address" type="n" access="read"/>
|
<property name="address" type="n" access="read"/>
|
||||||
<property name="bmk" type="s" access="read"/>
|
<property name="bmk" type="s" access="read"/>
|
||||||
|
<property name="bitaddress" type="n" access="readwrite"/>
|
||||||
<property name="byteorder" type="s" access="readwrite"/>
|
<property name="byteorder" type="s" access="readwrite"/>
|
||||||
<property name="defaultvalue" type="v" access="read"/>
|
<property name="defaultvalue" type="v" access="read"/>
|
||||||
<property name="length" type="q" access="read"/>
|
<property name="length" type="q" access="read"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user