User Tools

Site Tools


uphp:functions:fseropen

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:fseropen [2017/04/05 14:12]
jeff
uphp:functions:fseropen [2021/09/13 05:57] (current)
Line 7: Line 7:
 ====Description==== ====Description====
  
-<well size="sm"><html><span style="font-size:125%;color:green">int +<well size="sm"><html> 
-<span style="color:black"></html>[[fseropen]] +<span style="font-size:125%;color:green">int 
-<html>(+<span style="color:black">fseropen (
 <span style="color:green">int <span style="color:green">int
 <span style="color:blue">$baud <span style="color:blue">$baud
Line 36: Line 36:
 <html><b><span style="color:blue">$parity<span style="color:black"></b></html>:  Optional, 0 (even parity) or 1 (odd parity) <html><b><span style="color:blue">$parity<span style="color:black"></b></html>:  Optional, 0 (even parity) or 1 (odd parity)
  
-====Return Value====+====Return Values====
  
-Upon success it returns a file handle which may be used together with the other file functions that require a handle such as [[fgets()]], [[fwrite()]], [[fclose()]] and [[feof()]]+<html><b><span style="color:green">Integer<span style="color:black"></b></html>:  File handle, or 0 if the attempt to open the serial port fails
  
-If the attempt to open the serial port fails it will return 0+The file handle may be used together with the other file functions that require a handle such as [[fgets()]], [[fwrite()]], [[fclose()]] and [[feof()]]
  
 ====Example==== ====Example====
  
-**Open the serial port at 115200 baud in non-blocking mode:**+===Open the serial port at 115200 baud in non-blocking mode===
  
 <code php> <code php>
Line 61: Line 61:
 </code> </code>
  
-====See Also====+====Also See====
  
 [[how_tos:Serial Port Programming]] - Some information on connecting and using the serial ports [[how_tos:Serial Port Programming]] - Some information on connecting and using the serial ports
uphp/functions/fseropen.1491401578.txt.gz · Last modified: 2021/09/13 05:56 (external edit)