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

Method write_vec

src/serio.rs:301–308  ·  view source on GitHub ↗
(&mut self, bytes: &Vector<u8>)

Source from the content-addressed store, hash-verified

299 }
300
301 pub fn write_vec(&mut self, bytes: &Vector<u8>) {
302 for item in bytes.into_iter() {
303 self.tx_buffer.push(item);
304 }
305
306 pin_out(self.tx_pin, Power::High);
307 uart_set_reg(self.device, &CTRL_TCIE);
308 }
309
310 pub fn get_rx_buffer(&mut self) -> &mut Str {
311 return &mut self.rx_buffer;

Callers

nothing calls this directly

Calls 4

pin_outFunction · 0.85
uart_set_regFunction · 0.85
into_iterMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected