pub struct Config {Show 15 fields
pub power: PoweredClock,
pub source: LpuartClockSel,
pub div: Div4,
pub baudrate_bps: u32,
pub parity_mode: Option<Pt>,
pub data_bits_count: M,
pub msb_first: Msbf,
pub stop_bits_count: Sbns,
pub tx_fifo_watermark: u8,
pub rx_fifo_watermark: u8,
pub tx_cts_source: Txctssrc,
pub tx_cts_config: Txctsc,
pub rx_idle_type: Ilt,
pub rx_idle_config: Idlecfg,
pub swap_txd_rxd: bool,
}Expand description
Lpuart config
Fields§
§power: PoweredClockPower state required for this peripheral
source: LpuartClockSelClock source
div: Div4Clock divisor
baudrate_bps: u32Baud rate in bits per second
parity_mode: Option<Pt>Parity configuration
data_bits_count: MNumber of data bits
msb_first: MsbfMSB First or LSB First configuration
stop_bits_count: SbnsNumber of stop bits
tx_fifo_watermark: u8TX FIFO watermark
rx_fifo_watermark: u8RX FIFO watermark
tx_cts_source: TxctssrcTX CTS source
tx_cts_config: TxctscTX CTS configure
rx_idle_type: IltRX IDLE type
rx_idle_config: IdlecfgRX IDLE configuration
swap_txd_rxd: boolSwap TXD and RXD pins
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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