This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:fseropen [2017/04/06 12:02] jeff |
uphp:functions:fseropen [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 7: | Line 7: | ||
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | < | + | |
<span style=" | <span style=" | ||
- | <span style=" | + | <span style=" |
- | </ | + | |
- | [[fseropen]] ( | + | |
- | < | + | |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
Line 26: | Line 22: | ||
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
- | </ | + | </ |
- | </ | + | |
Attempt to open the serial port, and return the file handle for future operations | Attempt to open the serial port, and return the file handle for future operations | ||
Line 41: | Line 36: | ||
< | < | ||
- | ====Return | + | ====Return |
- | Upon success it returns a file handle | + | < |
- | 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()]], |
====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 66: | Line 61: | ||
</ | </ | ||
- | ====See Also==== | + | ====Also |
[[how_tos: | [[how_tos: |