#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_serial_port_write(
port: *const PamojaSerialPort,
bytes: *const u8,
len: usize,
) -> PamojaStatusExpand description
Writes bytes, and on the kernel’s device waits until they have left the UART.
§Arguments
port- the port.bytes- the bytes, in order.len- how many bytes.
§Returns
PamojaStatus::Ok; PamojaStatus::InvalidArgument for a null argument; or
PamojaStatus::Io when a script expected another write or the device failed, with the
reason in the last error message.
§Safety
port must be a live handle or null, and bytes must point to len readable bytes.