pub struct UsbSerialJtagRx<'d, Dm: DriverMode> { /* private fields */ }unstable only.Expand description
USB Serial/JTAG (Receive)
Implementations§
Source§impl<'d, Dm> UsbSerialJtagRx<'d, Dm>where
Dm: DriverMode,
impl<'d, Dm> UsbSerialJtagRx<'d, Dm>where
Dm: DriverMode,
Sourcepub fn read_byte(&mut self) -> Result<u8, Infallible>
pub fn read_byte(&mut self) -> Result<u8, Infallible>
Read a byte from the UART in a non-blocking manner
Sourcepub fn drain_rx_fifo(&mut self, buf: &mut [u8]) -> usize
pub fn drain_rx_fifo(&mut self, buf: &mut [u8]) -> usize
Read all available bytes from the RX FIFO into the provided buffer and
returns the number of read bytes. Never blocks. May stop early if the
number of bytes in the FIFO is larger than buf.
Sourcepub fn listen_rx_packet_recv_interrupt(&mut self)
pub fn listen_rx_packet_recv_interrupt(&mut self)
Listen for RX-PACKET-RECV interrupts
Sourcepub fn unlisten_rx_packet_recv_interrupt(&mut self)
pub fn unlisten_rx_packet_recv_interrupt(&mut self)
Stop listening for RX-PACKET-RECV interrupts
Sourcepub fn rx_packet_recv_interrupt_set(&mut self) -> bool
pub fn rx_packet_recv_interrupt_set(&mut self) -> bool
Checks if RX-PACKET-RECV interrupt is set
Sourcepub fn reset_rx_packet_recv_interrupt(&mut self)
pub fn reset_rx_packet_recv_interrupt(&mut self)
Reset RX-PACKET-RECV interrupt
Trait Implementations§
Source§impl<Dm> ErrorType for UsbSerialJtagRx<'_, Dm>where
Dm: DriverMode,
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl<Dm> ErrorType for UsbSerialJtagRx<'_, Dm>where
Dm: DriverMode,
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Source§impl Read for UsbSerialJtagRx<'_, Async>
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl Read for UsbSerialJtagRx<'_, Async>
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Source§async fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
buf. Read moreSource§impl<Dm> Read for UsbSerialJtagRx<'_, Dm>where
Dm: DriverMode,
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl<Dm> Read for UsbSerialJtagRx<'_, Dm>where
Dm: DriverMode,
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Source§fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
buf. Read more