#[repr(transparent)]pub struct Mconfig2(pub u32);Expand description
Controller Configuration.
Tuple Fields§
§0: u32Implementations§
Source§impl Mconfig2
impl Mconfig2
Sourcepub const fn set_mstena(&mut self, val: Mstena2)
pub const fn set_mstena(&mut self, val: Mstena2)
Controller Enable.
Sourcepub const fn disto(&self) -> bool
pub const fn disto(&self) -> bool
Disable Timeout. Raw bit values: false (0) = Enable: Enabled.; true (1) = Disable: Disabled, if configured.
Sourcepub const fn set_disto(&mut self, val: bool)
pub const fn set_disto(&mut self, val: bool)
Disable Timeout. Raw bit values: false (0) = Enable: Enabled.; true (1) = Disable: Disabled, if configured.
Sourcepub const fn odstop(&self) -> bool
pub const fn odstop(&self) -> bool
Open Drain Stop. Raw bit values: false (0) = Disable: Disable.; true (1) = Enable: Enable.
Sourcepub const fn set_odstop(&mut self, val: bool)
pub const fn set_odstop(&mut self, val: bool)
Open Drain Stop. Raw bit values: false (0) = Disable: Disable.; true (1) = Enable: Enable.
Sourcepub const fn set_ppbaud(&mut self, val: u8)
pub const fn set_ppbaud(&mut self, val: u8)
Push-Pull Baud Rate.
Sourcepub const fn set_odbaud(&mut self, val: u8)
pub const fn set_odbaud(&mut self, val: u8)
Open Drain Baud Rate.
Sourcepub const fn odhpp(&self) -> bool
pub const fn odhpp(&self) -> bool
Open Drain High Push-Pull. Raw bit values: false (0) = Disable: Disable.; true (1) = Enable: Enable.
Sourcepub const fn set_odhpp(&mut self, val: bool)
pub const fn set_odhpp(&mut self, val: bool)
Open Drain High Push-Pull. Raw bit values: false (0) = Disable: Disable.; true (1) = Enable: Enable.
Sourcepub const fn set_i2cbaud(&mut self, val: u8)
pub const fn set_i2cbaud(&mut self, val: u8)
I2C Baud Rate.
Trait Implementations§
impl Copy for Mconfig2
impl Eq for Mconfig2
impl StructuralPartialEq for Mconfig2
Auto Trait Implementations§
impl Freeze for Mconfig2
impl RefUnwindSafe for Mconfig2
impl Send for Mconfig2
impl Sync for Mconfig2
impl Unpin for Mconfig2
impl UnwindSafe for Mconfig2
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