Midnight Sun Firmware
Loading...
Searching...
No Matches
SpiSettings

SPI settings struct. More...

#include <spi.h>

Collaboration diagram for SpiSettings:

Public Attributes

uint32_t baudrate
 
SpiMode mode
 
GpioAddress sdo
 
GpioAddress sdi
 
GpioAddress sclk
 
GpioAddress cs
 

Detailed Description

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.


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