Serial WriteSingle

From WikiPrizm
Jump to navigationJump to search


Header: fxcg/serial.h
Syscall index: 0x1BBC (not yet included in libfxcg!)
Function signature: int Serial_WriteSingle(unsigned char x)

Sends a single byte through the 3-pin serial port, by putting it in the transmit buffer.


  • x - byte to transmit.


  • 0 if successful,
  • 2 if no space is available in the serial transmit buffer (which has a size of 256 bytes),
  • 3 if the serial channel is not open.