pub struct W(_);
Expand description
Register CR1
writer
Implementations
sourceimpl W
impl W
sourcepub fn pe(&mut self) -> PE_W<'_, 0>
pub fn pe(&mut self) -> PE_W<'_, 0>
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 addrie(&mut self) -> ADDRIE_W<'_, 3>
pub fn addrie(&mut self) -> ADDRIE_W<'_, 3>
Bit 3 - Address match Interrupt enable (slave only)
sourcepub fn tcie(&mut self) -> TCIE_W<'_, 6>
pub fn tcie(&mut self) -> TCIE_W<'_, 6>
Bit 6 - Transfer Complete interrupt enable Note: Any of these events will generate an interrupt: Transfer Complete (TC) Transfer Complete Reload (TCR)
sourcepub fn errie(&mut self) -> ERRIE_W<'_, 7>
pub fn errie(&mut self) -> ERRIE_W<'_, 7>
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(&mut self) -> DNF_W<'_, 8>
pub fn dnf(&mut self) -> DNF_W<'_, 8>
Bits 8:11 - Digital noise filter These bits are used to configure the digital noise filter on SDA and SCL input. The digital filter will filter 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(&mut self) -> ANFOFF_W<'_, 12>
pub fn anfoff(&mut self) -> ANFOFF_W<'_, 12>
Bit 12 - Analog noise filter OFF Note: This bit can only be programmed when the I2C is disabled (PE = 0).
sourcepub fn sbc(&mut self) -> SBC_W<'_, 16>
pub fn sbc(&mut self) -> SBC_W<'_, 16>
Bit 16 - Slave byte control This bit is used to enable hardware byte control in slave mode.
sourcepub fn nostretch(&mut self) -> NOSTRETCH_W<'_, 17>
pub fn nostretch(&mut self) -> NOSTRETCH_W<'_, 17>
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(&mut self) -> WUPEN_W<'_, 18>
pub fn wupen(&mut self) -> WUPEN_W<'_, 18>
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. Please refer to Section25.3: I2C implementation. Note: WUPEN can be set only when DNF = 0000
sourcepub fn smbhen(&mut self) -> SMBHEN_W<'_, 20>
pub fn smbhen(&mut self) -> SMBHEN_W<'_, 20>
Bit 20 - SMBus Host address enable Note: If the SMBus feature is not supported, this bit is reserved and forced by hardware to 0. Please refer to Section25.3: I2C implementation.
sourcepub fn smbden(&mut self) -> SMBDEN_W<'_, 21>
pub fn smbden(&mut self) -> SMBDEN_W<'_, 21>
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. Please refer to Section25.3: I2C implementation.
sourcepub fn alerten(&mut self) -> ALERTEN_W<'_, 22>
pub fn alerten(&mut self) -> ALERTEN_W<'_, 22>
Bit 22 - SMBus alert enable Device mode (SMBHEN=0): Host mode (SMBHEN=1): Note: When ALERTEN=0, the SMBA pin can be used as a standard GPIO. If the SMBus feature is not supported, this bit is reserved and forced by hardware to 0. Please refer to Section25.3: I2C implementation.
Methods from Deref<Target = W<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