Midnight Sun Firmware
|
SPI settings struct. More...
#include <spi.h>
Public Attributes | |
uint32_t | baudrate |
SpiMode | mode |
GpioAddress | sdo |
GpioAddress | sdi |
GpioAddress | sclk |
GpioAddress | cs |
SPI settings struct.
Typical SPI baudrates are around 1MHz. Mode is selected based off SpiMode. SDO is the data output pin from the perspective of the STM32. SDI is the data input pin from the perspective of the STM32. SCLK is a shared clock signal between the controller and target. CS is the chip select pin which acts as an enable signal.