IntIOCounter Klasse erweitert mit ioctl Aufruf

Devices erzeugen IntIOCounter-Objekt, wenn Counteradresse gefunden wird
DioModule Klasse wird für DIO / DI / DO verwendet und ermöglicht Counterreset
This commit is contained in:
2018-12-08 20:29:50 +01:00
parent 1e309091e8
commit fc23394298
10 changed files with 186 additions and 21 deletions

View File

@@ -33,6 +33,9 @@ Classes</h3>
<td><a style="color:#0000FF" href="#DeviceList">DeviceList</a></td>
<td>Basisklasse fuer direkten Zugriff auf Device Objekte.</td>
</tr><tr>
<td><a style="color:#0000FF" href="#DioModule">DioModule</a></td>
<td>Stellt ein DIO / DI / DO Modul dar.</td>
</tr><tr>
<td><a style="color:#0000FF" href="#Gateway">Gateway</a></td>
<td>Klasse fuer die RevPi Gateway-Devices.</td>
</tr><tr>
@@ -1076,6 +1079,51 @@ Attributobjekt
</dl>
<div align="right"><a style="color:#0000FF" href="#top">Up</a></div>
<hr /><hr />
<a NAME="DioModule" ID="DioModule"></a>
<h2 style="background-color:#FFFFFF;color:#0000FF">DioModule</h2>
<p>
Stellt ein DIO / DI / DO Modul dar.
</p>
<h3 style="background-color:#FFFFFF;color:#FF0000">
Derived from</h3>
Device
<h3 style="background-color:#FFFFFF;color:#FF0000">
Class Attributes</h3>
<table>
<tr><td>__slots__</td></tr>
</table>
<h3 style="background-color:#FFFFFF;color:#FF0000">
Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3 style="background-color:#FFFFFF;color:#FF0000">
Methods</h3>
<table>
<tr>
<td><a style="color:#0000FF" href="#DioModule.__init__">DioModule</a></td>
<td>Erweitert Device-Klasse zum Erkennen von IntIOCounter.</td>
</tr>
</table>
<h3 style="background-color:#FFFFFF;color:#FF0000">
Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="DioModule.__init__" ID="DioModule.__init__"></a>
<h3 style="background-color:#FFFFFF;color:#FF0000">
DioModule (Constructor)</h3>
<b>DioModule</b>(<i>parentmodio, dict_device, simulator=False</i>)
<p>
Erweitert Device-Klasse zum Erkennen von IntIOCounter.
</p><dl>
<dt><b>See Also:</b></dt>
<dd>
<a style="color:#0000FF" href="#Device.__init__">Device.__init__(...)</a>
</dd>
</dl>
<div align="right"><a style="color:#0000FF" href="#top">Up</a></div>
<hr /><hr />
<a NAME="Gateway" ID="Gateway"></a>
<h2 style="background-color:#FFFFFF;color:#0000FF">Gateway</h2>
<p>

View File

@@ -851,6 +851,9 @@ Class Methods</h3>
Methods</h3>
<table>
<tr>
<td><a style="color:#0000FF" href="#IntIOCounter.__init__">IntIOCounter</a></td>
<td>Instantiierung der IntIOCounter-Klasse.</td>
</tr><tr>
<td><a style="color:#0000FF" href="#IntIOCounter.reset">reset</a></td>
<td>Setzt den Counter des Inputs zurueck.</td>
</tr>
@@ -860,7 +863,23 @@ Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="IntIOCounter.reset" ID="IntIOCounter.reset"></a>
<a NAME="IntIOCounter.__init__" ID="IntIOCounter.__init__"></a>
<h3 style="background-color:#FFFFFF;color:#FF0000">
IntIOCounter (Constructor)</h3>
<b>IntIOCounter</b>(<i>counter_id, parentdevice, valuelist, iotype, byteorder, signed</i>)
<p>
Instantiierung der IntIOCounter-Klasse.
</p><dl>
<dt><i>counter_id</i></dt>
<dd>
ID fuer den Counter, zu dem der IO gehoert (0-15)
</dd>
</dl><dl>
<dt><b>See Also:</b></dt>
<dd>
<a style="color:#0000FF" href="#IOBase.__init__">IOBase.__init__(...)</a>
</dd>
</dl><a NAME="IntIOCounter.reset" ID="IntIOCounter.reset"></a>
<h3 style="background-color:#FFFFFF;color:#FF0000">
IntIOCounter.reset</h3>
<b>reset</b>(<i></i>)