Comm_Close

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).