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

Method write

src/serio.rs:292–299  ·  view source on GitHub ↗
(&mut self, bytes: &[u8])

Source from the content-addressed store, hash-verified

290 }
291
292 pub fn write(&mut self, bytes: &[u8]) {
293 for byte_idx in 0..bytes.len() {
294 self.tx_buffer.enqueue(bytes[byte_idx]);
295 }
296
297 uart_set_reg(self.device, &CTRL_TCIE);
298 pin_out(self.tx_pin, Power::High);
299 }
300
301 pub fn write_vec(&mut self, bytes: &Vector<u8>) {
302 for item in bytes.into_iter() {

Callers 3

serial_writeFunction · 0.45
serial_write_vecFunction · 0.45
serial_write_strFunction · 0.45

Calls 4

uart_set_regFunction · 0.85
pin_outFunction · 0.85
lenMethod · 0.80
enqueueMethod · 0.45

Tested by

no test coverage detected