pub type R = R<CTRL2_SPEC>;
Expand description
Register CTRL2
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
source§impl R
impl R
sourcepub fn setup_time(&self) -> SETUP_TIME_R
pub fn setup_time(&self) -> SETUP_TIME_R
Bits 0:3 - (cycles-1) of ¡°prepare¡± phase by spi clock, this bits combined with spi_cs_setup bit.
sourcepub fn hold_time(&self) -> HOLD_TIME_R
pub fn hold_time(&self) -> HOLD_TIME_R
Bits 4:7 - delay cycles of cs pin by spi clock, this bits combined with spi_cs_hold bit.
sourcepub fn ck_out_low_mode(&self) -> CK_OUT_LOW_MODE_R
pub fn ck_out_low_mode(&self) -> CK_OUT_LOW_MODE_R
Bits 8:11 - modify spi clock duty ratio when the value is lager than 8, the bits are combined with spi_clkcnt_N bits and spi_clkcnt_L bits.
sourcepub fn ck_out_high_mode(&self) -> CK_OUT_HIGH_MODE_R
pub fn ck_out_high_mode(&self) -> CK_OUT_HIGH_MODE_R
Bits 12:15 - modify spi clock duty ratio when the value is lager than 8, the bits are combined with spi_clkcnt_N bits and spi_clkcnt_H bits.
sourcepub fn miso_delay_mode(&self) -> MISO_DELAY_MODE_R
pub fn miso_delay_mode(&self) -> MISO_DELAY_MODE_R
Bits 16:17 - MISO signals are delayed by spi_clk. 0: zero 1: if spi_ck_out_edge or spi_ck_i_edge is set 1 delayed by half cycle else delayed by one cycle 2: if spi_ck_out_edge or spi_ck_i_edge is set 1 delayed by one cycle else delayed by half cycle 3: delayed one cycle
sourcepub fn miso_delay_num(&self) -> MISO_DELAY_NUM_R
pub fn miso_delay_num(&self) -> MISO_DELAY_NUM_R
Bits 18:20 - MISO signals are delayed by system clock cycles
sourcepub fn mosi_delay_mode(&self) -> MOSI_DELAY_MODE_R
pub fn mosi_delay_mode(&self) -> MOSI_DELAY_MODE_R
Bits 21:22 - MOSI signals are delayed by spi_clk. 0: zero 1: if spi_ck_out_edge or spi_ck_i_edge is set 1 delayed by half cycle else delayed by one cycle 2: if spi_ck_out_edge or spi_ck_i_edge is set 1 delayed by one cycle else delayed by half cycle 3: delayed one cycle
sourcepub fn mosi_delay_num(&self) -> MOSI_DELAY_NUM_R
pub fn mosi_delay_num(&self) -> MOSI_DELAY_NUM_R
Bits 23:25 - MOSI signals are delayed by system clock cycles
sourcepub fn cs_delay_mode(&self) -> CS_DELAY_MODE_R
pub fn cs_delay_mode(&self) -> CS_DELAY_MODE_R
Bits 26:27 - spi_cs signal is delayed by spi_clk . 0: zero 1: if spi_ck_out_edge or spi_ck_i_edge is set 1 delayed by half cycle else delayed by one cycle 2: if spi_ck_out_edge or spi_ck_i_edge is set 1 delayed by one cycle else delayed by half cycle 3: delayed one cycle
sourcepub fn cs_delay_num(&self) -> CS_DELAY_NUM_R
pub fn cs_delay_num(&self) -> CS_DELAY_NUM_R
Bits 28:31 - spi_cs signal is delayed by system clock cycles