pub struct W(_);
Expand description
Register STAT0
writer
Implementations
sourceimpl W
impl W
sourcepub fn smbalt(
&mut self
) -> BitWriterRaw<'_, u16, STAT0_SPEC, SMBALT_A, BitM, 15_u8>
pub fn smbalt(
&mut self
) -> BitWriterRaw<'_, u16, STAT0_SPEC, SMBALT_A, BitM, 15_u8>
Bit 15 - SMBus Alert status
sourcepub fn smbto(
&mut self
) -> BitWriterRaw<'_, u16, STAT0_SPEC, SMBTO_A, BitM, 14_u8>
pub fn smbto(
&mut self
) -> BitWriterRaw<'_, u16, STAT0_SPEC, SMBTO_A, BitM, 14_u8>
Bit 14 - Timeout signal in SMBus mode
sourcepub fn pecerr(
&mut self
) -> BitWriterRaw<'_, u16, STAT0_SPEC, PECERR_A, BitM, 12_u8>
pub fn pecerr(
&mut self
) -> BitWriterRaw<'_, u16, STAT0_SPEC, PECERR_A, BitM, 12_u8>
Bit 12 - PEC error when receiving data
sourcepub fn ouerr(
&mut self
) -> BitWriterRaw<'_, u16, STAT0_SPEC, OUERR_A, BitM, 11_u8>
pub fn ouerr(
&mut self
) -> BitWriterRaw<'_, u16, STAT0_SPEC, OUERR_A, BitM, 11_u8>
Bit 11 - Over-run or under-run situation occurs in slave mode
sourcepub fn aerr(&mut self) -> BitWriterRaw<'_, u16, STAT0_SPEC, AERR_A, BitM, 10_u8>
pub fn aerr(&mut self) -> BitWriterRaw<'_, u16, STAT0_SPEC, AERR_A, BitM, 10_u8>
Bit 10 - Acknowledge error
sourcepub fn lostarb(
&mut self
) -> BitWriterRaw<'_, u16, STAT0_SPEC, LOSTARB_A, BitM, 9_u8>
pub fn lostarb(
&mut self
) -> BitWriterRaw<'_, u16, STAT0_SPEC, LOSTARB_A, BitM, 9_u8>
Bit 9 - Arbitration Lost in master mode
sourcepub fn berr(&mut self) -> BitWriterRaw<'_, u16, STAT0_SPEC, BERR_A, BitM, 8_u8>
pub fn berr(&mut self) -> BitWriterRaw<'_, u16, STAT0_SPEC, BERR_A, BitM, 8_u8>
Bit 8 - Bus error
Methods from Deref<Target = W<STAT0_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
sourceimpl From<W<STAT0_SPEC>> for W
impl From<W<STAT0_SPEC>> for W
sourcefn from(writer: W<STAT0_SPEC>) -> W
fn from(writer: W<STAT0_SPEC>) -> W
Converts to this type from the input type.
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