User Tools

Site Tools


uphp:functions:ow_read

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
uphp:functions:ow_read [2017/05/11 10:04]
admin created
uphp:functions:ow_read [2021/09/13 05:57] (current)
Line 1: Line 1:
 ======ow_read====== ======ow_read======
  
-<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>+<badge>WMPRO >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Read a byte from the Onewire bus+Read a byte from the OneWire bus
  
 ====Description==== ====Description====
Line 9: Line 9:
 <well size="sm"><html> <well size="sm"><html>
 <span style="font-size:125%;color:green">int <span style="font-size:125%;color:green">int
-<span style="color:black">ow_read ( +<span style="color:black">ow_read ( )
-<span style="color:black">)+
 </html></well> </html></well>
  
-====Parameter====+This function will read a single byte from the OneWire bus.  This is a low level function allowing custom OneWire operations.
  
-none+====Parameters==== 
 + 
 +None
  
 ====Return Values==== ====Return Values====
  
-An <html><b><span style="color:green">int<span style="color:black"></b></html> value containing the byte from the bus or 0 if nothing was read.+An <html><b><span style="color:green">integer<span style="color:black"></b></html> value of the byte from the busor 0 if nothing was available
  
 ====Example==== ====Example====
  
 <code php> <code php>
-<pre><? +<?
- +
   $res=ow_read();   $res=ow_read();
-  print("Got ".$res." from onewire bus."); +  print("Got ".$res." from the OneWire bus.");
-  +
 ?> ?>
 </code> </code>
 +
 ====See Also==== ====See Also====
  
-[[ow_first()]] - Get the first device on the bus+[[ow_first()]] - Initiate a OneWire bus scan and return the address of the first device found
  
-[[ow_next()]] - Get next device on bus+[[ow_next()]] - Return the address of the next OneWire device found (after an ow_first)
  
-[[ow_read_temp()]] - Read a temperature from a device+[[ow_read_temp()]] - Read a temperature from a device on the OneWire bus
  
-[[ow_reset()]] - Reset the onewire bus+[[ow_reset()]] - Reset the OneWire bus
  
-[[ow_write()]] - Write to onewire bus+[[ow_write()]] - Write a byte to the OneWire bus
  
uphp/functions/ow_read.1494497085.txt.gz · Last modified: 2021/09/13 05:56 (external edit)