From WikiPrizmJump to navigationJump to search
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.
- buf - pointer to buffer containing the bytes to transmit;
- count - amount of bytes to transmit from buf.
- 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.