Struct esp32s3::spi0::spi_smem_ddr::R

source ·
pub struct R(_);
Expand description

Register SPI_SMEM_DDR reader

Implementations§

source§

impl R

source

pub fn en(&self) -> EN_R

Bit 0 - 1: in ddr mode, 0 in sdr mode

source

pub fn spi_smem_var_dummy(&self) -> SPI_SMEM_VAR_DUMMY_R

Bit 1 - Set the bit to enable variable dummy cycle in spi ddr mode.

source

pub fn rdat_swp(&self) -> RDAT_SWP_R

Bit 2 - Set the bit to reorder rx data of the word in spi ddr mode.

source

pub fn wdat_swp(&self) -> WDAT_SWP_R

Bit 3 - Set the bit to reorder tx data of the word in spi ddr mode.

source

pub fn cmd_dis(&self) -> CMD_DIS_R

Bit 4 - the bit is used to disable dual edge in CMD phase when ddr mode.

source

pub fn spi_smem_outminbytelen(&self) -> SPI_SMEM_OUTMINBYTELEN_R

Bits 5:11 - It is the minimum output data length in the ddr psram.

source

pub fn spi_smem_tx_ddr_msk_en(&self) -> SPI_SMEM_TX_DDR_MSK_EN_R

Bit 12 - Set this bit to mask the first or the last byte in MSPI ECC DDR write mode, when accesses to external RAM.

source

pub fn spi_smem_rx_ddr_msk_en(&self) -> SPI_SMEM_RX_DDR_MSK_EN_R

Bit 13 - Set this bit to mask the first or the last byte in MSPI ECC DDR read mode, when accesses to external RAM.

source

pub fn spi_smem_usr_ddr_dqs_thd(&self) -> SPI_SMEM_USR_DDR_DQS_THD_R

Bits 14:20 - The delay number of data strobe which from memory based on SPI_CLK.

source

pub fn dqs_loop(&self) -> DQS_LOOP_R

Bit 21 - 1: Use internal signal as data strobe, the strobe can not be delayed by input timing module. 0: Use input SPI_DQS signal from PAD as data strobe, the strobe can be delayed by input timing module

source

pub fn dqs_loop_mode(&self) -> DQS_LOOP_MODE_R

Bit 22 - When SPI_SMEM_DDR_DQS_LOOP and SPI_SMEM_DDR_EN are set, 1: Use internal SPI_CLK as data strobe. 0: Use internal ~SPI_CLK as data strobe. Otherwise this bit is not active.

source

pub fn spi_smem_clk_diff_en(&self) -> SPI_SMEM_CLK_DIFF_EN_R

Bit 24 - Set this bit to enable the differential SPI_CLK#.

source

pub fn spi_smem_hyperbus_mode(&self) -> SPI_SMEM_HYPERBUS_MODE_R

Bit 25 - Set this bit to enable the SPI HyperBus mode.

source

pub fn spi_smem_dqs_ca_in(&self) -> SPI_SMEM_DQS_CA_IN_R

Bit 26 - Set this bit to enable the input of SPI_DQS signal in SPI phases of CMD and ADDR.

source

pub fn spi_smem_hyperbus_dummy_2x(&self) -> SPI_SMEM_HYPERBUS_DUMMY_2X_R

Bit 27 - Set this bit to enable the vary dummy function in SPI HyperBus mode, when SPI0 accesses to flash or SPI1 accesses flash or sram.

source

pub fn spi_smem_clk_diff_inv(&self) -> SPI_SMEM_CLK_DIFF_INV_R

Bit 28 - Set this bit to invert SPI_DIFF when accesses to external RAM. .

source

pub fn spi_smem_octa_ram_addr(&self) -> SPI_SMEM_OCTA_RAM_ADDR_R

Bit 29 - Set this bit to enable octa_ram address out when accesses to external RAM, which means ADDR_OUT[31:0] = {spi_usr_addr_value[25:4], 6’d0, spi_usr_addr_value[3:1], 1’b0}.

source

pub fn spi_smem_hyperbus_ca(&self) -> SPI_SMEM_HYPERBUS_CA_R

Bit 30 - Set this bit to enable HyperRAM address out when accesses to external RAM, which means ADDR_OUT[31:0] = {spi_usr_addr_value[19:4], 13’d0, spi_usr_addr_value[3:1]}.

Methods from Deref<Target = R<SPI_SMEM_DDR_SPEC>>§

source

pub fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<SPI_SMEM_DDR_SPEC>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl From<R<SPI_SMEM_DDR_SPEC>> for R

source§

fn from(reader: R<SPI_SMEM_DDR_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

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.