pub struct Config {
pub baudrate: u32,
pub data_bits: UsartDataBits,
pub stop_bits: UsartStopBits,
pub parity: UsartParity,
pub hw_flow: UsartHwFlowCtrl,
pub tx_rx_mode: UsartMode,
}
Expand description
Config
Fields§
§baudrate: u32
Baud rate
data_bits: UsartDataBits
Number of data bits
stop_bits: UsartStopBits
Number of stop bits
parity: UsartParity
Parity type
hw_flow: UsartHwFlowCtrl
Hardware Flow Control
tx_rx_mode: UsartMode
Tx Rx mode
Implementations§
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq 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