Serial Close

From WikiPrizm
Revision as of 21:04, 23 May 2012 by Tari (talk | contribs) (Created page with "{{syscall | name = Serial_Close | index = 0x1BB8 | header = fxcg/serial.h | signature = int Serial_Close(int mode); | synopsis = Closes the serial port, clearing all buffers a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Header: fxcg/serial.h
Syscall index: 0x1BB8
Function signature: int Serial_Close(int mode);

Closes the serial port, clearing all buffers and optionally aborting any active transmissions.


  • mode: Set to 1 to abort any active transmissions, anything else to fail if any transmission is pending.


0 on success, or 5 if the port was not closed because a transmission is pending. 5 will only be returned if mode was not passed as 1.