Struct esp32c2_hal::pac::spi1::ctrl::R
pub struct R(_);
Expand description
Register CTRL
reader
Implementations§
§impl R
impl R
pub fn fdummy_out(&self) -> BitReaderRaw<bool>
pub fn fdummy_out(&self) -> BitReaderRaw<bool>
Bit 3 - In the dummy phase the signal level of spi is output by the spi controller.
pub fn fcmd_dual(&self) -> BitReaderRaw<bool>
pub fn fcmd_dual(&self) -> BitReaderRaw<bool>
Bit 7 - Apply 2 signals during command phase 1:enable 0: disable
pub fn fcmd_quad(&self) -> BitReaderRaw<bool>
pub fn fcmd_quad(&self) -> BitReaderRaw<bool>
Bit 8 - Apply 4 signals during command phase 1:enable 0: disable
pub fn fcs_crc_en(&self) -> BitReaderRaw<bool>
pub fn fcs_crc_en(&self) -> BitReaderRaw<bool>
Bit 10 - For SPI1, initialize crc32 module before writing encrypted data to flash. Active low.
pub fn tx_crc_en(&self) -> BitReaderRaw<bool>
pub fn tx_crc_en(&self) -> BitReaderRaw<bool>
Bit 11 - For SPI1, enable crc32 when writing encrypted data to flash. 1: enable 0:disable
pub fn fastrd_mode(&self) -> BitReaderRaw<bool>
pub fn fastrd_mode(&self) -> BitReaderRaw<bool>
Bit 13 - This bit enable the bits: spi_mem_fread_qio, spi_mem_fread_dio, spi_mem_fread_qout and spi_mem_fread_dout. 1: enable 0: disable.
pub fn fread_dual(&self) -> BitReaderRaw<bool>
pub fn fread_dual(&self) -> BitReaderRaw<bool>
Bit 14 - In the read operations, read-data phase apply 2 signals. 1: enable 0: disable.
pub fn resandres(&self) -> BitReaderRaw<bool>
pub fn resandres(&self) -> BitReaderRaw<bool>
Bit 15 - The Device ID is read out to SPI_MEM_RD_STATUS register, this bit combine with spi_mem_flash_res bit. 1: enable 0: disable.
pub fn q_pol(&self) -> BitReaderRaw<bool>
pub fn q_pol(&self) -> BitReaderRaw<bool>
Bit 18 - The bit is used to set MISO line polarity, 1: high 0, low
pub fn d_pol(&self) -> BitReaderRaw<bool>
pub fn d_pol(&self) -> BitReaderRaw<bool>
Bit 19 - The bit is used to set MOSI line polarity, 1: high 0, low
pub fn fread_quad(&self) -> BitReaderRaw<bool>
pub fn fread_quad(&self) -> BitReaderRaw<bool>
Bit 20 - In the read operations read-data phase apply 4 signals. 1: enable 0: disable.
pub fn wp(&self) -> BitReaderRaw<bool>
pub fn wp(&self) -> BitReaderRaw<bool>
Bit 21 - Write protect signal output when SPI is idle. 1: output high, 0: output low.
pub fn wrsr_2b(&self) -> BitReaderRaw<bool>
pub fn wrsr_2b(&self) -> BitReaderRaw<bool>
Bit 22 - two bytes data will be written to status register when it is set. 1: enable 0: disable.
Methods from Deref<Target = R<CTRL_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.