pub fn _handle_rx(&mut self) {
        match self.uart.read() {
            Ok(b) => {
                if let Ok(mut wgr) = self.rx_buff_isr.grant_exact(1) {
                    wgr[0] = b;
                    wgr.commit(1);
                } else {
                    panic!("overrun");
                }
            }
            Err(nb::Error::Other(e)) => {
                panic!("unrecoverable read error");
            }
            // Skip WouldBlock
            Err(nb::Error::WouldBlock) => (),
        };
    }
/// Called from ISR: Handles the signal that the UART has recieved
/// a byte that needs to be read.
Called from ISR: Handles the signal that the UART has recieved
a byte that needs to be read.
Called from ISR : Handles the signal that the UART has recieved a byte that needs to be read .
pub fn _handle_rx(&mut self) {
        match self.uart.read() {
            Ok(b) => {
                if let Ok(mut wgr) = self.rx_buff_isr.grant_exact(1) {
                    wgr[0] = b;
                    wgr.commit(1);
                } else {
                    panic!("overrun");
                }
            }
            Err(nb::Error::Other(e)) => {
                panic!("unrecoverable read error");
            }
            // Skip WouldBlock
            Err(nb::Error::WouldBlock) => (),
        };
    }
pub fn _handle_rx ( & mut self ) { match self . uart . read ( ) { Ok ( b ) => { if let Ok ( mut wgr ) = self . rx_buff_isr . grant_exact ( 1 ) { wgr [ 0 ] = b ; wgr . commit ( 1 ) ; } else { panic ! ( " " ) ; } } Err ( nb :: Error :: Other ( e ) ) => { panic ! ( " " ) ; } // Skip WouldBlock Err ( nb :: Error :: WouldBlock ) => ( ) , } ; }
Called from ISR: Handles the signal that the UART has recieved
a byte that needs to be read.
Called from ISR : Handles the signal that the UART has recieved a byte that needs to be read .
&mut self
&mut self