Struct esp32c3_hal::pac::spi2::din_num::W
pub struct W(_);
Expand description
Register DIN_NUM
writer
Implementations
impl W
impl W
pub fn din0_num(
&mut self
) -> FieldWriterRaw<'_, u32, DIN_NUM_SPEC, u8, u8, Unsafe, 2, 0>
pub fn din0_num(
&mut self
) -> FieldWriterRaw<'_, u32, DIN_NUM_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle, 1: delayed by 2 cycles,… Can be configured in CONF state.
pub fn din1_num(
&mut self
) -> FieldWriterRaw<'_, u32, DIN_NUM_SPEC, u8, u8, Unsafe, 2, 2>
pub fn din1_num(
&mut self
) -> FieldWriterRaw<'_, u32, DIN_NUM_SPEC, u8, u8, Unsafe, 2, 2>
Bits 2:3 - the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle, 1: delayed by 2 cycles,… Can be configured in CONF state.
pub fn din2_num(
&mut self
) -> FieldWriterRaw<'_, u32, DIN_NUM_SPEC, u8, u8, Unsafe, 2, 4>
pub fn din2_num(
&mut self
) -> FieldWriterRaw<'_, u32, DIN_NUM_SPEC, u8, u8, Unsafe, 2, 4>
Bits 4:5 - the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle, 1: delayed by 2 cycles,… Can be configured in CONF state.
pub fn din3_num(
&mut self
) -> FieldWriterRaw<'_, u32, DIN_NUM_SPEC, u8, u8, Unsafe, 2, 6>
pub fn din3_num(
&mut self
) -> FieldWriterRaw<'_, u32, DIN_NUM_SPEC, u8, u8, Unsafe, 2, 6>
Bits 6:7 - the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle, 1: delayed by 2 cycles,… Can be configured in CONF state.
Methods from Deref<Target = W<DIN_NUM_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<DIN_NUM_SPEC>> for W
impl From<W<DIN_NUM_SPEC>> for W
fn from(writer: W<DIN_NUM_SPEC>) -> W
fn from(writer: W<DIN_NUM_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