pub struct LpUart { /* private fields */ }Expand description
LP-UART driver
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
Initialize the UART driver using the provided configuration
Sourcepub fn change_baud(&mut self, config: &Config)
pub fn change_baud(&mut self, config: &Config)
Modify UART baud rate and reset TX/RX fifo.
Auto Trait Implementations§
impl !UnwindSafe for LpUart
impl Freeze for LpUart
impl RefUnwindSafe for LpUart
impl Send for LpUart
impl Sync for LpUart
impl Unpin for LpUart
impl UnsafeUnpin 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