pub struct UartConfig {
pub rx_pin: u8,
pub tx_pin: u8,
pub baud_rate: u32,
pub stop_bits: f32,
pub data_bits: u8,
pub parity: Parity,
pub flow_control: FlowControl,
pub rts_pin: Option<u8>,
pub cts_pin: Option<u8>,
}Expand description
UART configuration
Fields§
§rx_pin: u8§tx_pin: u8§baud_rate: u32§stop_bits: f32§data_bits: u8§parity: Parity§flow_control: FlowControl§rts_pin: Option<u8>§cts_pin: Option<u8>Trait Implementations§
Source§impl Clone for UartConfig
impl Clone for UartConfig
Source§impl Debug for UartConfig
impl Debug for UartConfig
Auto Trait Implementations§
impl Freeze for UartConfig
impl RefUnwindSafe for UartConfig
impl Send for UartConfig
impl Sync for UartConfig
impl Unpin for UartConfig
impl UnsafeUnpin for UartConfig
impl UnwindSafe for UartConfig
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