(&mut self, bytes: &Vector<u8>)
| 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; |
nothing calls this directly
no test coverage detected