/// Wait to receive the provided data via synchronous USART
///
/// Returns the receive buffer, once the data was received. Returns an
/// error, if it times out before that, or an I/O error occurs.
Wait to receive the provided data via synchronous USART
Returns the receive buffer, once the data was received. Returns an
error, if it times out before that, or an I/O error occurs.
Wait to receive the provided data via synchronous USART Returns the receive buffer once the data was received . Returns an error if it times out before that or an I / O error occurs .
pub fn wait_for_usart_rx_sync(&mut self, data: &[u8], timeout: Duration)
        -> Result<Vec<u8>, TargetUsartWaitError>
    {
        self.wait_for_usart_rx_inner(data, timeout, UsartMode::Sync)
    }
pub fn wait_for_usart_rx_sync ( & mut self , data : & [ u8 ] , timeout : Duration ) -> Result < Vec < u8 > , TargetUsartWaitError > { self . wait_for_usart_rx_inner ( data , timeout , UsartMode :: Sync ) }
Wait to receive the provided data via synchronous USART
Returns the receive buffer, once the data was received.
Wait to receive the provided data via synchronous USART Returns the receive buffer once the data was received .
&mut self
data
&[u8]
timeout
Duration