#[repr(C)]pub struct ConfigAbi {
pub version: u32,
pub baud_rate: u32,
pub data_bits: u8,
pub stop_bits: u8,
pub parity: u8,
pub flow_control: u8,
}Expand description
UART line configuration.
Fields§
§version: u32§baud_rate: u32§data_bits: u85, 6, 7 or 8.
stop_bits: u81 or 2.
parity: u8One of PARITY_NONE, PARITY_EVEN, PARITY_ODD.
flow_control: u8One of FLOW_CONTROL_NONE, FLOW_CONTROL_RTS_CTS, FLOW_CONTROL_XON_XOFF.
Trait Implementations§
impl Copy for ConfigAbi
impl Eq for ConfigAbi
impl PlainData for ConfigAbi
impl StructuralPartialEq for ConfigAbi
Auto Trait Implementations§
impl Freeze for ConfigAbi
impl RefUnwindSafe for ConfigAbi
impl Send for ConfigAbi
impl Sync for ConfigAbi
impl Unpin for ConfigAbi
impl UnsafeUnpin for ConfigAbi
impl UnwindSafe for ConfigAbi
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