pub struct R(_);
Expand description
Register CTRL1
reader
Implementations§
source§impl R
impl R
sourcepub fn clk_mode(&self) -> CLK_MODE_R
pub fn clk_mode(&self) -> CLK_MODE_R
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(&self) -> CLK_MODE_13_R
pub fn clk_mode_13(&self) -> CLK_MODE_13_R
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(&self) -> RSCK_DATA_OUT_R
pub fn rsck_data_out(&self) -> RSCK_DATA_OUT_R
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(&self) -> W16_17_WR_ENA_R
pub fn w16_17_wr_ena(&self) -> W16_17_WR_ENA_R
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(&self) -> CS_HOLD_DELAY_R
pub fn cs_hold_delay(&self) -> CS_HOLD_DELAY_R
Bits 14:19 - SPI cs signal is delayed by spi clock cycles. Can be configured in CONF state.