C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
struct_ConfigMasterSPI Struct Reference

The configuration data of SPI interface used as Master. More...

#include <hw_spi.h>

Collaboration diagram for struct_ConfigMasterSPI:
Collaboration graph

Public Attributes

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)
 
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)
 

Detailed Description

The configuration data of SPI interface used as Master.


The documentation for this struct was generated from the following file: