uMIDI
The swiss army knife for quick and easy developement of MIDI applications.
Data Fields
spi_config Struct Reference

Configuration structure for the SPI emulation module. More...

#include <spi.h>

Collaboration diagram for spi_config:
Collaboration graph

Data Fields

bool clk_phase
 Clock phase. More...
 
bool clk_polarity
 Clock polarity. More...
 
uint8_t word_length
 Word length. More...
 
const struct gpio_pinclk_pin
 The GPIO pin connected to the clock line. More...
 
const struct gpio_pinmiso_pin
 The GPIO pin connected to the MISO line (may be NULL if not present) More...
 
const struct gpio_pinmosi_pin
 The GPIO pin connected to the MOSI line (may be NULL if not present) More...
 
const struct gpio_pinncs_pin
 The GPIO pin connected to the (inverted) chip select line (may be NULL) More...
 

Detailed Description

Configuration structure for the SPI emulation module.

Field Documentation

◆ clk_phase

bool spi_config::clk_phase

Clock phase.

◆ clk_pin

const struct gpio_pin* spi_config::clk_pin

The GPIO pin connected to the clock line.

◆ clk_polarity

bool spi_config::clk_polarity

Clock polarity.

◆ miso_pin

const struct gpio_pin* spi_config::miso_pin

The GPIO pin connected to the MISO line (may be NULL if not present)

◆ mosi_pin

const struct gpio_pin* spi_config::mosi_pin

The GPIO pin connected to the MOSI line (may be NULL if not present)

◆ ncs_pin

const struct gpio_pin* spi_config::ncs_pin

The GPIO pin connected to the (inverted) chip select line (may be NULL)

◆ word_length

uint8_t spi_config::word_length

Word length.


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