Module esp8266::spi0 [−][src]
Expand description
SPI0
Modules
In the master mode, it is the value of address in “address” phase.
In the master mode, 1: spi_clk is eqaul to 80MHz, 0: spi_clk is divided from 80 MHz clock.
In the master mode, it is the start bit of a single operation. Self-clear by hardware
SPI_CTRL
spi_cs signal is delayed by 80MHz clock cycles
This register is for two SPI masters to share the same cs, clock and data signals.
1: disable CS2; 0: spi_cs signal is from/to CS2 pin
In the slave mode, this register are the status register for the master to read out.
It is the synchronous reset signal of the module. This bit is self-cleared by hardware.
In the slave mode, it is the length in bits for “write-status” and “read-status” operations. The register valueshall be (bit_num-1)
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)
In slave mode, it is the value of “write-status” command
This bit enable the “command” phase of an operation.
The length in bits of “address” phase. The register value shall be (bit_num-1)
The length in bits of “command” phase. The register value shall be (bit_num-1)
the data inside the buffer of the SPI module, word 0
the data inside the buffer of the SPI module, word 1
the data inside the buffer of the SPI module, word 2
the data inside the buffer of the SPI module, word 3
the data inside the buffer of the SPI module, word 4
the data inside the buffer of the SPI module, word 5
the data inside the buffer of the SPI module, word 6
the data inside the buffer of the SPI module, word 7
the data inside the buffer of the SPI module, word 8
the data inside the buffer of the SPI module, word 9
the data inside the buffer of the SPI module, word 10
the data inside the buffer of the SPI module, word 11
the data inside the buffer of the SPI module, word 12
the data inside the buffer of the SPI module, word 13
the data inside the buffer of the SPI module, word 14
the data inside the buffer of the SPI module, word 15
In the slave mode, this register are the status register for the master to write into.
Structs
Register block
Type Definitions
SPI_ADDR register accessor: an alias for Reg<SPI_ADDR_SPEC>
SPI_CLOCK register accessor: an alias for Reg<SPI_CLOCK_SPEC>
SPI_CMD register accessor: an alias for Reg<SPI_CMD_SPEC>
SPI_CTRL register accessor: an alias for Reg<SPI_CTRL_SPEC>
SPI_CTRL1 register accessor: an alias for Reg<SPI_CTRL1_SPEC>
SPI_CTRL2 register accessor: an alias for Reg<SPI_CTRL2_SPEC>
SPI_EXT0 register accessor: an alias for Reg<SPI_EXT0_SPEC>
SPI_EXT1 register accessor: an alias for Reg<SPI_EXT1_SPEC>
SPI_EXT2 register accessor: an alias for Reg<SPI_EXT2_SPEC>
SPI_EXT3 register accessor: an alias for Reg<SPI_EXT3_SPEC>
SPI_PIN register accessor: an alias for Reg<SPI_PIN_SPEC>
SPI_RD_STATUS register accessor: an alias for Reg<SPI_RD_STATUS_SPEC>
SPI_SLAVE register accessor: an alias for Reg<SPI_SLAVE_SPEC>
SPI_SLAVE1 register accessor: an alias for Reg<SPI_SLAVE1_SPEC>
SPI_SLAVE2 register accessor: an alias for Reg<SPI_SLAVE2_SPEC>
SPI_SLAVE3 register accessor: an alias for Reg<SPI_SLAVE3_SPEC>
SPI_USER register accessor: an alias for Reg<SPI_USER_SPEC>
SPI_USER1 register accessor: an alias for Reg<SPI_USER1_SPEC>
SPI_USER2 register accessor: an alias for Reg<SPI_USER2_SPEC>
SPI_W0 register accessor: an alias for Reg<SPI_W0_SPEC>
SPI_W1 register accessor: an alias for Reg<SPI_W1_SPEC>
SPI_W2 register accessor: an alias for Reg<SPI_W2_SPEC>
SPI_W3 register accessor: an alias for Reg<SPI_W3_SPEC>
SPI_W4 register accessor: an alias for Reg<SPI_W4_SPEC>
SPI_W5 register accessor: an alias for Reg<SPI_W5_SPEC>
SPI_W6 register accessor: an alias for Reg<SPI_W6_SPEC>
SPI_W7 register accessor: an alias for Reg<SPI_W7_SPEC>
SPI_W8 register accessor: an alias for Reg<SPI_W8_SPEC>
SPI_W9 register accessor: an alias for Reg<SPI_W9_SPEC>
SPI_W10 register accessor: an alias for Reg<SPI_W10_SPEC>
SPI_W11 register accessor: an alias for Reg<SPI_W11_SPEC>
SPI_W12 register accessor: an alias for Reg<SPI_W12_SPEC>
SPI_W13 register accessor: an alias for Reg<SPI_W13_SPEC>
SPI_W14 register accessor: an alias for Reg<SPI_W14_SPEC>
SPI_W15 register accessor: an alias for Reg<SPI_W15_SPEC>
SPI_WR_STATUS register accessor: an alias for Reg<SPI_WR_STATUS_SPEC>