MCPcopy Create free account
hub / github.com/SharpCoder/teensycore / serial_write

Function serial_write

src/serio.rs:425–428  ·  view source on GitHub ↗

Enqueue data to be written over serial. This data will be written at the next available interrupt cycle.

(device: SerioDevice, bytes: &[u8])

Source from the content-addressed store, hash-verified

423/// This data will be written at the next available interrupt
424/// cycle.
425pub fn serial_write(device: SerioDevice, bytes: &[u8]) {
426 let uart = get_uart_interface(device);
427 uart.write(bytes);
428}
429
430pub fn serial_write_vec(device: SerioDevice, bytes: &Vector<u8>) {
431 let uart = get_uart_interface(device);

Callers 1

printFunction · 0.85

Calls 2

get_uart_interfaceFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected