Struct esp32c2_hal::pac::spi2::slave1::W
pub struct W(_);
Expand description
Register SLAVE1
writer
Implementations
impl W
impl W
pub fn slv_data_bitlen(
&mut self
) -> FieldWriterRaw<'_, u32, SLAVE1_SPEC, u32, u32, Unsafe, 18, 0>
pub fn slv_data_bitlen(
&mut self
) -> FieldWriterRaw<'_, u32, SLAVE1_SPEC, u32, u32, Unsafe, 18, 0>
Bits 0:17 - The transferred data bit length in SPI slave FD and HD mode.
pub fn slv_last_command(
&mut self
) -> FieldWriterRaw<'_, u32, SLAVE1_SPEC, u8, u8, Unsafe, 8, 18>
pub fn slv_last_command(
&mut self
) -> FieldWriterRaw<'_, u32, SLAVE1_SPEC, u8, u8, Unsafe, 8, 18>
Bits 18:25 - In the slave mode it is the value of command.
pub fn slv_last_addr(
&mut self
) -> FieldWriterRaw<'_, u32, SLAVE1_SPEC, u8, u8, Unsafe, 6, 26>
pub fn slv_last_addr(
&mut self
) -> FieldWriterRaw<'_, u32, SLAVE1_SPEC, u8, u8, Unsafe, 6, 26>
Bits 26:31 - In the slave mode it is the value of address.
Methods from Deref<Target = W<SLAVE1_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<SLAVE1_SPEC>> for W
impl From<W<SLAVE1_SPEC>> for W
fn from(writer: W<SLAVE1_SPEC>) -> W
fn from(writer: W<SLAVE1_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