Ashet OS

async_call: ashet.io.serial.write

Documentation

Writes data to the serial port.

Inputs

port: io.serial.SerialPort
data: bytestr

Outputs

written: usize

Number of words written

Errors

InvalidHandle
WordSizeMismatch

The serial port uses a word size that needs more than 8 bits per word.