Struct esp32c2_hal::pac::spi2::user2::W
pub struct W(_);
Expand description
Register USER2
writer
Implementations§
§impl W
impl W
pub fn usr_command_value(
&mut self
) -> FieldWriterRaw<'_, u32, USER2_SPEC, u16, u16, Unsafe, 16, 0>
pub fn usr_command_value(
&mut self
) -> FieldWriterRaw<'_, u32, USER2_SPEC, u16, u16, Unsafe, 16, 0>
Bits 0:15 - The value of command. Can be configured in CONF state.
pub fn mst_rempty_err_end_en(
&mut self
) -> BitWriterRaw<'_, u32, USER2_SPEC, bool, BitM, 27>
pub fn mst_rempty_err_end_en(
&mut self
) -> BitWriterRaw<'_, u32, USER2_SPEC, bool, BitM, 27>
Bit 27 - 1: SPI transfer is ended when SPI TX AFIFO read empty error is valid in GP-SPI master FD/HD-mode. 0: SPI transfer is not ended when SPI TX AFIFO read empty error is valid in GP-SPI master FD/HD-mode.
pub fn usr_command_bitlen(
&mut self
) -> FieldWriterRaw<'_, u32, USER2_SPEC, u8, u8, Unsafe, 4, 28>
pub fn usr_command_bitlen(
&mut self
) -> FieldWriterRaw<'_, u32, USER2_SPEC, u8, u8, Unsafe, 4, 28>
Bits 28:31 - The length in bits of command phase. The register value shall be (bit_num-1). Can be configured in CONF state.
Methods from Deref<Target = W<USER2_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<USER2_SPEC>> for W
impl From<W<USER2_SPEC>> for W
§fn from(writer: W<USER2_SPEC>) -> W
fn from(writer: W<USER2_SPEC>) -> W
Converts to this type from the input type.