pub struct R(_);
Expand description
Register SLAVE
reader
Implementations§
§impl R
impl R
pub fn slv_rd_buf_done(&self) -> BitReaderRaw<bool>
pub fn slv_rd_buf_done(&self) -> BitReaderRaw<bool>
Bit 0 - The interrupt raw bit for the completion of read-buffer operation in the slave mode.
pub fn slv_wr_buf_done(&self) -> BitReaderRaw<bool>
pub fn slv_wr_buf_done(&self) -> BitReaderRaw<bool>
Bit 1 - The interrupt raw bit for the completion of write-buffer operation in the slave mode.
pub fn slv_rd_sta_done(&self) -> BitReaderRaw<bool>
pub fn slv_rd_sta_done(&self) -> BitReaderRaw<bool>
Bit 2 - The interrupt raw bit for the completion of read-status operation in the slave mode.
pub fn slv_wr_sta_done(&self) -> BitReaderRaw<bool>
pub fn slv_wr_sta_done(&self) -> BitReaderRaw<bool>
Bit 3 - The interrupt raw bit for the completion of write-status operation in the slave mode.
pub fn trans_done(&self) -> BitReaderRaw<bool>
pub fn trans_done(&self) -> BitReaderRaw<bool>
Bit 4 - The interrupt raw bit for the completion of any operation in both the master mode and the slave mode.
pub fn int_en(&self) -> FieldReaderRaw<u8, u8>
pub fn int_en(&self) -> FieldReaderRaw<u8, u8>
Bits 5:9 - Interrupt enable bits for the below 5 sources
pub fn cs_i_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn cs_i_mode(&self) -> FieldReaderRaw<u8, u8>
Bits 10:11 - In the slave mode this bits used to synchronize the input spi cs signal and eliminate spi cs jitter.
pub fn slv_last_command(&self) -> FieldReaderRaw<u8, u8>
pub fn slv_last_command(&self) -> FieldReaderRaw<u8, u8>
Bits 17:19 - In the slave mode it is the value of command.
pub fn slv_last_state(&self) -> FieldReaderRaw<u8, u8>
pub fn slv_last_state(&self) -> FieldReaderRaw<u8, u8>
Bits 20:22 - In the slave mode it is the state of spi state machine.
pub fn trans_cnt(&self) -> FieldReaderRaw<u8, u8>
pub fn trans_cnt(&self) -> FieldReaderRaw<u8, u8>
Bits 23:26 - The operations counter in both the master mode and the slave mode. 4: read-status
pub fn slv_cmd_define(&self) -> BitReaderRaw<bool>
pub fn slv_cmd_define(&self) -> BitReaderRaw<bool>
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.
pub fn slv_wr_rd_sta_en(&self) -> BitReaderRaw<bool>
pub fn slv_wr_rd_sta_en(&self) -> BitReaderRaw<bool>
Bit 28 - write and read status enable in the slave mode
pub fn slv_wr_rd_buf_en(&self) -> BitReaderRaw<bool>
pub fn slv_wr_rd_buf_en(&self) -> BitReaderRaw<bool>
Bit 29 - write and read buffer enable in the slave mode
pub fn sync_reset(&self) -> BitReaderRaw<bool>
pub fn sync_reset(&self) -> BitReaderRaw<bool>
Bit 31 - Software reset enable, reset the spi clock line cs line and data lines.
Methods from Deref<Target = R<SLAVE_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.