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.