pub fn send_data_in_sequence( uart: &mut dyn Uart, data: &[u8], timeout: Duration, ack: bool, ) -> Result<usize, &'static str>