pub struct W(/* private fields */);
Expand description
Register CR1
writer
Implementations§
source§impl W
impl W
sourcepub fn swrst(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, SWRST_A, BitM, 15>
pub fn swrst(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, SWRST_A, BitM, 15>
Bit 15 - Software reset
sourcepub fn alert(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, ALERT_A, BitM, 13>
pub fn alert(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, ALERT_A, BitM, 13>
Bit 13 - SMBus alert
sourcepub fn pec(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, PEC_A, BitM, 12>
pub fn pec(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, PEC_A, BitM, 12>
Bit 12 - Packet error checking
sourcepub fn pos(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, POS_A, BitM, 11>
pub fn pos(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, POS_A, BitM, 11>
Bit 11 - Acknowledge/PEC Position (for data reception)
sourcepub fn ack(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, ACK_A, BitM, 10>
pub fn ack(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, ACK_A, BitM, 10>
Bit 10 - Acknowledge enable
sourcepub fn stop(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, STOP_A, BitM, 9>
pub fn stop(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, STOP_A, BitM, 9>
Bit 9 - Stop generation
sourcepub fn start(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, START_A, BitM, 8>
pub fn start(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, START_A, BitM, 8>
Bit 8 - Start generation
sourcepub fn nostretch(
&mut self
) -> BitWriterRaw<'_, u32, CR1_SPEC, NOSTRETCH_A, BitM, 7>
pub fn nostretch( &mut self ) -> BitWriterRaw<'_, u32, CR1_SPEC, NOSTRETCH_A, BitM, 7>
Bit 7 - Clock stretching disable (Slave mode)
sourcepub fn engc(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, ENGC_A, BitM, 6>
pub fn engc(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, ENGC_A, BitM, 6>
Bit 6 - General call enable
sourcepub fn enpec(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, ENPEC_A, BitM, 5>
pub fn enpec(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, ENPEC_A, BitM, 5>
Bit 5 - PEC enable
sourcepub fn enarp(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, ENARP_A, BitM, 4>
pub fn enarp(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, ENARP_A, BitM, 4>
Bit 4 - ARP enable
sourcepub fn smbtype(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, SMBTYPE_A, BitM, 3>
pub fn smbtype(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, SMBTYPE_A, BitM, 3>
Bit 3 - SMBus type
sourcepub fn smbus(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, SMBUS_A, BitM, 1>
pub fn smbus(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, SMBUS_A, BitM, 1>
Bit 1 - SMBus mode
Methods from Deref<Target = W<CR1_SPEC>>§
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
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