pub struct R(_);
Expand description
Register CTRL2
reader
Implementations§
§impl R
impl R
pub fn setup_time(&self) -> FieldReaderRaw<u8, u8>
pub fn setup_time(&self) -> FieldReaderRaw<u8, u8>
Bits 0:3 - (cycles-1) of ¡°prepare¡± phase by spi clock, this bits combined with spi_cs_setup bit.
pub fn hold_time(&self) -> FieldReaderRaw<u8, u8>
pub fn hold_time(&self) -> FieldReaderRaw<u8, u8>
Bits 4:7 - delay cycles of cs pin by spi clock, this bits combined with spi_cs_hold bit.
pub fn ck_out_low_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn ck_out_low_mode(&self) -> FieldReaderRaw<u8, u8>
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.
pub fn ck_out_high_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn ck_out_high_mode(&self) -> FieldReaderRaw<u8, u8>
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.
pub fn miso_delay_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn miso_delay_mode(&self) -> FieldReaderRaw<u8, u8>
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
pub fn miso_delay_num(&self) -> FieldReaderRaw<u8, u8>
pub fn miso_delay_num(&self) -> FieldReaderRaw<u8, u8>
Bits 18:20 - MISO signals are delayed by system clock cycles
pub fn mosi_delay_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn mosi_delay_mode(&self) -> FieldReaderRaw<u8, u8>
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
pub fn mosi_delay_num(&self) -> FieldReaderRaw<u8, u8>
pub fn mosi_delay_num(&self) -> FieldReaderRaw<u8, u8>
Bits 23:25 - MOSI signals are delayed by system clock cycles
pub fn cs_delay_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn cs_delay_mode(&self) -> FieldReaderRaw<u8, u8>
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
pub fn cs_delay_num(&self) -> FieldReaderRaw<u8, u8>
pub fn cs_delay_num(&self) -> FieldReaderRaw<u8, u8>
Bits 28:31 - spi_cs signal is delayed by system clock cycles
Methods from Deref<Target = R<CTRL2_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.