pub struct LpUart { /* private fields */ }Expand description
LP-UART driver
The driver uses XTAL as clock source.
Implementations§
Source§impl LpUart
impl LpUart
Sourcepub fn new(
uart: LP_UART<'static>,
config: Config,
_tx: LowPowerOutput<'_, 5>,
_rx: LowPowerInput<'_, 4>,
) -> Self
pub fn new( uart: LP_UART<'static>, config: Config, _tx: LowPowerOutput<'_, 5>, _rx: LowPowerInput<'_, 4>, ) -> Self
Sourcepub fn change_baud(&mut self, config: &Config)
pub fn change_baud(&mut self, config: &Config)
Auto Trait Implementations§
impl Freeze for LpUart
impl RefUnwindSafe for LpUart
impl Send for LpUart
impl Sync for LpUart
impl Unpin for LpUart
impl !UnwindSafe for LpUart
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