Struct esp32c3_hal::pac::i2c0::slave_addr::W
pub struct W(_);
Expand description
Register SLAVE_ADDR
writer
Implementations
impl W
impl W
pub fn slave_addr(
&mut self
) -> FieldWriterRaw<'_, u32, SLAVE_ADDR_SPEC, u16, u16, Unsafe, 15, 0>
pub fn slave_addr(
&mut self
) -> FieldWriterRaw<'_, u32, SLAVE_ADDR_SPEC, u16, u16, Unsafe, 15, 0>
Bits 0:14 - reg_slave_addr
pub fn addr_10bit_en(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_ADDR_SPEC, bool, BitM, 31>
pub fn addr_10bit_en(
&mut self
) -> BitWriterRaw<'_, u32, SLAVE_ADDR_SPEC, bool, BitM, 31>
Bit 31 - reg_addr_10bit_en
Methods from Deref<Target = W<SLAVE_ADDR_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
impl From<W<SLAVE_ADDR_SPEC>> for W
impl From<W<SLAVE_ADDR_SPEC>> for W
fn from(writer: W<SLAVE_ADDR_SPEC>) -> W
fn from(writer: W<SLAVE_ADDR_SPEC>) -> W
Converts to this type from the input type.
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