Struct esp32c3::spi2::misc::W

source ·
pub struct W(_);
Expand description

Register MISC writer

Implementations§

source§

impl W

source

pub fn cs0_dis(&mut self) -> CS0_DIS_W<'_, 0>

Bit 0 - SPI CS0 pin enable, 1: disable CS0, 0: spi_cs0 signal is from/to CS0 pin. Can be configured in CONF state.

source

pub fn cs1_dis(&mut self) -> CS1_DIS_W<'_, 1>

Bit 1 - SPI CS1 pin enable, 1: disable CS1, 0: spi_cs1 signal is from/to CS1 pin. Can be configured in CONF state.

source

pub fn cs2_dis(&mut self) -> CS2_DIS_W<'_, 2>

Bit 2 - SPI CS2 pin enable, 1: disable CS2, 0: spi_cs2 signal is from/to CS2 pin. Can be configured in CONF state.

source

pub fn cs3_dis(&mut self) -> CS3_DIS_W<'_, 3>

Bit 3 - SPI CS3 pin enable, 1: disable CS3, 0: spi_cs3 signal is from/to CS3 pin. Can be configured in CONF state.

source

pub fn cs4_dis(&mut self) -> CS4_DIS_W<'_, 4>

Bit 4 - SPI CS4 pin enable, 1: disable CS4, 0: spi_cs4 signal is from/to CS4 pin. Can be configured in CONF state.

source

pub fn cs5_dis(&mut self) -> CS5_DIS_W<'_, 5>

Bit 5 - SPI CS5 pin enable, 1: disable CS5, 0: spi_cs5 signal is from/to CS5 pin. Can be configured in CONF state.

source

pub fn ck_dis(&mut self) -> CK_DIS_W<'_, 6>

Bit 6 - 1: spi clk out disable, 0: spi clk out enable. Can be configured in CONF state.

source

pub fn master_cs_pol(&mut self) -> MASTER_CS_POL_W<'_, 7>

Bits 7:12 - In the master mode the bits are the polarity of spi cs line, the value is equivalent to spi_cs ^ spi_master_cs_pol. Can be configured in CONF state.

source

pub fn slave_cs_pol(&mut self) -> SLAVE_CS_POL_W<'_, 23>

Bit 23 - spi slave input cs polarity select. 1: inv 0: not change. Can be configured in CONF state.

source

pub fn ck_idle_edge(&mut self) -> CK_IDLE_EDGE_W<'_, 29>

Bit 29 - 1: spi clk line is high when idle 0: spi clk line is low when idle. Can be configured in CONF state.

source

pub fn cs_keep_active(&mut self) -> CS_KEEP_ACTIVE_W<'_, 30>

Bit 30 - spi cs line keep low when the bit is set. Can be configured in CONF state.

source

pub fn quad_din_pin_swap(&mut self) -> QUAD_DIN_PIN_SWAP_W<'_, 31>

Bit 31 - 1: spi quad input swap enable 0: spi quad input swap disable. 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<MISC_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<MISC_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<MISC_SPEC>> for W

source§

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

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.