[−][src]Struct esp8266::spi0::RegisterBlock
Register block
Fields
spi_cmd: Reg<SPI_CMD_SPEC>
0x00 - In the master mode, it is the start bit of a single operation. Self-clear by hardware
spi_addr: Reg<SPI_ADDR_SPEC>
0x04 - In the master mode, it is the value of address in "address" phase.
spi_ctrl: Reg<SPI_CTRL_SPEC>
0x08 - SPI_CTRL
spi_ctrl1: Reg<SPI_CTRL1_SPEC>
0x0c -
spi_rd_status: Reg<SPI_RD_STATUS_SPEC>
0x10 - In the slave mode, this register are the status register for the master to read out.
spi_ctrl2: Reg<SPI_CTRL2_SPEC>
0x14 - spi_cs signal is delayed by 80MHz clock cycles
spi_clock: Reg<SPI_CLOCK_SPEC>
0x18 - In the master mode, 1: spi_clk is eqaul to 80MHz, 0: spi_clk is divided from 80 MHz clock.
spi_user: Reg<SPI_USER_SPEC>
0x1c - This bit enable the "command" phase of an operation.
spi_user1: Reg<SPI_USER1_SPEC>
0x20 - The length in bits of "address" phase. The register value shall be (bit_num-1)
spi_user2: Reg<SPI_USER2_SPEC>
0x24 - The length in bits of "command" phase. The register value shall be (bit_num-1)
spi_wr_status: Reg<SPI_WR_STATUS_SPEC>
0x28 - In the slave mode, this register are the status register for the master to write into.
spi_pin: Reg<SPI_PIN_SPEC>
0x2c - 1: disable CS2; 0: spi_cs signal is from/to CS2 pin
spi_slave: Reg<SPI_SLAVE_SPEC>
0x30 - It is the synchronous reset signal of the module. This bit is self-cleared by hardware.
spi_slave1: Reg<SPI_SLAVE1_SPEC>
0x34 - In the slave mode, it is the length in bits for "write-status" and "read-status" operations. The register valueshall be (bit_num-1)
spi_slave2: Reg<SPI_SLAVE2_SPEC>
0x38 - In the slave mode, it is the length in spi_clk cycles "dummy" phase for "write-buffer" operations. The registervalue shall be (cycle_num-1)
spi_slave3: Reg<SPI_SLAVE3_SPEC>
0x3c - In slave mode, it is the value of "write-status" command
spi_w0: Reg<SPI_W0_SPEC>
0x40 - the data inside the buffer of the SPI module, byte 0
spi_w1: Reg<SPI_W1_SPEC>
0x60 - the data inside the buffer of the SPI module, byte 1
spi_w2: Reg<SPI_W2_SPEC>
0x80 - the data inside the buffer of the SPI module, byte 2
spi_w3: Reg<SPI_W3_SPEC>
0xa0 - the data inside the buffer of the SPI module, byte 3
spi_w4: Reg<SPI_W4_SPEC>
0xc0 - the data inside the buffer of the SPI module, byte 4
spi_w5: Reg<SPI_W5_SPEC>
0xe0 - the data inside the buffer of the SPI module, byte 5
spi_ext3: Reg<SPI_EXT3_SPEC>
0xfc - This register is for two SPI masters to share the same cs, clock and data signals.
spi_w6: Reg<SPI_W6_SPEC>
0x100 - the data inside the buffer of the SPI module, byte 6
spi_w7: Reg<SPI_W7_SPEC>
0x120 - the data inside the buffer of the SPI module, byte 7
spi_w8: Reg<SPI_W8_SPEC>
0x140 - the data inside the buffer of the SPI module, byte 8
spi_w9: Reg<SPI_W9_SPEC>
0x160 - the data inside the buffer of the SPI module, byte 9
spi_w10: Reg<SPI_W10_SPEC>
0x180 - the data inside the buffer of the SPI module, byte 10
spi_w11: Reg<SPI_W11_SPEC>
0x1a0 - the data inside the buffer of the SPI module, byte 11
spi_w12: Reg<SPI_W12_SPEC>
0x1c0 - the data inside the buffer of the SPI module, byte 12
spi_w13: Reg<SPI_W13_SPEC>
0x1e0 - the data inside the buffer of the SPI module, byte 13
spi_w14: Reg<SPI_W14_SPEC>
0x200 - the data inside the buffer of the SPI module, byte 14
spi_w15: Reg<SPI_W15_SPEC>
0x220 - the data inside the buffer of the SPI module, byte 15
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,