Struct esp32c2_hal::pac::spi0::user::W
pub struct W(_);
Expand description
Register USER
writer
Implementations§
§impl W
impl W
pub fn cs_hold(&mut self) -> BitWriterRaw<'_, u32, USER_SPEC, bool, BitM, 6>
pub fn cs_hold(&mut self) -> BitWriterRaw<'_, u32, USER_SPEC, bool, BitM, 6>
Bit 6 - spi cs keep low when spi is in done phase. 1: enable 0: disable.
pub fn cs_setup(&mut self) -> BitWriterRaw<'_, u32, USER_SPEC, bool, BitM, 7>
pub fn cs_setup(&mut self) -> BitWriterRaw<'_, u32, USER_SPEC, bool, BitM, 7>
Bit 7 - spi cs is enable when spi is in prepare phase. 1: enable 0: disable.
pub fn ck_out_edge(&mut self) -> BitWriterRaw<'_, u32, USER_SPEC, bool, BitM, 9>
pub fn ck_out_edge(&mut self) -> BitWriterRaw<'_, u32, USER_SPEC, bool, BitM, 9>
Bit 9 - the bit combined with spi_mem_mosi_delay_mode bits to set mosi signal delay mode.
pub fn usr_dummy_idle(
&mut self
) -> BitWriterRaw<'_, u32, USER_SPEC, bool, BitM, 26>
pub fn usr_dummy_idle(
&mut self
) -> BitWriterRaw<'_, u32, USER_SPEC, bool, BitM, 26>
Bit 26 - spi clock is disable in dummy phase when the bit is enable.
Methods from Deref<Target = W<USER_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.