The configuration data of SPI interface used as Master.
More...
#include <hw_spi.h>
|
|
spi_inst_t * | spi = spi1 |
| | the SPI interface used in the rp2040: spi0 or spi1
|
| |
|
uint | sck_pin = 10 |
| | the associated gpio pin for clock
|
| |
|
uint | tx_pin = 11 |
| | the associated gpio pin for TX (MOSI)
|
| |
|
uint | rx_pin = 12 |
| | the associated gpio pin for RX (MISO)
|
| |
|
uint | cs_pin = 13 |
| | the associated gpio pin for Chip Select
|
| |
|
uint | baud_rate_Hz = 1000 * 1000 |
| | the SPI baudrate(default to 1MHz)
|
| |
|
uint | transfer_size = 8 |
| | size of SPI trasfert. Should be between 4 and 16. Default to 8.
|
| |
|
spi_cpha_t | clk_phase = SPI_CPHA_0 |
| | clock phase (default to standard 0)
|
| |
|
spi_cpol_t | spi_polarity = SPI_CPOL_0 |
| | signal polarity (default to standard 0)
|
| |
|
spi_order_t | bit_order = SPI_MSB_FIRST |
| | bit order (default to MSB first)
|
| |
The configuration data of SPI interface used as Master.
The documentation for this struct was generated from the following file: