Struct esp32c3_hal::pac::i2c0::ctr::W
pub struct W(_);
Expand description
Register CTR
writer
Implementations
impl W
impl W
pub fn sda_force_out(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 0>
pub fn sda_force_out(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 0>
Bit 0 - reg_sda_force_out
pub fn scl_force_out(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 1>
pub fn scl_force_out(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 1>
Bit 1 - reg_scl_force_out
pub fn sample_scl_level(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 2>
pub fn sample_scl_level(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 2>
Bit 2 - reg_sample_scl_level
pub fn rx_full_ack_level(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 3>
pub fn rx_full_ack_level(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 3>
Bit 3 - reg_rx_full_ack_level
pub fn trans_start(&mut self) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 5>
pub fn trans_start(&mut self) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 5>
Bit 5 - reg_trans_start
pub fn tx_lsb_first(&mut self) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 6>
pub fn tx_lsb_first(&mut self) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 6>
Bit 6 - reg_tx_lsb_first
pub fn rx_lsb_first(&mut self) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 7>
pub fn rx_lsb_first(&mut self) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 7>
Bit 7 - reg_rx_lsb_first
pub fn arbitration_en(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 9>
pub fn arbitration_en(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 9>
Bit 9 - reg_arbitration_en
pub fn conf_upgate(&mut self) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 11>
pub fn conf_upgate(&mut self) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 11>
Bit 11 - reg_conf_upgate
pub fn slv_tx_auto_start_en(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 12>
pub fn slv_tx_auto_start_en(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 12>
Bit 12 - reg_slv_tx_auto_start_en
pub fn addr_10bit_rw_check_en(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 13>
pub fn addr_10bit_rw_check_en(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 13>
Bit 13 - reg_addr_10bit_rw_check_en
pub fn addr_broadcasting_en(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 14>
pub fn addr_broadcasting_en(
&mut self
) -> BitWriterRaw<'_, u32, CTR_SPEC, bool, BitM, 14>
Bit 14 - reg_addr_broadcasting_en
Methods from Deref<Target = W<CTR_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.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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