Struct esp32c2_hal::pac::spi0::user1::W
pub struct W(_);
Expand description
Register USER1
writer
Implementations
impl W
impl W
pub fn usr_dummy_cyclelen(
&mut self
) -> FieldWriterRaw<'_, u32, USER1_SPEC, u8, u8, Unsafe, 6, 0>
pub fn usr_dummy_cyclelen(
&mut self
) -> FieldWriterRaw<'_, u32, USER1_SPEC, u8, u8, Unsafe, 6, 0>
Bits 0:5 - The length in spi_mem_clk cycles of dummy phase. The register value shall be (cycle_num-1).
pub fn usr_addr_bitlen(
&mut self
) -> FieldWriterRaw<'_, u32, USER1_SPEC, u8, u8, Unsafe, 6, 26>
pub fn usr_addr_bitlen(
&mut self
) -> FieldWriterRaw<'_, u32, USER1_SPEC, u8, u8, Unsafe, 6, 26>
Bits 26:31 - The length in bits of address phase. The register value shall be (bit_num-1).
Methods from Deref<Target = W<USER1_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<USER1_SPEC>> for W
impl From<W<USER1_SPEC>> for W
fn from(writer: W<USER1_SPEC>) -> W
fn from(writer: W<USER1_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