Function SerialPort_write
Source pub unsafe extern "C" fn SerialPort_write(
self_: SerialPort,
buffer: *mut u8,
startPos: c_int,
numberOfBytes: c_int,
) -> c_int
Expand description
Write the number of bytes from the buffer to the serial interface
§Arguments
buffer - the buffer containing the data to write
startPos - start position in the buffer of the data to write
numberOfBytes - number of bytes to write
§Returns
number of bytes written, or -1 in case of an error