pub struct W(_);
Expand description
Register CTL0
writer
Implementations
sourceimpl W
impl W
sourcepub fn sreset(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, SRESET_A, BitM, 15_u8>
pub fn sreset(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, SRESET_A, BitM, 15_u8>
Bit 15 - Software reset I2C
sourcepub fn salt(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, SALT_A, BitM, 13_u8>
pub fn salt(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, SALT_A, BitM, 13_u8>
Bit 13 - SMBus alert
sourcepub fn pectrans(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, PECTRANS_A, BitM, 12_u8>
pub fn pectrans(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, PECTRANS_A, BitM, 12_u8>
Bit 12 - PEC Transfer
sourcepub fn poap(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, POAP_A, BitM, 11_u8>
pub fn poap(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, POAP_A, BitM, 11_u8>
Bit 11 - Position of ACK meaning
sourcepub fn acken(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, ACKEN_A, BitM, 10_u8>
pub fn acken(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, ACKEN_A, BitM, 10_u8>
Bit 10 - Whether or not to send an ACK
sourcepub fn stop(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, STOP_A, BitM, 9_u8>
pub fn stop(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, STOP_A, BitM, 9_u8>
Bit 9 - Generate a STOP condition on I2C bus
sourcepub fn start(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, START_A, BitM, 8_u8>
pub fn start(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, START_A, BitM, 8_u8>
Bit 8 - Generate a START condition on I2C bus
sourcepub fn ss(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, SS_A, BitM, 7_u8>
pub fn ss(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, SS_A, BitM, 7_u8>
Bit 7 - Whether to stretch SCL low when data is not ready in slave mode
sourcepub fn gcen(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, GCEN_A, BitM, 6_u8>
pub fn gcen(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, GCEN_A, BitM, 6_u8>
Bit 6 - Whether or not to response to a General Call (0x00)
sourcepub fn pecen(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, PECEN_A, BitM, 5_u8>
pub fn pecen(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, PECEN_A, BitM, 5_u8>
Bit 5 - PEC Calculation Switch
sourcepub fn arpen(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, ARPEN_A, BitM, 4_u8>
pub fn arpen(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, ARPEN_A, BitM, 4_u8>
Bit 4 - ARP protocol in SMBus switch
sourcepub fn smbsel(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, SMBSEL_A, BitM, 3_u8>
pub fn smbsel(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, SMBSEL_A, BitM, 3_u8>
Bit 3 - SMBusType Selection
sourcepub fn smben(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, SMBEN_A, BitM, 1_u8>
pub fn smben(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, SMBEN_A, BitM, 1_u8>
Bit 1 - SMBus/I2C mode switch
Methods from Deref<Target = W<CTL0_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
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