Struct stm32_metapac::i2c::regs::Cr1
#[repr(transparent)]pub struct Cr1(pub u32);
Expand description
Control register 1
Tuple Fields§
§0: u32
Implementations§
§impl Cr1
impl Cr1
pub fn set_addrie(&mut self, val: bool)
pub fn set_addrie(&mut self, val: bool)
Address match interrupt enable (slave only)
pub fn set_nackie(&mut self, val: bool)
pub fn set_nackie(&mut self, val: bool)
Not acknowledge received interrupt enable
pub fn set_stopie(&mut self, val: bool)
pub fn set_stopie(&mut self, val: bool)
STOP detection Interrupt enable
pub fn set_anfoff(&mut self, val: bool)
pub fn set_anfoff(&mut self, val: bool)
Analog noise filter OFF
pub fn set_txdmaen(&mut self, val: bool)
pub fn set_txdmaen(&mut self, val: bool)
DMA transmission requests enable
pub fn set_rxdmaen(&mut self, val: bool)
pub fn set_rxdmaen(&mut self, val: bool)
DMA reception requests enable
pub fn set_nostretch(&mut self, val: bool)
pub fn set_nostretch(&mut self, val: bool)
Clock stretching disable
pub fn set_smbhen(&mut self, val: bool)
pub fn set_smbhen(&mut self, val: bool)
SMBus Host address enable
pub fn set_smbden(&mut self, val: bool)
pub fn set_smbden(&mut self, val: bool)
SMBus Device Default address enable
pub fn set_alerten(&mut self, val: bool)
pub fn set_alerten(&mut self, val: bool)
SMBUS alert enable
pub fn set_addraclr(&mut self, val: bool)
pub fn set_addraclr(&mut self, val: bool)
Address match flag (ADDR) automatic clear.
pub fn set_stopfaclr(&mut self, val: bool)
pub fn set_stopfaclr(&mut self, val: bool)
STOP detection flag (STOPF) automatic clear.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)