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

Function serial_write_vec

src/serio.rs:430–435  ·  view source on GitHub ↗
(device: SerioDevice, bytes: &Vector<u8>)

Source from the content-addressed store, hash-verified

428}
429
430pub fn serial_write_vec(device: SerioDevice, bytes: &Vector<u8>) {
431 let uart = get_uart_interface(device);
432 for byte in bytes.into_iter() {
433 uart.write(&[byte]);
434 }
435}
436
437pub fn serial_write_str(device: SerioDevice, bytes: &mut Str) {
438 let uart = get_uart_interface(device);

Callers

nothing calls this directly

Calls 3

get_uart_interfaceFunction · 0.85
into_iterMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected