51_RPI_GPIO.pm: corrections in commandref

git-svn-id: https://svn.fhem.de/fhem/trunk@8570 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klauswitt 2015-05-12 20:35:19 +00:00
parent 489dbe0eda
commit b41e6f9a8a
8 changed files with 37 additions and 15 deletions

View File

@ -536,6 +536,7 @@ sub RPII2C_HWACCESS_ioctl($$) {
<a name="RPII2C"></a> <a name="RPII2C"></a>
<h3>RPII2C</h3> <h3>RPII2C</h3>
(en | <a href="commandref_DE.html#RPII2C">de</a>)
<ul> <ul>
<a name="RPII2C"></a> <a name="RPII2C"></a>
Provides access to Raspberry Pi's I2C interfaces for some logical modules and also directly.<br> Provides access to Raspberry Pi's I2C interfaces for some logical modules and also directly.<br>
@ -682,6 +683,7 @@ sub RPII2C_HWACCESS_ioctl($$) {
<a name="RPII2C"></a> <a name="RPII2C"></a>
<h3>RPII2C</h3> <h3>RPII2C</h3>
(<a href="commandref.html#RPII2C">en</a> | de)
<ul> <ul>
<a name="RPII2C"></a> <a name="RPII2C"></a>
Erm&ouml;glicht den Zugriff auf die I2C Schnittstellen des Raspberry Pi, BBB, Cubie &uuml;ber logische Module. Register von I2C IC's k&ouml;nnen auch direkt gelesen und geschrieben werden.<br><br> Erm&ouml;glicht den Zugriff auf die I2C Schnittstellen des Raspberry Pi, BBB, Cubie &uuml;ber logische Module. Register von I2C IC's k&ouml;nnen auch direkt gelesen und geschrieben werden.<br><br>

View File

@ -629,6 +629,7 @@ sub RPI_GPIO_inthandling($$) { #start/stop Interrupthandling
<a name="RPI_GPIO"></a> <a name="RPI_GPIO"></a>
<h3>RPI_GPIO</h3> <h3>RPI_GPIO</h3>
(en | <a href="commandref_DE.html#RPI_GPIO">de</a>)
<ul> <ul>
<a name="RPI_GPIO"></a> <a name="RPI_GPIO"></a>
Raspberry Pi offers direct access to several GPIO via header P1 (and P5 on V2). The Pinout is shown in table under define. Raspberry Pi offers direct access to several GPIO via header P1 (and P5 on V2). The Pinout is shown in table under define.
@ -718,7 +719,6 @@ sub RPI_GPIO_inthandling($$) { #start/stop Interrupthandling
Examples: Examples:
<pre> <pre>
define Pin12 RPI_GPIO 18 define Pin12 RPI_GPIO 18
attr Pin12
attr Pin12 poll_interval 5 attr Pin12 poll_interval 5
</pre> </pre>
</ul> </ul>
@ -818,6 +818,7 @@ sub RPI_GPIO_inthandling($$) { #start/stop Interrupthandling
<a name="RPI_GPIO"></a> <a name="RPI_GPIO"></a>
<h3>RPI_GPIO</h3> <h3>RPI_GPIO</h3>
(<a href="commandref.html#RPI_GPIO">en</a> | de)
<ul> <ul>
<a name="RPI_GPIO"></a> <a name="RPI_GPIO"></a>
Das Raspberry Pi erm&ouml;glicht direkten Zugriff zu einigen GPIO's &uuml;ber den Pfostenstecker P1 (und P5 bei V2). Die Steckerbelegung ist in den Tabellen unter Define zu finden. Das Raspberry Pi erm&ouml;glicht direkten Zugriff zu einigen GPIO's &uuml;ber den Pfostenstecker P1 (und P5 bei V2). Die Steckerbelegung ist in den Tabellen unter Define zu finden.
@ -907,7 +908,6 @@ sub RPI_GPIO_inthandling($$) { #start/stop Interrupthandling
Beispiele: Beispiele:
<pre> <pre>
define Pin12 RPI_GPIO 18 define Pin12 RPI_GPIO 18
attr Pin12
attr Pin12 poll_interval 5 attr Pin12 poll_interval 5
</pre> </pre>
</ul> </ul>

View File

@ -58,8 +58,11 @@ sub I2C_MCP23008_Initialize($) {
$hash->{GetFn} = "I2C_MCP23008_Get"; $hash->{GetFn} = "I2C_MCP23008_Get";
$hash->{I2CRecFn} = "I2C_MCP23008_I2CRec"; $hash->{I2CRecFn} = "I2C_MCP23008_I2CRec";
$hash->{AttrList} = "IODev do_not_notify:1,0 ignore:1,0 showtime:1,0". $hash->{AttrList} = "IODev do_not_notify:1,0 ignore:1,0 showtime:1,0".
"poll_interval OutputPorts ". "poll_interval OnStartup ".
"Pullup invert_input Interrupt OnStartup ". "OutputPorts:multiple-strict,A0,A1,A2,A3,A4,A5,A6,A7 ".
"Pullup:multiple-strict,A0,A1,A2,A3,A4,A5,A6,A7 ".
"invert_input:multiple-strict,A0,A1,A2,A3,A4,A5,A6,A7 ".
"Interrupt:multiple-strict,A0,A1,A2,A3,A4,A5,A6,A7 ".
"InterruptOut:separate_active-low,separate_active-high,separate_open-drain ". "InterruptOut:separate_active-low,separate_active-high,separate_open-drain ".
"$readingFnAttributes"; "$readingFnAttributes";
} }
@ -490,6 +493,7 @@ sub I2C_MCP23008_UpdReadings($$$) { #nach Rueckmeldung read
<a name="I2C_MCP23008"></a> <a name="I2C_MCP23008"></a>
<h3>I2C_MCP23008</h3> <h3>I2C_MCP23008</h3>
(en | <a href="commandref_DE.html#I2C_MCP23008">de</a>)
<ul> <ul>
<a name="I2C_MCP23008"></a> <a name="I2C_MCP23008"></a>
Provides an interface to the MCP23008 16 channel port extender IC. On Raspberry Pi the Interrupt Pin's can be connected to an GPIO and <a href="#RPI_GPIO">RPI_GPIO</a> can be used to get the port values if an interrupt occurs.<br> Provides an interface to the MCP23008 16 channel port extender IC. On Raspberry Pi the Interrupt Pin's can be connected to an GPIO and <a href="#RPI_GPIO">RPI_GPIO</a> can be used to get the port values if an interrupt occurs.<br>
@ -590,6 +594,7 @@ sub I2C_MCP23008_UpdReadings($$$) { #nach Rueckmeldung read
<a name="I2C_MCP23008"></a> <a name="I2C_MCP23008"></a>
<h3>I2C_MCP23008</h3> <h3>I2C_MCP23008</h3>
(<a href="commandref.html#I2C_MCP23008">en</a> | de)
<ul> <ul>
<a name="I2C_MCP23008"></a> <a name="I2C_MCP23008"></a>
Erm&ouml;glicht die Verwendung eines MCP23008 I2C 8 Bit Portexenders. Erm&ouml;glicht die Verwendung eines MCP23008 I2C 8 Bit Portexenders.

View File

@ -61,8 +61,11 @@ sub I2C_MCP23017_Initialize($) {
$hash->{GetFn} = "I2C_MCP23017_Get"; $hash->{GetFn} = "I2C_MCP23017_Get";
$hash->{I2CRecFn} = "I2C_MCP23017_I2CRec"; $hash->{I2CRecFn} = "I2C_MCP23017_I2CRec";
$hash->{AttrList} = "IODev do_not_notify:1,0 ignore:1,0 showtime:1,0". $hash->{AttrList} = "IODev do_not_notify:1,0 ignore:1,0 showtime:1,0".
"poll_interval OutputPorts ". "poll_interval OnStartup ".
"Pullup invert_input Interrupt OnStartup ". "OutputPorts:multiple-strict,A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,B2,B3,B4,B5,B6,B7 ".
"Pullup:multiple-strict,A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,B2,B3,B4,B5,B6,B7 ".
"invert_input:multiple-strict,A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,B2,B3,B4,B5,B6,B7 ".
"Interrupt:multiple-strict,A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,B2,B3,B4,B5,B6,B7 ".
"InterruptOut:separate_active-low,separate_active-high,separate_open-drain,connected_active-low,connected_active-high,connected_open-drain ". "InterruptOut:separate_active-low,separate_active-high,separate_open-drain,connected_active-low,connected_active-high,connected_open-drain ".
"$readingFnAttributes"; "$readingFnAttributes";
} }
@ -491,6 +494,7 @@ sub I2C_MCP23017_UpdReadings($$$) { #nach Rueckmeldung read
<a name="I2C_MCP23017"></a> <a name="I2C_MCP23017"></a>
<h3>I2C_MCP23017</h3> <h3>I2C_MCP23017</h3>
(en | <a href="commandref_DE.html#I2C_MCP23017">de</a>)
<ul> <ul>
<a name="I2C_MCP23017"></a> <a name="I2C_MCP23017"></a>
Provides an interface to the MCP23017 16 channel port extender IC. On Raspberry Pi the Interrupt Pin's can be connected to an GPIO and <a href="#RPI_GPIO">RPI_GPIO</a> can be used to get the port values if an interrupt occurs.<br> Provides an interface to the MCP23017 16 channel port extender IC. On Raspberry Pi the Interrupt Pin's can be connected to an GPIO and <a href="#RPI_GPIO">RPI_GPIO</a> can be used to get the port values if an interrupt occurs.<br>
@ -600,6 +604,7 @@ sub I2C_MCP23017_UpdReadings($$$) { #nach Rueckmeldung read
<a name="I2C_MCP23017"></a> <a name="I2C_MCP23017"></a>
<h3>I2C_MCP23017</h3> <h3>I2C_MCP23017</h3>
(<a href="commandref.html#I2C_MCP23017">en</a> | de)
<ul> <ul>
<a name="I2C_MCP23017"></a> <a name="I2C_MCP23017"></a>
Erm&ouml;glicht die Verwendung eines MCP23017 I2C 16 Bit Portexenders. Erm&ouml;glicht die Verwendung eines MCP23017 I2C 16 Bit Portexenders.

View File

@ -336,6 +336,7 @@ sub I2C_MCP342x_readvoltage($@) {
<a name="I2C_MCP342x"></a> <a name="I2C_MCP342x"></a>
<h3>I2C_MCP342x</h3> <h3>I2C_MCP342x</h3>
(en | <a href="commandref_DE.html#I2C_MCP342x">de</a>)
<ul> <ul>
<a name="I2C_MCP342x"></a> <a name="I2C_MCP342x"></a>
Provides an interface to the MCP3422/3/4 A/D converter. Provides an interface to the MCP3422/3/4 A/D converter.
@ -393,6 +394,7 @@ sub I2C_MCP342x_readvoltage($@) {
<a name="I2C_MCP342x"></a> <a name="I2C_MCP342x"></a>
<h3>I2C_MCP342x</h3> <h3>I2C_MCP342x</h3>
(<a href="commandref.html#I2C_MCP342x">en</a> | de)
<ul> <ul>
<a name="I2C_MCP342x"></a> <a name="I2C_MCP342x"></a>
Erm&ouml;glicht die Verwendung eines MCP3422/3/4 I2C A/D Wandler. Erm&ouml;glicht die Verwendung eines MCP3422/3/4 I2C A/D Wandler.

View File

@ -47,7 +47,8 @@ sub I2C_PCA9532_Initialize($) {
$hash->{GetFn} = "I2C_PCA9532_Get"; $hash->{GetFn} = "I2C_PCA9532_Get";
$hash->{I2CRecFn} = "I2C_PCA9532_I2CRec"; $hash->{I2CRecFn} = "I2C_PCA9532_I2CRec";
$hash->{AttrList} = "IODev do_not_notify:1,0 ignore:1,0 showtime:1,0". $hash->{AttrList} = "IODev do_not_notify:1,0 ignore:1,0 showtime:1,0".
"poll_interval T0:slider,0,1,255 T1:slider,0,1,255 OutputPorts OnStartup InputPorts ". "poll_interval T0:slider,0,1,255 T1:slider,0,1,255 OnStartup InputPorts ".
"OutputPorts:multiple-strict,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 ".
"$readingFnAttributes"; "$readingFnAttributes";
} }
############################################################################### ###############################################################################
@ -443,6 +444,7 @@ sub I2C_PCA9532_UpdReadings($$$) {
<a name="I2C_PCA9532"></a> <a name="I2C_PCA9532"></a>
<h3>I2C_PCA9532</h3> <h3>I2C_PCA9532</h3>
(en | <a href="commandref_DE.html#I2C_PCA9532">de</a>)
<ul> <ul>
<a name="I2C_PCA9532"></a> <a name="I2C_PCA9532"></a>
Provides an interface to the PCA9532 I2C 16 channel PWM IC. Provides an interface to the PCA9532 I2C 16 channel PWM IC.
@ -507,7 +509,7 @@ sub I2C_PCA9532_UpdReadings($$$) {
<li>OnStartup<br> <li>OnStartup<br>
Comma separated list of output ports/PWM registers and their desired state after start<br> Comma separated list of output ports/PWM registers and their desired state after start<br>
Without this atribut all output ports will set to last state<br> Without this atribut all output ports will set to last state<br>
Default: -, valid values: <port>=on|off|PWM0|PWM1|last or PWM0|PWM1=0..255|last where <port> = 0 - 15<br><br> Default: -, valid values: &lt;port&gt;=on|off|PWM0|PWM1|last or PWM0|PWM1=0..255|last where &lt;port&gt; = 0 - 15<br><br>
</li> </li>
<li>T0/T1<br> <li>T0/T1<br>
Sets PWM0/PWM1 to another Frequency. The Formula is: Fx = 152/(Tx + 1) The corresponding frequency value is shown under internals.<br> Sets PWM0/PWM1 to another Frequency. The Formula is: Fx = 152/(Tx + 1) The corresponding frequency value is shown under internals.<br>
@ -527,6 +529,7 @@ sub I2C_PCA9532_UpdReadings($$$) {
<a name="I2C_PCA9532"></a> <a name="I2C_PCA9532"></a>
<h3>I2C_PCA9532</h3> <h3>I2C_PCA9532</h3>
(<a href="commandref.html#I2C_PCA9532">en</a> | de)
<ul> <ul>
<a name="I2C_PCA9532"></a> <a name="I2C_PCA9532"></a>
Erm&ouml;glicht die Verwendung eines PCA9532 I2C 16 Kanal PWM IC. Erm&ouml;glicht die Verwendung eines PCA9532 I2C 16 Kanal PWM IC.
@ -591,7 +594,7 @@ sub I2C_PCA9532_UpdReadings($$$) {
<li>OnStartup<br> <li>OnStartup<br>
Durch Komma getrennte Output Ports/PWM Register und ihr gew&uuml;nschter Status nach dem Start.<br> Durch Komma getrennte Output Ports/PWM Register und ihr gew&uuml;nschter Status nach dem Start.<br>
Ohne dieses Attribut werden alle Ausg&auml;nge nach dem Start auf den letzten Status gesetzt.<br> Ohne dieses Attribut werden alle Ausg&auml;nge nach dem Start auf den letzten Status gesetzt.<br>
Standard: -, g&uuml;ltige Werte: <port>=on|off|PWM0|PWM1|last oder PWM0|PWM1=0..255|last wobei <port> = 0 - 15<br><br> Standard: -, g&uuml;ltige Werte: &lt;port&gt;=on|off|PWM0|PWM1|last oder PWM0|PWM1=0..255|last wobei &lt;port&gt; = 0 - 15<br><br>
</li> </li>
<li>T0/T1<br> <li>T0/T1<br>
&Auml;nderung der Frequenzwerte von PWM0/PWM1 nach der Formel: Fx = 152/(Tx + 1). Der entsprechende Frequenzwert wird unter Internals angezeigt.<br> &Auml;nderung der Frequenzwerte von PWM0/PWM1 nach der Formel: Fx = 152/(Tx + 1). Der entsprechende Frequenzwert wird unter Internals angezeigt.<br>

View File

@ -26,7 +26,8 @@ sub I2C_PCF8574_Initialize($) {
$hash->{ParseFn} = "I2C_PCF8574_Parse"; $hash->{ParseFn} = "I2C_PCF8574_Parse";
$hash->{I2CRecFn} = "I2C_PCF8574_I2CRec"; $hash->{I2CRecFn} = "I2C_PCF8574_I2CRec";
$hash->{AttrList} = "IODev do_not_notify:1,0 ignore:1,0 showtime:1,0 ". $hash->{AttrList} = "IODev do_not_notify:1,0 ignore:1,0 showtime:1,0 ".
"poll_interval InputPorts OnStartup ". "poll_interval OnStartup ".
"InputPorts:multiple-strict,0,1,2,3,4,5,6,7 ".
"$readingFnAttributes"; "$readingFnAttributes";
} }
################################### ###################################
@ -339,6 +340,7 @@ sub I2C_PCF8574_Parse($$) { #wird ueber dispatch vom physical device aufgerufen
<a name="I2C_PCF8574"></a> <a name="I2C_PCF8574"></a>
<h3>I2C_PCF8574</h3> <h3>I2C_PCF8574</h3>
(en | <a href="commandref_DE.html#I2C_PCF8574">de</a>)
<ul> <ul>
<a name="I2C_PCF8574"></a> <a name="I2C_PCF8574"></a>
Provides an interface to the PCA9532 8 channel port extender IC. On Raspberry Pi the Interrupt Pin can be connected to an GPIO and <a href="#RPI_GPIO">RPI_GPIO</a> can be used to get the port values if an interrupt occurs.<br> Provides an interface to the PCA9532 8 channel port extender IC. On Raspberry Pi the Interrupt Pin can be connected to an GPIO and <a href="#RPI_GPIO">RPI_GPIO</a> can be used to get the port values if an interrupt occurs.<br>
@ -398,7 +400,7 @@ sub I2C_PCF8574_Parse($$) { #wird ueber dispatch vom physical device aufgerufen
<li>OnStartup<br> <li>OnStartup<br>
Comma separated list of output ports and their desired state after start<br> Comma separated list of output ports and their desired state after start<br>
Without this atribut all output ports will set to last state<br> Without this atribut all output ports will set to last state<br>
Default: -, valid values: <port>=on|off|last where <port> = 0 - 7<br><br> Default: -, valid values: &lt;port&gt;=on|off|last where &lt;port&gt; = 0 - 7<br><br>
</li> </li>
<li><a href="#IODev">IODev</a></li> <li><a href="#IODev">IODev</a></li>
<li><a href="#ignore">ignore</a></li> <li><a href="#ignore">ignore</a></li>
@ -414,6 +416,7 @@ sub I2C_PCF8574_Parse($$) { #wird ueber dispatch vom physical device aufgerufen
<a name="I2C_PCF8574"></a> <a name="I2C_PCF8574"></a>
<h3>I2C_PCF8574</h3> <h3>I2C_PCF8574</h3>
(<a href="commandref.html#I2C_PCF8574">en</a> | de)
<ul> <ul>
<a name="I2C_PCF8574"></a> <a name="I2C_PCF8574"></a>
Erm&ouml;glicht die Verwendung eines PCF8574 I2C 8 Bit Portexenders. Erm&ouml;glicht die Verwendung eines PCF8574 I2C 8 Bit Portexenders.
@ -474,7 +477,7 @@ sub I2C_PCF8574_Parse($$) { #wird ueber dispatch vom physical device aufgerufen
<li>OnStartup<br> <li>OnStartup<br>
Durch Komma getrennte Output Ports und ihr gew&uuml;nschter Status nach dem Start.<br> Durch Komma getrennte Output Ports und ihr gew&uuml;nschter Status nach dem Start.<br>
Ohne dieses Attribut werden alle Ausg&auml;nge nach dem Start auf den letzten Status gesetzt.<br> Ohne dieses Attribut werden alle Ausg&auml;nge nach dem Start auf den letzten Status gesetzt.<br>
Standard: -, g&uuml;ltige Werte: <port>=on|off|last wobei <port> = 0 - 7<br><br> Standard: -, g&uuml;ltige Werte: &lt;port&gt;=on|off|last wobei &lt;port&gt; = 0 - 7<br><br>
</li> </li>
<li><a href="#IODev">IODev</a></li> <li><a href="#IODev">IODev</a></li>
<li><a href="#ignore">ignore</a></li> <li><a href="#ignore">ignore</a></li>

View File

@ -275,6 +275,7 @@ sub I2C_SHT21_readHumidity($) {
<a name="I2C_SHT21"></a> <a name="I2C_SHT21"></a>
<h3>I2C_SHT21</h3> <h3>I2C_SHT21</h3>
(en | <a href="commandref_DE.html#I2C_SHT21">de</a>)
<ul> <ul>
<a name="I2C_SHT21"></a> <a name="I2C_SHT21"></a>
Provides an interface to the SHT21 I2C Humidity sensor from <a href="www.sensirion.com">Sensirion</a>. Provides an interface to the SHT21 I2C Humidity sensor from <a href="www.sensirion.com">Sensirion</a>.
@ -320,6 +321,7 @@ sub I2C_SHT21_readHumidity($) {
<a name="I2C_SHT21"></a> <a name="I2C_SHT21"></a>
<h3>I2C_SHT21</h3> <h3>I2C_SHT21</h3>
(<a href="commandref.html#I2C_SHT21">en</a> | de)
<ul> <ul>
<a name="I2C_SHT21"></a> <a name="I2C_SHT21"></a>
Erm&ouml;glicht die Verwendung eines SHT21 I2C Feuchtesensors von <a href="www.sensirion.com">Sensirion</a>. Erm&ouml;glicht die Verwendung eines SHT21 I2C Feuchtesensors von <a href="www.sensirion.com">Sensirion</a>.