[][src]Struct esp8266::spi0::spi_slave::R

pub struct R(_);

Reader of register SPI_SLAVE

Implementations

impl R[src]

pub fn spi_sync_reset(&self) -> SPI_SYNC_RESET_R[src]

Bit 31 - It is the synchronous reset signal of the module. This bit is self-cleared by hardware.

pub fn spi_slave_mode(&self) -> SPI_SLAVE_MODE_R[src]

Bit 30 - 1: slave mode, 0: master mode.

pub fn slv_cmd_define(&self) -> SLV_CMD_DEFINE_R[src]

Bit 27 - 1: slave mode commands are defined in SPI_SLAVE3. 0: slave mode commands are fixed as 1: "write-status"; 4: "read-status"; 2: "write-buffer" and 3: "read-buffer".

pub fn spi_trans_cnt(&self) -> SPI_TRANS_CNT_R[src]

Bits 23:26 - The operations counter in both the master mode and the slave mode.

pub fn spi_int_en(&self) -> SPI_INT_EN_R[src]

Bits 5:9 - Interrupt enable bits for the below 5 sources

pub fn spi_trans_done(&self) -> SPI_TRANS_DONE_R[src]

Bit 4 - The interrupt raw bit for the completement of any operation in both the master mode and the slave mode.

pub fn slv_wr_sta_done(&self) -> SLV_WR_STA_DONE_R[src]

Bit 3 - The interrupt raw bit for the completement of "write-status" operation in the slave mode.

pub fn slv_rd_sta_done(&self) -> SLV_RD_STA_DONE_R[src]

Bit 2 - The interrupt raw bit for the completement of "read-status" operation in the slave mode.

pub fn slv_wr_buf_done(&self) -> SLV_WR_BUF_DONE_R[src]

Bit 1 - The interrupt raw bit for the completement of "write-buffer" operation in the slave mode.

pub fn slv_rd_buf_done(&self) -> SLV_RD_BUF_DONE_R[src]

Bit 0 - The interrupt raw bit for the completement of "read-buffer" operation in the slave mode.

Methods from Deref<Target = R<SPI_SLAVE_SPEC>>

pub fn bits(&self) -> REG::Ux[src]

Reads raw bits from register.

Trait Implementations

impl Deref for R[src]

type Target = R<SPI_SLAVE_SPEC>

The resulting type after dereferencing.

impl From<R<SPI_SLAVE_SPEC>> for R[src]

Auto Trait Implementations

impl Send for R

impl Sync for R

impl Unpin for R

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.