Type Alias esp32c3::spi1::flash_sus_ctrl::R

source ·
pub type R = R<FLASH_SUS_CTRL_SPEC>;
Expand description

Register FLASH_SUS_CTRL reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn flash_per(&self) -> FLASH_PER_R

Bit 0 - program erase resume bit, program erase suspend operation will be triggered when the bit is set. The bit will be cleared once the operation done.1: enable 0: disable.

source

pub fn flash_pes(&self) -> FLASH_PES_R

Bit 1 - program erase suspend bit, program erase suspend operation will be triggered when the bit is set. The bit will be cleared once the operation done.1: enable 0: disable.

source

pub fn flash_per_wait_en(&self) -> FLASH_PER_WAIT_EN_R

Bit 2 - 1: SPI1 waits (SPI_MEM_CS_HOLD_DELAY_RES[9:0] * 4 or *128) SPI_CLK cycles after program erase resume command is sent. 0: SPI1 does not wait after program erase resume command is sent.

source

pub fn flash_pes_wait_en(&self) -> FLASH_PES_WAIT_EN_R

Bit 3 - 1: SPI1 waits (SPI_MEM_CS_HOLD_DELAY_RES[9:0] * 4 or *128) SPI_CLK cycles after program erase suspend command is sent. 0: SPI1 does not wait after program erase suspend command is sent.

source

pub fn pes_per_en(&self) -> PES_PER_EN_R

Bit 4 - Set this bit to enable PES end triggers PER transfer option. If this bit is 0, application should send PER after PES is done.

source

pub fn flash_pes_en(&self) -> FLASH_PES_EN_R

Bit 5 - Set this bit to enable Auto-suspending function.

source

pub fn pesr_end_msk(&self) -> PESR_END_MSK_R

Bits 6:21 - The mask value when check SUS/SUS1/SUS2 status bit. If the read status value is status_in[15:0](only status_in[7:0] is valid when only one byte of data is read out, status_in[15:0] is valid when two bytes of data are read out), SUS/SUS1/SUS2 = status_in[15:0]^ SPI_MEM_PESR_END_MSK[15:0].

source

pub fn rd_sus_2b(&self) -> RD_SUS_2B_R

Bit 22 - 1: Read two bytes when check flash SUS/SUS1/SUS2 status bit. 0: Read one byte when check flash SUS/SUS1/SUS2 status bit

source

pub fn per_end_en(&self) -> PER_END_EN_R

Bit 23 - 1: Both WIP and SUS/SUS1/SUS2 bits should be checked to insure the resume status of flash. 0: Only need to check WIP is 0.

source

pub fn pes_end_en(&self) -> PES_END_EN_R

Bit 24 - 1: Both WIP and SUS/SUS1/SUS2 bits should be checked to insure the suspend status of flash. 0: Only need to check WIP is 0.

source

pub fn sus_timeout_cnt(&self) -> SUS_TIMEOUT_CNT_R

Bits 25:31 - When SPI1 checks SUS/SUS1/SUS2 bits fail for SPI_MEM_SUS_TIMEOUT_CNT[6:0] times, it will be treated as check pass.