pub struct UsbSerialJtagTx<'d, Dm: DriverMode> { /* private fields */ }unstable only.Expand description
USB Serial/JTAG (Transmit)
Implementations§
Source§impl<'d, Dm> UsbSerialJtagTx<'d, Dm>where
Dm: DriverMode,
impl<'d, Dm> UsbSerialJtagTx<'d, Dm>where
Dm: DriverMode,
Sourcepub fn write(&mut self, data: &[u8]) -> Result<(), Infallible>
pub fn write(&mut self, data: &[u8]) -> Result<(), Infallible>
Write data to the serial output in chunks of up to 64 bytes
Sourcepub fn write_byte_nb(&mut self, word: u8) -> Result<(), Infallible>
pub fn write_byte_nb(&mut self, word: u8) -> Result<(), Infallible>
Write data to the serial output in a non-blocking manner Requires manual flushing (automatically flushed every 64 bytes)
Sourcepub fn flush_tx(&mut self) -> Result<(), Infallible>
pub fn flush_tx(&mut self) -> Result<(), Infallible>
Flush the output FIFO and block until it has been sent
Sourcepub fn flush_tx_nb(&mut self) -> Result<(), Infallible>
pub fn flush_tx_nb(&mut self) -> Result<(), Infallible>
Flush the output FIFO but don’t block if it isn’t ready immediately
Trait Implementations§
Source§impl<Dm> ErrorType for UsbSerialJtagTx<'_, 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 UsbSerialJtagTx<'_, 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 Write for UsbSerialJtagTx<'_, 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 Write for UsbSerialJtagTx<'_, 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 write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Source§impl<Dm> Write for UsbSerialJtagTx<'_, Dm>where
Dm: DriverMode,
impl<Dm> Write for UsbSerialJtagTx<'_, Dm>where
Dm: DriverMode,
Source§impl<Dm> Write for UsbSerialJtagTx<'_, 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> Write for UsbSerialJtagTx<'_, 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 write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Source§impl<Dm> uWrite for UsbSerialJtagTx<'_, 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> uWrite for UsbSerialJtagTx<'_, 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 write_str(&mut self, s: &str) -> Result<(), Self::Error>
fn write_str(&mut self, s: &str) -> Result<(), Self::Error>
Source§fn write_char(&mut self, ch: char) -> Result<(), Self::Error>
fn write_char(&mut self, ch: char) -> Result<(), Self::Error>
char] into this writer, returning whether the write succeeded. Read more