Type Alias W

Source
pub type W = W<CTRL_SPEC>;
Expand description

Register CTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn fdummy_out(&mut self) -> FDUMMY_OUT_W<'_, CTRL_SPEC>

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

Source

pub fn fdout_oct(&mut self) -> FDOUT_OCT_W<'_, CTRL_SPEC>

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

Source

pub fn fdin_oct(&mut self) -> FDIN_OCT_W<'_, CTRL_SPEC>

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub fn fastrd_mode(&mut self) -> FASTRD_MODE_W<'_, CTRL_SPEC>

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(&mut self) -> FREAD_DUAL_W<'_, CTRL_SPEC>

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

Source

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

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

Source

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

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

Source

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

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

Source

pub fn wp(&mut self) -> WP_W<'_, CTRL_SPEC>

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

Source

pub fn fread_dio(&mut self) -> FREAD_DIO_W<'_, CTRL_SPEC>

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(&mut self) -> FREAD_QIO_W<'_, CTRL_SPEC>

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