Module spi1

Module spi1 

Source
Expand description

SPI1

Modules§

spi_addr
In the master mode, it is the value of address in “address” phase.
spi_clock
In the master mode, 1: spi_clk is eqaul to 80MHz, 0: spi_clk is divided from 80 MHz clock.
spi_cmd
In the master mode, it is the start bit of a single operation. Self-clear by hardware
spi_ctrl
SPI_CTRL
spi_ctrl1
spi_ctrl2
spi_cs signal is delayed by 80MHz clock cycles
spi_ext0
spi_ext1
spi_ext2
spi_ext3
This register is for two SPI masters to share the same cs, clock and data signals.
spi_pin
1: disable CS2; 0: spi_cs signal is from/to CS2 pin
spi_rd_status
In the slave mode, this register are the status register for the master to read out.
spi_slave
It is the synchronous reset signal of the module. This bit is self-cleared by hardware.
spi_slave1
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
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
In slave mode, it is the value of “write-status” command
spi_user
This bit enable the “command” phase of an operation.
spi_user1
The length in bits of “address” phase. The register value shall be (bit_num-1)
spi_user2
The length in bits of “command” phase. The register value shall be (bit_num-1)
spi_w0
the data inside the buffer of the SPI module, word 0
spi_w1
the data inside the buffer of the SPI module, word 1
spi_w2
the data inside the buffer of the SPI module, word 2
spi_w3
the data inside the buffer of the SPI module, word 3
spi_w4
the data inside the buffer of the SPI module, word 4
spi_w5
the data inside the buffer of the SPI module, word 5
spi_w6
the data inside the buffer of the SPI module, word 6
spi_w7
the data inside the buffer of the SPI module, word 7
spi_w8
the data inside the buffer of the SPI module, word 8
spi_w9
the data inside the buffer of the SPI module, word 9
spi_w10
the data inside the buffer of the SPI module, word 10
spi_w11
the data inside the buffer of the SPI module, word 11
spi_w12
the data inside the buffer of the SPI module, word 12
spi_w13
the data inside the buffer of the SPI module, word 13
spi_w14
the data inside the buffer of the SPI module, word 14
spi_w15
the data inside the buffer of the SPI module, word 15
spi_wr_status
In the slave mode, this register are the status register for the master to write into.

Structs§

RegisterBlock
Register block

Type Aliases§

SPI_ADDR
SPI_ADDR register accessor: an alias for Reg<SPI_ADDR_SPEC>
SPI_CLOCK
SPI_CLOCK register accessor: an alias for Reg<SPI_CLOCK_SPEC>
SPI_CMD
SPI_CMD register accessor: an alias for Reg<SPI_CMD_SPEC>
SPI_CTRL
SPI_CTRL register accessor: an alias for Reg<SPI_CTRL_SPEC>
SPI_CTRL1
SPI_CTRL1 register accessor: an alias for Reg<SPI_CTRL1_SPEC>
SPI_CTRL2
SPI_CTRL2 register accessor: an alias for Reg<SPI_CTRL2_SPEC>
SPI_EXT0
SPI_EXT0 register accessor: an alias for Reg<SPI_EXT0_SPEC>
SPI_EXT1
SPI_EXT1 register accessor: an alias for Reg<SPI_EXT1_SPEC>
SPI_EXT2
SPI_EXT2 register accessor: an alias for Reg<SPI_EXT2_SPEC>
SPI_EXT3
SPI_EXT3 register accessor: an alias for Reg<SPI_EXT3_SPEC>
SPI_PIN
SPI_PIN register accessor: an alias for Reg<SPI_PIN_SPEC>
SPI_RD_STATUS
SPI_RD_STATUS register accessor: an alias for Reg<SPI_RD_STATUS_SPEC>
SPI_SLAVE
SPI_SLAVE register accessor: an alias for Reg<SPI_SLAVE_SPEC>
SPI_SLAVE1
SPI_SLAVE1 register accessor: an alias for Reg<SPI_SLAVE1_SPEC>
SPI_SLAVE2
SPI_SLAVE2 register accessor: an alias for Reg<SPI_SLAVE2_SPEC>
SPI_SLAVE3
SPI_SLAVE3 register accessor: an alias for Reg<SPI_SLAVE3_SPEC>
SPI_USER
SPI_USER register accessor: an alias for Reg<SPI_USER_SPEC>
SPI_USER1
SPI_USER1 register accessor: an alias for Reg<SPI_USER1_SPEC>
SPI_USER2
SPI_USER2 register accessor: an alias for Reg<SPI_USER2_SPEC>
SPI_W0
SPI_W0 register accessor: an alias for Reg<SPI_W0_SPEC>
SPI_W1
SPI_W1 register accessor: an alias for Reg<SPI_W1_SPEC>
SPI_W2
SPI_W2 register accessor: an alias for Reg<SPI_W2_SPEC>
SPI_W3
SPI_W3 register accessor: an alias for Reg<SPI_W3_SPEC>
SPI_W4
SPI_W4 register accessor: an alias for Reg<SPI_W4_SPEC>
SPI_W5
SPI_W5 register accessor: an alias for Reg<SPI_W5_SPEC>
SPI_W6
SPI_W6 register accessor: an alias for Reg<SPI_W6_SPEC>
SPI_W7
SPI_W7 register accessor: an alias for Reg<SPI_W7_SPEC>
SPI_W8
SPI_W8 register accessor: an alias for Reg<SPI_W8_SPEC>
SPI_W9
SPI_W9 register accessor: an alias for Reg<SPI_W9_SPEC>
SPI_W10
SPI_W10 register accessor: an alias for Reg<SPI_W10_SPEC>
SPI_W11
SPI_W11 register accessor: an alias for Reg<SPI_W11_SPEC>
SPI_W12
SPI_W12 register accessor: an alias for Reg<SPI_W12_SPEC>
SPI_W13
SPI_W13 register accessor: an alias for Reg<SPI_W13_SPEC>
SPI_W14
SPI_W14 register accessor: an alias for Reg<SPI_W14_SPEC>
SPI_W15
SPI_W15 register accessor: an alias for Reg<SPI_W15_SPEC>
SPI_WR_STATUS
SPI_WR_STATUS register accessor: an alias for Reg<SPI_WR_STATUS_SPEC>