Comm Close

From WikiPrizm
Revision as of 09:00, 1 August 2014 by Gbl08ma (talk | contribs) (Created page with "{{syscall | name = Comm_Close | header = fxcg/serial.h | index = 0x1354 | signature = int Comm_Close(int mode) | synopsis = Resets all communication buffers and closes the s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Synopsis

Header: fxcg/serial.h
Syscall index: 0x1354
Function signature: int Comm_Close(int mode)

Resets all communication buffers and closes the serial or USB communication channel, depending on what is open.

Parameters

  • mode - if 1, the channel is closed immediately without waiting for pending transmissions; otherwise, the function will not close the communication channel if there are pending transmissions.

Returns

  • 0 if successful;
  • 5 if there are pending transmissions (only when mode is not 1).