Struct esp32s3::spi1::ctrl::R

source ·
pub struct R(_);
Expand description

Register CTRL reader

Implementations§

source§

impl R

source

pub fn fdummy_out(&self) -> FDUMMY_OUT_R

Bit 3 - In the DUMMY phase the signal level of SPI bus is output by the SPI0 controller.

source

pub fn fdout_oct(&self) -> FDOUT_OCT_R

Bit 4 - Set this bit to enable 8-bit-mode(8-bm) in DOUT phase.

source

pub fn fdin_oct(&self) -> FDIN_OCT_R

Bit 5 - Set this bit to enable 8-bit-mode(8-bm) in DIN phase.

source

pub fn faddr_oct(&self) -> FADDR_OCT_R

Bit 6 - Set this bit to enable 8-bit-mode(8-bm) in ADDR phase.

source

pub fn fcmd_dual(&self) -> FCMD_DUAL_R

Bit 7 - Set this bit to enable 2-bit-mode(2-bm) in CMD phase.

source

pub fn fcmd_quad(&self) -> FCMD_QUAD_R

Bit 8 - Set this bit to enable 4-bit-mode(4-bm) in CMD phase.

source

pub fn fcmd_oct(&self) -> FCMD_OCT_R

Bit 9 - Set this bit to enable 8-bit-mode(8-bm) in CMD phase.

source

pub fn fcs_crc_en(&self) -> FCS_CRC_EN_R

Bit 10 - For SPI1, initialize crc32 module before writing encrypted data to flash. Active low.

source

pub fn tx_crc_en(&self) -> TX_CRC_EN_R

Bit 11 - For SPI1, enable crc32 when writing encrypted data to flash. 1: enable 0:disable

source

pub fn fastrd_mode(&self) -> FASTRD_MODE_R

Bit 13 - This bit should be set when SPI_MEM_FREAD_QIO, SPI_MEM_FREAD_DIO, SPI_MEM_FREAD_QUAD or SPI_MEM_FREAD_DUAL is set.

source

pub fn fread_dual(&self) -> FREAD_DUAL_R

Bit 14 - In hardware 0x3B read operation, DIN phase apply 2 signals. 1: enable 0: disable.

source

pub fn resandres(&self) -> RESANDRES_R

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 q_pol(&self) -> Q_POL_R

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

source

pub fn d_pol(&self) -> D_POL_R

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

source

pub fn fread_quad(&self) -> FREAD_QUAD_R

Bit 20 - In hardware 0x6B read operation, DIN phase apply 4 signals(4-bit-mode). 1: enable 0: disable.

source

pub fn wp(&self) -> WP_R

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

source

pub fn wrsr_2b(&self) -> WRSR_2B_R

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

source

pub fn fread_dio(&self) -> FREAD_DIO_R

Bit 23 - In hardware 0xBB read operation, ADDR phase and DIN phase apply 2 signals(2-bit-mode). 1: enable 0: disable.

source

pub fn fread_qio(&self) -> FREAD_QIO_R

Bit 24 - In hardware 0xEB read operation, ADDR phase and DIN phase apply 4 signals(4-bit-mode). 1: enable 0: disable.

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

source

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

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<CTRL_SPEC>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl From<R<CTRL_SPEC>> for R

source§

fn from(reader: R<CTRL_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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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.
const: unstable · 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.
const: unstable · source§

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

Performs the conversion.