pub type R = R<ECC_CTRL_SPEC>;
Expand description
Register ECC_CTRL
reader
Aliased Type§
pub struct R { /* private fields */ }
Implementations§
Source§impl R
impl R
Sourcepub fn spi_fmem_ecc_err_int_num(&self) -> SPI_FMEM_ECC_ERR_INT_NUM_R
pub fn spi_fmem_ecc_err_int_num(&self) -> SPI_FMEM_ECC_ERR_INT_NUM_R
Bits 11:16 - Set the error times of MSPI ECC read to generate MSPI SPI_MEM_ECC_ERR_INT interrupt.
Sourcepub fn spi_fmem_ecc_err_int_en(&self) -> SPI_FMEM_ECC_ERR_INT_EN_R
pub fn spi_fmem_ecc_err_int_en(&self) -> SPI_FMEM_ECC_ERR_INT_EN_R
Bit 17 - Set this bit to calculate the error times of MSPI ECC read when accesses to flash.
Sourcepub fn spi_fmem_page_size(&self) -> SPI_FMEM_PAGE_SIZE_R
pub fn spi_fmem_page_size(&self) -> SPI_FMEM_PAGE_SIZE_R
Bits 18:19 - Set the page size of the flash accessed by MSPI. 0: 256 bytes. 1: 512 bytes. 2: 1024 bytes. 3: 2048 bytes.
Sourcepub fn spi_fmem_ecc_addr_en(&self) -> SPI_FMEM_ECC_ADDR_EN_R
pub fn spi_fmem_ecc_addr_en(&self) -> SPI_FMEM_ECC_ADDR_EN_R
Bit 20 - Set this bit to enable MSPI ECC address conversion, no matter MSPI accesses to the ECC region or non-ECC region of flash. If there is no ECC region in flash, this bit should be 0. Otherwise, this bit should be 1.
Sourcepub fn usr_ecc_addr_en(&self) -> USR_ECC_ADDR_EN_R
pub fn usr_ecc_addr_en(&self) -> USR_ECC_ADDR_EN_R
Bit 21 - Set this bit to enable ECC address convert in SPI0/1 USR_CMD transfer.
Sourcepub fn ecc_continue_record_err_en(&self) -> ECC_CONTINUE_RECORD_ERR_EN_R
pub fn ecc_continue_record_err_en(&self) -> ECC_CONTINUE_RECORD_ERR_EN_R
Bit 24 - 1: The error information in SPI_MEM_ECC_ERR_BITS and SPI_MEM_ECC_ERR_ADDR is updated when there is an ECC error. 0: SPI_MEM_ECC_ERR_BITS and SPI_MEM_ECC_ERR_ADDR record the first ECC error information.
Sourcepub fn ecc_err_bits(&self) -> ECC_ERR_BITS_R
pub fn ecc_err_bits(&self) -> ECC_ERR_BITS_R
Bits 25:31 - Records the first ECC error bit number in the 16 bytes(From 0~127, corresponding to byte 0 bit 0 to byte 15 bit 7)