pub struct R(_);
Expand description
Register CR1
reader
Implementations
sourceimpl R
impl R
sourcepub fn pe(&self) -> PE_R
pub fn pe(&self) -> PE_R
Bit 0 - Peripheral enable Note: When PE=0, the I2C SCL and SDA lines are released. Internal state machines and status bits are put back to their reset value. When cleared, PE must be kept low for at least 3 APB clock cycles.
sourcepub fn tcie(&self) -> TCIE_R
pub fn tcie(&self) -> TCIE_R
Bit 6 - Transfer Complete interrupt enable Note: Any of these events generate an interrupt: Transfer Complete (TC) Transfer Complete Reload (TCR)
sourcepub fn errie(&self) -> ERRIE_R
pub fn errie(&self) -> ERRIE_R
Bit 7 - Error interrupts enable Note: Any of these errors generate an interrupt: Arbitration Loss (ARLO) Bus Error detection (BERR) Overrun/Underrun (OVR) Timeout detection (TIMEOUT) PEC error detection (PECERR) Alert pin event detection (ALERT)
sourcepub fn dnf(&self) -> DNF_R
pub fn dnf(&self) -> DNF_R
Bits 8:11 - Digital noise filter These bits are used to configure the digital noise filter on SDA and SCL input. The digital filter, filters spikes with a length of up to DNF[3:0]
- tI2CCLK … Note: If the analog filter is also enabled, the digital filter is added to the analog filter. This filter can only be programmed when the I2C is disabled (PE = 0).
sourcepub fn anfoff(&self) -> ANFOFF_R
pub fn anfoff(&self) -> ANFOFF_R
Bit 12 - Analog noise filter OFF Note: This bit can only be programmed when the I2C is disabled (PE = 0).
sourcepub fn sbc(&self) -> SBC_R
pub fn sbc(&self) -> SBC_R
Bit 16 - Slave byte control This bit is used to enable hardware byte control in slave mode.
sourcepub fn nostretch(&self) -> NOSTRETCH_R
pub fn nostretch(&self) -> NOSTRETCH_R
Bit 17 - Clock stretching disable This bit is used to disable clock stretching in slave mode. It must be kept cleared in master mode. Note: This bit can only be programmed when the I2C is disabled (PE = 0).
sourcepub fn wupen(&self) -> WUPEN_R
pub fn wupen(&self) -> WUPEN_R
Bit 18 - Wakeup from Stop mode enable Note: If the Wakeup from Stop mode feature is not supported, this bit is reserved and forced by hardware to ’0â. Refer to . Note: WUPEN can be set only when DNF = ’0000â
sourcepub fn smbhen(&self) -> SMBHEN_R
pub fn smbhen(&self) -> SMBHEN_R
Bit 20 - SMBus Host Address enable Note: If the SMBus feature is not supported, this bit is reserved and forced by hardware to ’0â. Refer to .
sourcepub fn smbden(&self) -> SMBDEN_R
pub fn smbden(&self) -> SMBDEN_R
Bit 21 - SMBus Device Default Address enable Note: If the SMBus feature is not supported, this bit is reserved and forced by hardware to ’0â. Refer to .
Methods from Deref<Target = R<CR1_SPEC>>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more