Struct esp32s3::spi2::ctrl::W

source ·
pub struct W(_);
Expand description

Register CTRL writer

Implementations§

source§

impl W

source

pub fn dummy_out(&mut self) -> DUMMY_OUT_W<'_, 3>

Bit 3 - 0: In the dummy phase, the FSPI bus signals are not output. 1: In the dummy phase, the FSPI bus signals are output. Can be configured in CONF state.

source

pub fn faddr_dual(&mut self) -> FADDR_DUAL_W<'_, 5>

Bit 5 - Apply 2 signals during addr phase 1:enable 0: disable. Can be configured in CONF state.

source

pub fn faddr_quad(&mut self) -> FADDR_QUAD_W<'_, 6>

Bit 6 - Apply 4 signals during addr phase 1:enable 0: disable. Can be configured in CONF state.

source

pub fn faddr_oct(&mut self) -> FADDR_OCT_W<'_, 7>

Bit 7 - Apply 8 signals during addr phase 1:enable 0: disable. Can be configured in CONF state.

source

pub fn fcmd_dual(&mut self) -> FCMD_DUAL_W<'_, 8>

Bit 8 - Apply 2 signals during command phase 1:enable 0: disable. Can be configured in CONF state.

source

pub fn fcmd_quad(&mut self) -> FCMD_QUAD_W<'_, 9>

Bit 9 - Apply 4 signals during command phase 1:enable 0: disable. Can be configured in CONF state.

source

pub fn fcmd_oct(&mut self) -> FCMD_OCT_W<'_, 10>

Bit 10 - Apply 8 signals during command phase 1:enable 0: disable. Can be configured in CONF state.

source

pub fn fread_dual(&mut self) -> FREAD_DUAL_W<'_, 14>

Bit 14 - In the read operations, read-data phase apply 2 signals. 1: enable 0: disable. Can be configured in CONF state.

source

pub fn fread_quad(&mut self) -> FREAD_QUAD_W<'_, 15>

Bit 15 - In the read operations read-data phase apply 4 signals. 1: enable 0: disable. Can be configured in CONF state.

source

pub fn fread_oct(&mut self) -> FREAD_OCT_W<'_, 16>

Bit 16 - In the read operations read-data phase apply 8 signals. 1: enable 0: disable. Can be configured in CONF state.

source

pub fn q_pol(&mut self) -> Q_POL_W<'_, 18>

Bit 18 - The bit is used to set MISO line polarity, 1: high 0, low. Can be configured in CONF state.

source

pub fn d_pol(&mut self) -> D_POL_W<'_, 19>

Bit 19 - The bit is used to set MOSI line polarity, 1: high 0, low. Can be configured in CONF state.

source

pub fn hold_pol(&mut self) -> HOLD_POL_W<'_, 20>

Bit 20 - SPI_HOLD output value when SPI is idle. 1: output high, 0: output low. Can be configured in CONF state.

source

pub fn wp_pol(&mut self) -> WP_POL_W<'_, 21>

Bit 21 - Write protect signal output when SPI is idle. 1: output high, 0: output low. Can be configured in CONF state.

source

pub fn rd_bit_order(&mut self) -> RD_BIT_ORDER_W<'_, 23>

Bits 23:24 - In read-data (MISO) phase 1: LSB first 0: MSB first. Can be configured in CONF state.

source

pub fn wr_bit_order(&mut self) -> WR_BIT_ORDER_W<'_, 25>

Bits 25:26 - In command address write-data (MOSI) phases 1: LSB firs 0: MSB first. Can be configured in CONF state.

source

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

Writes raw bits to the register.

Methods from Deref<Target = W<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<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<CTRL_SPEC>> for W

source§

fn from(writer: W<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.