pub struct W(_);
Expand description
Register CTRL1
writer
Implementations§
source§impl W
impl W
sourcepub fn clk_mode(&mut self) -> CLK_MODE_W<'_, 0>
pub fn clk_mode(&mut self) -> CLK_MODE_W<'_, 0>
Bits 0:1 - SPI clock mode bits. 0: SPI clock is off when CS inactive 1: SPI clock is delayed one cycle after CS inactive 2: SPI clock is delayed two cycles after CS inactive 3: SPI clock is alwasy on. Can be configured in CONF state.
sourcepub fn clk_mode_13(&mut self) -> CLK_MODE_13_W<'_, 2>
pub fn clk_mode_13(&mut self) -> CLK_MODE_13_W<'_, 2>
Bit 2 - {CPOL, CPHA},1: support spi clk mode 1 and 3, first edge output data B[0]/B[7]. 0: support spi clk mode 0 and 2, first edge output data B[1]/B[6].
sourcepub fn rsck_data_out(&mut self) -> RSCK_DATA_OUT_W<'_, 3>
pub fn rsck_data_out(&mut self) -> RSCK_DATA_OUT_W<'_, 3>
Bit 3 - It saves half a cycle when tsck is the same as rsck. 1: output data at rsck posedge 0: output data at tsck posedge
sourcepub fn w16_17_wr_ena(&mut self) -> W16_17_WR_ENA_W<'_, 4>
pub fn w16_17_wr_ena(&mut self) -> W16_17_WR_ENA_W<'_, 4>
Bit 4 - 1:SPI_BUF16~SPI_BUF17 can be written 0:SPI_BUF16~SPI_BUF17 can not be written. Can be configured in CONF state.
sourcepub fn cs_hold_delay(&mut self) -> CS_HOLD_DELAY_W<'_, 14>
pub fn cs_hold_delay(&mut self) -> CS_HOLD_DELAY_W<'_, 14>
Bits 14:19 - SPI cs signal is delayed by spi clock cycles. Can be configured in CONF state.