Struct esp32c6::spi1::spi_mem_ctrl::W

source ·
pub struct W(_);
Expand description

Register SPI_MEM_CTRL writer

Implementations§

source§

impl W

source

pub fn spi_mem_fdummy_rin(&mut self) -> SPI_MEM_FDUMMY_RIN_W<'_, 2>

Bit 2 - In the dummy phase of a MSPI read data transfer when accesses to flash, the signal level of SPI bus is output by the MSPI controller.

source

pub fn spi_mem_fdummy_wout(&mut self) -> SPI_MEM_FDUMMY_WOUT_W<'_, 3>

Bit 3 - In the dummy phase of a MSPI write data transfer when accesses to flash, the signal level of SPI bus is output by the MSPI controller.

source

pub fn spi_mem_fcmd_quad(&mut self) -> SPI_MEM_FCMD_QUAD_W<'_, 8>

Bit 8 - Apply 4 signals during command phase 1:enable 0: disable

source

pub fn spi_mem_fastrd_mode(&mut self) -> SPI_MEM_FASTRD_MODE_W<'_, 13>

Bit 13 - This bit enable the bits: spi_mem_fread_qio, spi_mem_fread_dio, spi_mem_fread_qout and spi_mem_fread_dout. 1: enable 0: disable.

source

pub fn spi_mem_fread_dual(&mut self) -> SPI_MEM_FREAD_DUAL_W<'_, 14>

Bit 14 - In the read operations, read-data phase apply 2 signals. 1: enable 0: disable.

source

pub fn spi_mem_resandres(&mut self) -> SPI_MEM_RESANDRES_W<'_, 15>

Bit 15 - The Device ID is read out to SPI_MEM_RD_STATUS register, this bit combine with spi_mem_flash_res bit. 1: enable 0: disable.

source

pub fn spi_mem_q_pol(&mut self) -> SPI_MEM_Q_POL_W<'_, 18>

Bit 18 - The bit is used to set MISO line polarity, 1: high 0, low

source

pub fn spi_mem_d_pol(&mut self) -> SPI_MEM_D_POL_W<'_, 19>

Bit 19 - The bit is used to set MOSI line polarity, 1: high 0, low

source

pub fn spi_mem_fread_quad(&mut self) -> SPI_MEM_FREAD_QUAD_W<'_, 20>

Bit 20 - In the read operations read-data phase apply 4 signals. 1: enable 0: disable.

source

pub fn spi_mem_wp(&mut self) -> SPI_MEM_WP_W<'_, 21>

Bit 21 - Write protect signal output when SPI is idle. 1: output high, 0: output low.

source

pub fn spi_mem_wrsr_2b(&mut self) -> SPI_MEM_WRSR_2B_W<'_, 22>

Bit 22 - two bytes data will be written to status register when it is set. 1: enable 0: disable.

source

pub fn spi_mem_fread_dio(&mut self) -> SPI_MEM_FREAD_DIO_W<'_, 23>

Bit 23 - In the read operations address phase and read-data phase apply 2 signals. 1: enable 0: disable.

source

pub fn spi_mem_fread_qio(&mut self) -> SPI_MEM_FREAD_QIO_W<'_, 24>

Bit 24 - In the read operations address phase and read-data phase apply 4 signals. 1: enable 0: disable.

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

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

source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

Safety

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

Trait Implementations§

source§

impl Deref for W

§

type Target = W<SPI_MEM_CTRL_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<W<SPI_MEM_CTRL_SPEC>> for W

source§

fn from(writer: W<SPI_MEM_CTRL_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.