The friendly Operating System for the Internet of Things
spi_conf_t Struct Reference

SPI configuration data structure. More...

Detailed Description

Structure for SPI configuration data.

SPI device configuration.

SPI configuration values.

SPI configuration data.

SPI module configuration options.

Definition at line 128 of file cc2538/include/periph_cpu.h.

#include </tmp/RIOT/cpu/cc2538/include/periph_cpu.h>

Data Fields

 SSI device.
gpio_t mosi_pin
 pin used for MOSI More...
gpio_t miso_pin
 pin used for MISO More...
gpio_t sck_pin
 pin used for SCK
gpio_t cs_pin
 pin used for CS More...
SPI_Type * dev
 SPI device to use.
gpio_t pin_miso
 MISO pin used.
gpio_t pin_mosi
 MOSI pin used.
gpio_t pin_clk
 CLK pin used.
gpio_t pin_cs [SPI_HWCS_NUMOF]
 pins used for HW cs lines
gpio_pcr_t pcr
 alternate pin function values
uint32_t simmask
 bit in the SIM register
LPC_SSPx_Type * dev
 SPI device to configure.
uint32_t preset_bit
 mask of the corresponding preset bit
uint32_t ahb_bit
 mask of the corresponding AHB bit
NRF_SPI_Type * dev
 SPI device used.
uint8_t sclk
 CLK pin.
uint8_t mosi
 MOSI pin.
uint8_t miso
 MISO pin.
SercomSpi * dev
 pointer to the used SPI device
gpio_t clk_pin
 used CLK pin
gpio_mux_t miso_mux
 alternate function for MISO pin (mux)
gpio_mux_t mosi_mux
 alternate function for MOSI pin (mux)
gpio_mux_t clk_mux
 alternate function for CLK pin (mux)
spi_misopad_t miso_pad
 pad to use for MISO line
spi_mosipad_t mosi_pad
 pad to use for MOSI and CLK line
Spi * dev
 SPI module to use.
uint8_t id
 corresponding ID of that module
gpio_t clk
 pin mapped to the CLK line
gpio_t mosi
 pin mapped to the MOSI line
gpio_t miso
 pin mapped to the MISO line
gpio_mux_t mux
 pin MUX setting
SPI_TypeDef * dev
 SPI device base register address.
gpio_t sclk_pin
 SCLK pin.
gpio_af_t af
 pin alternate function
uint32_t rccmask
 bit in the RCC peripheral enable register
uint8_t apbbus
 APBx bus the device is connected to.

Field Documentation

gpio_t spi_conf_t::cs_pin

HWCS pin, set to GPIO_UNDEF if not mapped.

Definition at line 133 of file cc2538/include/periph_cpu.h.

gpio_t spi_conf_t::miso_pin

MISO pin.

used MISO pin

Definition at line 131 of file cc2538/include/periph_cpu.h.

gpio_t spi_conf_t::mosi_pin

MOSI pin.

used MOSI pin

Definition at line 130 of file cc2538/include/periph_cpu.h.

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