Struct Cr1
#[repr(transparent)]pub struct Cr1(pub u32);Expand description
Control register 1
Tuple Fields§
§0: u32Implementations§
§impl Cr1
impl Cr1
pub const fn set_addrie(&mut self, val: bool)
pub const fn set_addrie(&mut self, val: bool)
Address match interrupt enable (slave only)
pub const fn set_nackie(&mut self, val: bool)
pub const fn set_nackie(&mut self, val: bool)
Not acknowledge received interrupt enable
pub const fn set_stopie(&mut self, val: bool)
pub const fn set_stopie(&mut self, val: bool)
STOP detection Interrupt enable
pub const fn set_anfoff(&mut self, val: bool)
pub const fn set_anfoff(&mut self, val: bool)
Analog noise filter OFF
pub const fn set_txdmaen(&mut self, val: bool)
pub const fn set_txdmaen(&mut self, val: bool)
DMA transmission requests enable
pub const fn set_rxdmaen(&mut self, val: bool)
pub const fn set_rxdmaen(&mut self, val: bool)
DMA reception requests enable
pub const fn set_nostretch(&mut self, val: bool)
pub const fn set_nostretch(&mut self, val: bool)
Clock stretching disable
pub const fn set_smbhen(&mut self, val: bool)
pub const fn set_smbhen(&mut self, val: bool)
SMBus Host address enable
pub const fn set_smbden(&mut self, val: bool)
pub const fn set_smbden(&mut self, val: bool)
SMBus Device Default address enable
pub const fn set_alerten(&mut self, val: bool)
pub const fn set_alerten(&mut self, val: bool)
SMBUS alert enable
Trait Implementations§
impl Copy for Cr1
impl Eq for Cr1
impl StructuralPartialEq for Cr1
Auto Trait Implementations§
impl Freeze for Cr1
impl RefUnwindSafe for Cr1
impl Send for Cr1
impl Sync for Cr1
impl Unpin for Cr1
impl UnwindSafe for Cr1
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