Struct avr_oxide::hal::generic::serial::base::zeroseries::DummyUsart
source · pub struct DummyUsart { /* private fields */ }
Implementations§
source§impl DummyUsart
impl DummyUsart
pub fn mux<M: MuxControl>(&mut self, mux: M) -> &mut Self
Trait Implementations§
source§impl SerialRxTx for DummyUsart
impl SerialRxTx for DummyUsart
source§fn set_mode(&mut self, mode: SerialPortMode)
fn set_mode(&mut self, mode: SerialPortMode)
Configure the serial port with the given mode
source§fn set_enable_rxtx(&mut self, enable: bool)
fn set_enable_rxtx(&mut self, enable: bool)
Enable or disable the receiver & transmitter
source§fn set_write_complete_callback(&self, callback: SerialWriteEventCallback)
fn set_write_complete_callback(&self, callback: SerialWriteEventCallback)
Set the callback handler for write notifications
source§fn set_read_callback(&self, callback: SerialReadEventCallback)
fn set_read_callback(&self, callback: SerialReadEventCallback)
Set the callback handler for read notifications
source§fn set_error_callback(&self, callback: SerialErrorEventCallback)
fn set_error_callback(&self, callback: SerialErrorEventCallback)
Set the callback handler for error
fn flush(&mut self)
fn read_u8(&mut self) -> u8
source§fn try_read_u8(&mut self) -> Option<u8>
fn try_read_u8(&mut self) -> Option<u8>
Read a byte from the serial port. If no byte is available, return None
instead.
Auto Trait Implementations§
impl Freeze for DummyUsart
impl RefUnwindSafe for DummyUsart
impl Send for DummyUsart
impl Sync for DummyUsart
impl Unpin for DummyUsart
impl UnwindSafe for DummyUsart
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more