pub struct W(_);
Expand description
Register CTRL
writer
Implementations§
§impl W
impl W
pub fn sda_force_out(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 0>
pub fn sda_force_out(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 0>
Bit 0 - SDA is push-pull (1) or open-drain (0)
pub fn scl_force_out(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 1>
pub fn scl_force_out(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 1>
Bit 1 - SCL is push-pull (1) or open-drain (0)
pub fn ms_mode(&mut self) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 4>
pub fn ms_mode(&mut self) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 4>
Bit 4 - Master (1) or slave (0)
pub fn trans_start(&mut self) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 5>
pub fn trans_start(&mut self) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 5>
Bit 5 - Force to generate start condition
pub fn tx_lsb_first(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 6>
pub fn tx_lsb_first(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 6>
Bit 6 - Send LSB first
pub fn rx_lsb_first(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 7>
pub fn rx_lsb_first(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 7>
Bit 7 - Receive LSB first
Methods from Deref<Target = W<CTRL_SPEC>>§
pub 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.
Safety
Read datasheet or reference manual to find what values are allowed to pass.