Synopsis #
Header: fxcg/serial.h
Syscall index: 0x1BBE
Function signature: int Serial_Write(const unsigned char* buf, int
count)
Sends a number of bytes through the 3-pin serial port, by putting them in the transmit buffer.
Parameters #
- buf - pointer to buffer containing the bytes to transmit;
- count - amount of bytes to transmit from buf.
Returns #
- 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.