W

Struct W 

Source
pub struct W(/* private fields */);
Expand description

Register SPI_USER writer

Implementations§

Source§

impl W

Source

pub fn spi_usr_command(&mut self) -> SPI_USR_COMMAND_W<'_>

Bit 31 - This bit enable the “command” phase of an operation.

Source

pub fn spi_usr_addr(&mut self) -> SPI_USR_ADDR_W<'_>

Bit 30 - This bit enable the “address” phase of an operation.

Source

pub fn spi_usr_dummy(&mut self) -> SPI_USR_DUMMY_W<'_>

Bit 29 - This bit enable the “dummy” phase of an operation.

Source

pub fn spi_usr_miso(&mut self) -> SPI_USR_MISO_W<'_>

Bit 28 - This bit enable the “read-data” phase of an operation.

Source

pub fn spi_usr_mosi(&mut self) -> SPI_USR_MOSI_W<'_>

Bit 27 - This bit enable the “write-data” phase of an operation.

Source

pub fn reg_usr_mosi_highpart(&mut self) -> REG_USR_MOSI_HIGHPART_W<'_>

Bit 25 - 1: “write-data” phase only access to high-part of the buffer spi_w8~spi_w15

Source

pub fn reg_usr_miso_highpart(&mut self) -> REG_USR_MISO_HIGHPART_W<'_>

Bit 24 - 1: “read-data” phase only access to high-part of the buffer spi_w8~spi_w15

Source

pub fn spi_sio(&mut self) -> SPI_SIO_W<'_>

Bit 16 - 1: mosi and miso signals share the same pin

Source

pub fn spi_fwrite_qio(&mut self) -> SPI_FWRITE_QIO_W<'_>

Bit 15 - In the write operations, “address” phase and “read-data” phase apply 4 signals

Source

pub fn spi_fwrite_dio(&mut self) -> SPI_FWRITE_DIO_W<'_>

Bit 14 - In the write operations, “address” phase and “read-data” phase apply 2 signals

Source

pub fn spi_fwrite_quad(&mut self) -> SPI_FWRITE_QUAD_W<'_>

Bit 13 - In the write operations, “read-data” phase apply 4 signals

Source

pub fn spi_fwrite_dual(&mut self) -> SPI_FWRITE_DUAL_W<'_>

Bit 12 - In the write operations, “read-data” phase apply 2 signals

Source

pub fn spi_wr_byte_order(&mut self) -> SPI_WR_BYTE_ORDER_W<'_>

Bit 11 - In “command”, “address”, “write-data” (MOSI) phases, 1: little-endian; 0: big_endian

Source

pub fn spi_rd_byte_order(&mut self) -> SPI_RD_BYTE_ORDER_W<'_>

Bit 10 - In “read-data” (MISO) phase, 1: little-endian; 0: big_endian

Source

pub fn spi_ck_i_edge(&mut self) -> SPI_CK_I_EDGE_W<'_>

Bit 6 - In the slave mode, 1: rising-edge; 0: falling-edge

Source

pub fn spi_ck_o_edge(&mut self) -> SPI_CK_O_EDGE_W<'_>

Bit 7 - In the master mode, 1: rising-edge; 0: falling-edge

Source

pub fn spi_cs_setup(&mut self) -> SPI_CS_SETUP_W<'_>

Bit 5 - spi cs is enable when spi is in prepare phase. 1: enable 0: disable.

Source

pub fn spi_cs_hold(&mut self) -> SPI_CS_HOLD_W<'_>

Bit 4 - spi cs keep low when spi is in done phase. 1: enable 0: disable.

Source

pub fn spi_ahb_user_command(&mut self) -> SPI_AHB_USER_COMMAND_W<'_>

Bit 3 - reserved

Source

pub fn spi_flash_mode(&mut self) -> SPI_FLASH_MODE_W<'_>

Bit 2

Source

pub fn spi_ahb_user_command_4byte(&mut self) -> SPI_AHB_USER_COMMAND_4BYTE_W<'_>

Bit 1 - reserved

Source

pub fn spi_duplex(&mut self) -> SPI_DUPLEX_W<'_>

Bit 0 - set spi in full duplex mode

Source

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

Writes raw bits to the register.

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

Source

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

Writes raw bits to the register.

Trait Implementations§

Source§

impl Deref for W

Source§

type Target = W<SPI_USER_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_USER_SPEC>> for W

Source§

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

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for W

§

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 T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.