pub type R = R<SLAVE_SPEC>;
Expand description
Register SLAVE
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
Source§impl R
impl R
Sourcepub fn slv_rd_buf_done(&self) -> SLV_RD_BUF_DONE_R
pub fn slv_rd_buf_done(&self) -> SLV_RD_BUF_DONE_R
Bit 0 - The interrupt raw bit for the completion of read-buffer operation in the slave mode.
Sourcepub fn slv_wr_buf_done(&self) -> SLV_WR_BUF_DONE_R
pub fn slv_wr_buf_done(&self) -> SLV_WR_BUF_DONE_R
Bit 1 - The interrupt raw bit for the completion of write-buffer operation in the slave mode.
Sourcepub fn slv_rd_sta_done(&self) -> SLV_RD_STA_DONE_R
pub fn slv_rd_sta_done(&self) -> SLV_RD_STA_DONE_R
Bit 2 - The interrupt raw bit for the completion of read-status operation in the slave mode.
Sourcepub fn slv_wr_sta_done(&self) -> SLV_WR_STA_DONE_R
pub fn slv_wr_sta_done(&self) -> SLV_WR_STA_DONE_R
Bit 3 - The interrupt raw bit for the completion of write-status operation in the slave mode.
Sourcepub fn trans_done(&self) -> TRANS_DONE_R
pub fn trans_done(&self) -> TRANS_DONE_R
Bit 4 - The interrupt raw bit for the completion of any operation in both the master mode and the slave mode.
Sourcepub fn slv_rd_buf_inten(&self) -> SLV_RD_BUF_INTEN_R
pub fn slv_rd_buf_inten(&self) -> SLV_RD_BUF_INTEN_R
Bit 5 - The interrupt enable bit for the SPI_SLV_RD_BUF_INT interrupt.
Sourcepub fn slv_wr_buf_inten(&self) -> SLV_WR_BUF_INTEN_R
pub fn slv_wr_buf_inten(&self) -> SLV_WR_BUF_INTEN_R
Bit 6 - The interrupt enable bit for the SPI_SLV_WR_BUF_INT interrupt.
Sourcepub fn slv_rd_sta_inten(&self) -> SLV_RD_STA_INTEN_R
pub fn slv_rd_sta_inten(&self) -> SLV_RD_STA_INTEN_R
Bit 7 - The interrupt enable bit for the SPI_SLV_RD_STA_INT interrupt.
Sourcepub fn slv_wr_sta_inten(&self) -> SLV_WR_STA_INTEN_R
pub fn slv_wr_sta_inten(&self) -> SLV_WR_STA_INTEN_R
Bit 8 - The interrupt enable bit for the SPI_SLV_WR_STA_INT interrupt.
Sourcepub fn trans_inten(&self) -> TRANS_INTEN_R
pub fn trans_inten(&self) -> TRANS_INTEN_R
Bit 9 - The interrupt enable bit for the SPI_TRANS_DONE_INT interrupt.
Sourcepub fn cs_i_mode(&self) -> CS_I_MODE_R
pub fn cs_i_mode(&self) -> CS_I_MODE_R
Bits 10:11 - In the slave mode this bits used to synchronize the input spi cs signal and eliminate spi cs jitter.
Sourcepub fn slv_last_command(&self) -> SLV_LAST_COMMAND_R
pub fn slv_last_command(&self) -> SLV_LAST_COMMAND_R
Bits 17:19 - In the slave mode it is the value of command.
Sourcepub fn slv_last_state(&self) -> SLV_LAST_STATE_R
pub fn slv_last_state(&self) -> SLV_LAST_STATE_R
Bits 20:22 - In the slave mode it is the state of spi state machine.
Sourcepub fn trans_cnt(&self) -> TRANS_CNT_R
pub fn trans_cnt(&self) -> TRANS_CNT_R
Bits 23:26 - The operations counter in both the master mode and the slave mode. 4: read-status
Sourcepub fn slv_cmd_define(&self) -> SLV_CMD_DEFINE_R
pub fn slv_cmd_define(&self) -> SLV_CMD_DEFINE_R
Bit 27 - 1: slave mode commands are defined in SPI_SLAVE3. 0: slave mode commands are fixed as: 1: write-status 2: write-buffer and 3: read-buffer.
Sourcepub fn slv_wr_rd_sta_en(&self) -> SLV_WR_RD_STA_EN_R
pub fn slv_wr_rd_sta_en(&self) -> SLV_WR_RD_STA_EN_R
Bit 28 - write and read status enable in the slave mode
Sourcepub fn slv_wr_rd_buf_en(&self) -> SLV_WR_RD_BUF_EN_R
pub fn slv_wr_rd_buf_en(&self) -> SLV_WR_RD_BUF_EN_R
Bit 29 - write and read buffer enable in the slave mode
Sourcepub fn sync_reset(&self) -> SYNC_RESET_R
pub fn sync_reset(&self) -> SYNC_RESET_R
Bit 31 - Software reset enable, reset the spi clock line cs line and data lines.