#[repr(transparent)]pub struct Mcfgr0(pub u32);Expand description
Controller Configuration 0.
Tuple Fields§
§0: u32Implementations§
Source§impl Mcfgr0
impl Mcfgr0
Sourcepub const fn hrpol(&self) -> bool
pub const fn hrpol(&self) -> bool
Host Request Polarity. Raw bit values: false (0) = ActiveLow: Active low.; true (1) = ActiveHigh: Active high.
Sourcepub const fn set_hrpol(&mut self, val: bool)
pub const fn set_hrpol(&mut self, val: bool)
Host Request Polarity. Raw bit values: false (0) = ActiveLow: Active low.; true (1) = ActiveHigh: Active high.
Sourcepub const fn hrdir(&self) -> bool
pub const fn hrdir(&self) -> bool
Host Request Direction. Raw bit values: false (0) = Input: HREQ pin is input (for LPI2C controller).; true (1) = Output: HREQ pin is output (for LPI2C target).
Sourcepub const fn set_hrdir(&mut self, val: bool)
pub const fn set_hrdir(&mut self, val: bool)
Host Request Direction. Raw bit values: false (0) = Input: HREQ pin is input (for LPI2C controller).; true (1) = Output: HREQ pin is output (for LPI2C target).
Sourcepub const fn set_cirfifo(&mut self, val: bool)
pub const fn set_cirfifo(&mut self, val: bool)
Circular FIFO Enable.
Sourcepub const fn relax(&self) -> bool
pub const fn relax(&self) -> bool
Relaxed Mode. Raw bit values: false (0) = NormalTransfer: Normal transfer.; true (1) = RelaxedTransfer: Relaxed transfer.
Trait Implementations§
impl Copy for Mcfgr0
impl Eq for Mcfgr0
impl StructuralPartialEq for Mcfgr0
Auto Trait Implementations§
impl Freeze for Mcfgr0
impl RefUnwindSafe for Mcfgr0
impl Send for Mcfgr0
impl Sync for Mcfgr0
impl Unpin for Mcfgr0
impl UnwindSafe for Mcfgr0
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