Struct esp32c2_hal::pac::spi2::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, 8, 0>
pub fn usr_dummy_cyclelen(
&mut self
) -> FieldWriterRaw<'_, u32, USER1_SPEC, u8, u8, Unsafe, 8, 0>
Bits 0:7 - The length in spi_clk cycles of dummy phase. The register value shall be (cycle_num-1). Can be configured in CONF state.
pub fn mst_wfull_err_end_en(
&mut self
) -> BitWriterRaw<'_, u32, USER1_SPEC, bool, BitM, 16>
pub fn mst_wfull_err_end_en(
&mut self
) -> BitWriterRaw<'_, u32, USER1_SPEC, bool, BitM, 16>
Bit 16 - 1: SPI transfer is ended when SPI RX AFIFO wfull error is valid in GP-SPI master FD/HD-mode. 0: SPI transfer is not ended when SPI RX AFIFO wfull error is valid in GP-SPI master FD/HD-mode.
pub fn cs_setup_time(
&mut self
) -> FieldWriterRaw<'_, u32, USER1_SPEC, u8, u8, Unsafe, 5, 17>
pub fn cs_setup_time(
&mut self
) -> FieldWriterRaw<'_, u32, USER1_SPEC, u8, u8, Unsafe, 5, 17>
Bits 17:21 - (cycles+1) of prepare phase by spi clock this bits are combined with spi_cs_setup bit. Can be configured in CONF state.
pub fn cs_hold_time(
&mut self
) -> FieldWriterRaw<'_, u32, USER1_SPEC, u8, u8, Unsafe, 5, 22>
pub fn cs_hold_time(
&mut self
) -> FieldWriterRaw<'_, u32, USER1_SPEC, u8, u8, Unsafe, 5, 22>
Bits 22:26 - delay cycles of cs pin by spi clock this bits are combined with spi_cs_hold bit. Can be configured in CONF state.
pub fn usr_addr_bitlen(
&mut self
) -> FieldWriterRaw<'_, u32, USER1_SPEC, u8, u8, Unsafe, 5, 27>
pub fn usr_addr_bitlen(
&mut self
) -> FieldWriterRaw<'_, u32, USER1_SPEC, u8, u8, Unsafe, 5, 27>
Bits 27:31 - The length in bits of address phase. The register value shall be (bit_num-1). Can be configured in CONF state.
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.