Loading...
Searching...
No Matches
spi_conf_t Struct Reference

SPI device configuration. More...

Detailed Description

SPI device configuration.

SPI configuration data.

Configuration details for an SPI interface needed by the RPX0XX peripheral.

SPI configuration values.

MSP430 x1xx SPI configuration, board level.

MSP430 F2xx/G2xx SPI configuration, board level.

SPI configuration data structure.

SPI module configuration options.

Structure for SPI configuration data.

SPI configuration structure type.

Definition at line 337 of file periph_cpu.h.

#include <periph_cpu.h>

Data Fields

SPI_t * dev
 pointer to the used SPI device
 
pwr_reduction_t pwr
 Power Management.
 
gpio_t sck_pin
 pin used for SCK
 
gpio_t miso_pin
 pin used for MISO
 
gpio_t mosi_pin
 pin used for MOSI
 
gpio_t ss_pin
 pin used for SS line
 
uint8_t num
 number of SSI device, i.e.
 
spi_cs_t cs_pin
 pin used for CS
 
spi_ctrl_t ctrl
 SPI controller used for the interface.
 
gpio_t sck
 GPIO used as SCK pin.
 
gpio_t mosi
 GPIO used as MOSI pin.
 
gpio_t miso
 GPIO used as MISO pin.
 
gpio_t cs
 GPIO used as CS0 pin.
 
uint32_t addr
 SPI control register address.
 
gpio_t sclk
 SCLK pin.
 
SPI_Type * dev
 SPI device base register address.
 
gpio_t sclk_pin
 SCLK pin.
 
uint32_t rcumask
 bit in the RCC peripheral enable register
 
uint8_t apbbus
 APBx bus the device is connected to.
 
gpio_t pin_miso
 MISO pin used.
 
gpio_t pin_mosi
 MOSI pin used.
 
gpio_t pin_clk
 CLK pin used.
 
spi_cs_t pin_cs [SPI_HWCS_NUMOF]
 pins used for HW cs lines
 
uint32_t simmask
 bit in the SIM register
 
unsigned long ssi_sysctl
 SSI device in sysctl.
 
unsigned long ssi_base
 SSI base address.
 
unsigned long gpio_sysctl
 GPIO device in sysctl.
 
unsigned long gpio_port
 GPIO port.
 
struct { 
 
   unsigned long   clk 
 pin used for SCK More...
 
   unsigned long   fss 
 pin used for FSS More...
 
   unsigned long   rx 
 pin used for MISO More...
 
   unsigned long   tx 
 pin used for MOSI More...
 
   unsigned long   mask 
 Pin mask. More...
 
pins 
 Pin setting.
 
lpc23xx_spi_t * dev
 pointer to the SPI device
 
uint8_t pinsel_mosi
 PINSEL# of the MOSI pin

 
uint8_t pinsel_miso
 PINSEL# of the MISO pin

 
uint8_t pinsel_clk
 PINSEL# of the CLK pin

 
uint32_t pinsel_msk_mosi
 MOSI PINSEL Mask

 
uint32_t pinsel_msk_miso
 MISO PINSEL Mask

 
uint32_t pinsel_msk_clk
 CLK PINSEL Mask

 
const msp430_usci_spi_params_tspi
 The SPI configuration to use.
 
const msp430_usart_spi_params_tspi
 The SPI configuration to use.
 
NRF_SPI_Type * dev
 SPI device used.
 
NRF_SPIM_Type * dev
 SPI device used.
 
SPI0_Type * dev
 Base address of the I/O registers of the device.
 
gpio_t clk_pin
 GPIO pin to use for CLK.
 
void * dev
 pointer to the used SPI device
 
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
 
uint8_t gclk_src
 GCLK source which supplys SERCOM.
 
Spi * dev
 SPI module to use.
 
uint8_t id
 corresponding ID of that module
 
gpio_t clk
 pin mapped to the CLK line
 
gpio_mux_t mux
 pin MUX setting
 
SPI_TypeDef * dev
 SPI device base register address.
 
gpio_af_t mosi_af
 MOSI pin alternate function.
 
gpio_af_t miso_af
 MISO pin alternate function.
 
gpio_af_t sclk_af
 SCLK pin alternate function.
 
gpio_af_t cs_af
 HWCS pin alternate function.
 
uint32_t rccmask
 bit in the RCC peripheral enable register
 

Field Documentation

◆ addr

uint32_t spi_conf_t::addr

SPI control register address.

Definition at line 87 of file periph_cpu.h.

◆ apbbus

uint8_t spi_conf_t::apbbus

APBx bus the device is connected to.

Definition at line 416 of file periph_cpu.h.

◆ clk [1/2]

unsigned long spi_conf_t::clk

pin used for SCK

Definition at line 137 of file periph_cpu.h.

◆ clk [2/2]

gpio_t spi_conf_t::clk

pin mapped to the CLK line

Definition at line 229 of file periph_cpu.h.

◆ clk_mux

gpio_mux_t spi_conf_t::clk_mux

alternate function for CLK pin (mux)

Definition at line 505 of file periph_cpu_common.h.

◆ clk_pin

gpio_t spi_conf_t::clk_pin

GPIO pin to use for CLK.

used CLK pin

Definition at line 808 of file periph_cpu.h.

◆ cs

gpio_t spi_conf_t::cs

GPIO used as CS0 pin.

Definition at line 868 of file periph_cpu.h.

◆ cs_af

gpio_af_t spi_conf_t::cs_af

HWCS pin alternate function.

Definition at line 116 of file cpu_spi.h.

◆ cs_pin

spi_cs_t spi_conf_t::cs_pin

pin used for CS

HWCS pin, set to SPI_CS_UNDEF if not mapped.

Definition at line 300 of file periph_cpu.h.

◆ ctrl

spi_ctrl_t spi_conf_t::ctrl

SPI controller used for the interface.

Definition at line 864 of file periph_cpu.h.

◆ dev [1/9]

SPI_Type * spi_conf_t::dev

pointer to the used SPI device

SPI device to use.

Definition at line 338 of file periph_cpu.h.

◆ dev [2/9]

SPI_Type* spi_conf_t::dev

SPI device base register address.

SPI device to use.

Definition at line 410 of file periph_cpu.h.

◆ dev [3/9]

lpc23xx_spi_t* spi_conf_t::dev

pointer to the SPI device

Definition at line 118 of file periph_cpu.h.

◆ dev [4/9]

NRF_SPI_Type* spi_conf_t::dev

SPI device used.

Definition at line 105 of file periph_cpu.h.

◆ dev [5/9]

NRF_SPIM_Type* spi_conf_t::dev

SPI device used.

Definition at line 483 of file periph_cpu_common.h.

◆ dev [6/9]

SPI0_Type* spi_conf_t::dev

Base address of the I/O registers of the device.

Definition at line 805 of file periph_cpu.h.

◆ dev [7/9]

void* spi_conf_t::dev

pointer to the used SPI device

Definition at line 499 of file periph_cpu_common.h.

◆ dev [8/9]

Spi* spi_conf_t::dev

SPI module to use.

Definition at line 227 of file periph_cpu.h.

◆ dev [9/9]

SPI_TypeDef* spi_conf_t::dev

SPI device base register address.

Definition at line 107 of file cpu_spi.h.

◆ fss

unsigned long spi_conf_t::fss

pin used for FSS

Definition at line 138 of file periph_cpu.h.

◆ gclk_src

uint8_t spi_conf_t::gclk_src

GCLK source which supplys SERCOM.

Definition at line 508 of file periph_cpu_common.h.

◆ gpio_port

unsigned long spi_conf_t::gpio_port

GPIO port.

Definition at line 135 of file periph_cpu.h.

◆ gpio_sysctl

unsigned long spi_conf_t::gpio_sysctl

GPIO device in sysctl.

Definition at line 134 of file periph_cpu.h.

◆ id

uint8_t spi_conf_t::id

corresponding ID of that module

Definition at line 228 of file periph_cpu.h.

◆ mask

unsigned long spi_conf_t::mask

Pin mask.

Definition at line 141 of file periph_cpu.h.

◆ miso

gpio_t spi_conf_t::miso

GPIO used as MISO pin.

pin mapped to the MISO line

MISO pin.

Definition at line 867 of file periph_cpu.h.

◆ miso_af

gpio_af_t spi_conf_t::miso_af

MISO pin alternate function.

Definition at line 114 of file cpu_spi.h.

◆ miso_mux

gpio_mux_t spi_conf_t::miso_mux

alternate function for MISO pin (mux)

Definition at line 503 of file periph_cpu_common.h.

◆ miso_pad

spi_misopad_t spi_conf_t::miso_pad

pad to use for MISO line

Definition at line 506 of file periph_cpu_common.h.

◆ miso_pin

gpio_t spi_conf_t::miso_pin

pin used for MISO

used MISO pin

GPIO pin to use for MISO.

MISO pin.

Definition at line 341 of file periph_cpu.h.

◆ mosi

gpio_t spi_conf_t::mosi

GPIO used as MOSI pin.

pin mapped to the MOSI line

MOSI pin.

Definition at line 866 of file periph_cpu.h.

◆ mosi_af

gpio_af_t spi_conf_t::mosi_af

MOSI pin alternate function.

Definition at line 113 of file cpu_spi.h.

◆ mosi_mux

gpio_mux_t spi_conf_t::mosi_mux

alternate function for MOSI pin (mux)

Definition at line 504 of file periph_cpu_common.h.

◆ mosi_pad

spi_mosipad_t spi_conf_t::mosi_pad

pad to use for MOSI and CLK line

Definition at line 507 of file periph_cpu_common.h.

◆ mosi_pin

gpio_t spi_conf_t::mosi_pin

pin used for MOSI

used MOSI pin

GPIO pin to use for MOSI.

MOSI pin.

Definition at line 342 of file periph_cpu.h.

◆ mux

gpio_mux_t spi_conf_t::mux

pin MUX setting

Definition at line 232 of file periph_cpu.h.

◆ num

uint8_t spi_conf_t::num

number of SSI device, i.e.

0 or 1

Definition at line 296 of file periph_cpu.h.

◆ pin_clk

gpio_t spi_conf_t::pin_clk

CLK pin used.

Definition at line 476 of file periph_cpu.h.

◆ pin_cs

spi_cs_t spi_conf_t::pin_cs[SPI_HWCS_NUMOF]

pins used for HW cs lines

Definition at line 477 of file periph_cpu.h.

◆ pin_miso

gpio_t spi_conf_t::pin_miso

MISO pin used.

Definition at line 474 of file periph_cpu.h.

◆ pin_mosi

gpio_t spi_conf_t::pin_mosi

MOSI pin used.

Definition at line 475 of file periph_cpu.h.

◆ pinsel_clk

uint8_t spi_conf_t::pinsel_clk

PINSEL# of the CLK pin

Definition at line 121 of file periph_cpu.h.

◆ pinsel_miso

uint8_t spi_conf_t::pinsel_miso

PINSEL# of the MISO pin

Definition at line 120 of file periph_cpu.h.

◆ pinsel_mosi

uint8_t spi_conf_t::pinsel_mosi

PINSEL# of the MOSI pin

Definition at line 119 of file periph_cpu.h.

◆ pinsel_msk_clk

uint32_t spi_conf_t::pinsel_msk_clk

CLK PINSEL Mask

Definition at line 124 of file periph_cpu.h.

◆ pinsel_msk_miso

uint32_t spi_conf_t::pinsel_msk_miso

MISO PINSEL Mask

Definition at line 123 of file periph_cpu.h.

◆ pinsel_msk_mosi

uint32_t spi_conf_t::pinsel_msk_mosi

MOSI PINSEL Mask

Definition at line 122 of file periph_cpu.h.

◆ pwr

pwr_reduction_t spi_conf_t::pwr

Power Management.

Definition at line 339 of file periph_cpu.h.

◆ rccmask

uint32_t spi_conf_t::rccmask

bit in the RCC peripheral enable register

Definition at line 118 of file cpu_spi.h.

◆ rcumask

uint32_t spi_conf_t::rcumask

bit in the RCC peripheral enable register

Definition at line 415 of file periph_cpu.h.

◆ rx

unsigned long spi_conf_t::rx

pin used for MISO

Definition at line 139 of file periph_cpu.h.

◆ sck

gpio_t spi_conf_t::sck

GPIO used as SCK pin.

Definition at line 865 of file periph_cpu.h.

◆ sck_pin

gpio_t spi_conf_t::sck_pin

pin used for SCK

Definition at line 340 of file periph_cpu.h.

◆ sclk

gpio_t spi_conf_t::sclk

SCLK pin.

CLK pin.

Definition at line 90 of file periph_cpu.h.

◆ sclk_af

gpio_af_t spi_conf_t::sclk_af

SCLK pin alternate function.

Definition at line 115 of file cpu_spi.h.

◆ sclk_pin

gpio_t spi_conf_t::sclk_pin

SCLK pin.

Definition at line 413 of file periph_cpu.h.

◆ simmask

uint32_t spi_conf_t::simmask

bit in the SIM register

Definition at line 486 of file periph_cpu.h.

◆ spi [1/2]

const msp430_usci_spi_params_t* spi_conf_t::spi

The SPI configuration to use.

Definition at line 183 of file periph_cpu.h.

◆ spi [2/2]

const msp430_usart_spi_params_t* spi_conf_t::spi

The SPI configuration to use.

Definition at line 204 of file periph_cpu.h.

◆ ss_pin

gpio_t spi_conf_t::ss_pin

pin used for SS line

Definition at line 343 of file periph_cpu.h.

◆ ssi_base

unsigned long spi_conf_t::ssi_base

SSI base address.

Definition at line 133 of file periph_cpu.h.

◆ ssi_sysctl

unsigned long spi_conf_t::ssi_sysctl

SSI device in sysctl.

Definition at line 132 of file periph_cpu.h.

◆ tx

unsigned long spi_conf_t::tx

pin used for MOSI

Definition at line 140 of file periph_cpu.h.


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