Struct esp32s3_hal::pac::spi0::sram_cmd::W

pub struct W(_);
Expand description

Register SRAM_CMD writer

Implementations§

Bits 0:1 - SPI_CLK mode bits when SPI0 accesses to Ext_RAM. 0: SPI_CLK is off when CS inactive 1: SPI_CLK is delayed one cycle after CS inactive 2: SPI_CLK is delayed two cycles after CS inactive 3: SPI_CLK is always on.

Bits 2:9 - Mode bits when SPI0 accesses to Ext_RAM.

Bit 10 - When SPI0 accesses to Ext_RAM, set this bit to enable 2-bm in DIN phase.

Bit 11 - When SPI0 accesses to Ext_RAM, set this bit to enable 2-bm in DOUT phase.

Bit 12 - When SPI0 accesses to Ext_RAM, set this bit to enable 2-bm in ADDR phase.

Bit 13 - When SPI0 accesses to Ext_RAM, set this bit to enable 2-bm in CMD phase.

Bit 14 - When SPI0 accesses to Ext_RAM, set this bit to enable 4-bm in DIN phase.

Bit 15 - When SPI0 accesses to Ext_RAM, set this bit to enable 4-bm in DOUT phase.

Bit 16 - When SPI0 accesses to Ext_RAM, set this bit to enable 4-bm in ADDR phase.

Bit 17 - When SPI0 accesses to Ext_RAM, set this bit to enable 4-bm in CMD phase.

Bit 18 - When SPI0 accesses to Ext_RAM, set this bit to enable 8-bm in DIN phase.

Bit 19 - When SPI0 accesses to Ext_RAM, set this bit to enable 8-bm in DOUT phase.

Bit 20 - When SPI0 accesses to Ext_RAM, set this bit to enable 8-bm in ADDR phase.

Bit 21 - When SPI0 accesses to Ext_RAM, set this bit to enable 8-bm in CMD phase.

Bit 22 - When SPI0 accesses to Ext_RAM, in the DUMMY phase the signal level of SPI bus is output by the SPI0 controller.

Writes raw bits to the register.

Methods from Deref<Target = W<SRAM_CMD_SPEC>>§

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.