Serial WriteUnbuffered

From WikiPrizm
Revision as of 17:23, 30 May 2012 by Tari (talk | contribs)
Jump to navigationJump to search


Header: fxcg/serial.h
Syscall index: 0x1BBD
Function signature: int Serial_WriteUnbuffered(unsigned char c)

Transmits a single byte over the serial port, without buffering.


  • c: Byte value to transmit.


0 for success, nonzero for failure. 1 if the hardware FIFO is not empty, and 3 if the serial port is not open.


To configure the serial port, use Serial_Open. Serial_Write allows you to queue many bytes for transmission to be sent whenever possible, and Serial_WriteSingle does the same thing as this but with buffering (so it will not fail unless the transmit buffer is full).