pub struct W(/* private fields */);
Expand description
Register SR1
writer
Implementations§
Source§impl W
impl W
Sourcepub fn smbalert(
&mut self,
) -> BitWriterRaw<'_, u32, SR1_SPEC, SMBALERT_A, BitM, 15>
pub fn smbalert( &mut self, ) -> BitWriterRaw<'_, u32, SR1_SPEC, SMBALERT_A, BitM, 15>
Bit 15 - SMBus alert
Sourcepub fn timeout(
&mut self,
) -> BitWriterRaw<'_, u32, SR1_SPEC, TIMEOUT_A, BitM, 14>
pub fn timeout( &mut self, ) -> BitWriterRaw<'_, u32, SR1_SPEC, TIMEOUT_A, BitM, 14>
Bit 14 - Timeout or Tlow error
Sourcepub fn pecerr(&mut self) -> BitWriterRaw<'_, u32, SR1_SPEC, PECERR_A, BitM, 12>
pub fn pecerr(&mut self) -> BitWriterRaw<'_, u32, SR1_SPEC, PECERR_A, BitM, 12>
Bit 12 - PEC Error in reception
Sourcepub fn ovr(&mut self) -> BitWriterRaw<'_, u32, SR1_SPEC, OVR_A, BitM, 11>
pub fn ovr(&mut self) -> BitWriterRaw<'_, u32, SR1_SPEC, OVR_A, BitM, 11>
Bit 11 - Overrun/Underrun
Sourcepub fn af(&mut self) -> BitWriterRaw<'_, u32, SR1_SPEC, AF_A, BitM, 10>
pub fn af(&mut self) -> BitWriterRaw<'_, u32, SR1_SPEC, AF_A, BitM, 10>
Bit 10 - Acknowledge failure
Methods from Deref<Target = W<SR1_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