Serial WriteSingle

From WikiPrizm
Revision as of 06:48, 1 August 2014 by Gbl08ma (talk | contribs) (Created page with "{{syscall | name = Serial_WriteSingle | header = fxcg/serial.h | index = 0x1BBC (not yet included in libfxcg!) | signature = int Serial_WriteSingle(unsigned char x) | synopsis...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.