Struct esp32c2_hal::pac::spi2::ms_dlen::W
pub struct W(_);
Expand description
Register MS_DLEN
writer
Implementations§
§impl W
impl W
pub fn ms_data_bitlen(
&mut self
) -> FieldWriterRaw<'_, u32, MS_DLEN_SPEC, u32, u32, Unsafe, 18, 0>
pub fn ms_data_bitlen(
&mut self
) -> FieldWriterRaw<'_, u32, MS_DLEN_SPEC, u32, u32, Unsafe, 18, 0>
Bits 0:17 - The value of these bits is the configured SPI transmission data bit length in master mode DMA controlled transfer or CPU controlled transfer. The value is also the configured bit length in slave mode DMA RX controlled transfer. The register value shall be (bit_num-1). Can be configured in CONF state.
Methods from Deref<Target = W<MS_DLEN_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<MS_DLEN_SPEC>> for W
impl From<W<MS_DLEN_SPEC>> for W
§fn from(writer: W<MS_DLEN_SPEC>) -> W
fn from(writer: W<MS_DLEN_SPEC>) -> W
Converts to this type from the input type.