Serial ReadSingle

From WikiPrizm
(Redirected from Serial ReadOneByte)
Jump to navigationJump to search


Header: fxcg/serial.h
Syscall index: 0x1BB9
Function signature: int Serial_ReadSingle(unsigned char* out)

Fetches a single byte from the serial input buffer.


  • out - Pointer to unsigned char that will receive the fetched byte.


  • 0 if successful,
  • 1 if the receive buffer is empty,
  • 3 if the serial channel is not open.