TI-RTOS for SimpleLink Wireless MCUs  2.14.03.28
Data Fields
SDSPITiva_HWAttrs Struct Reference

SDSPITiva Hardware attributes. More...

#include <SDSPITiva.h>

Data Fields

SDSPIBaseAddrType baseAddr
 
uint32_t portSCK
 
uint32_t pinSCK
 
uint32_t portMISO
 
uint32_t pinMISO
 
uint32_t portMOSI
 
uint32_t pinMOSI
 
uint32_t portCS
 
uint32_t pinCS
 

Detailed Description

SDSPITiva Hardware attributes.

The SDSPITiva configuration structure describes to the SDSPITiva driver implementation hardware specifies on which SPI peripheral, GPIO Pins and Ports are to be used.

The SDSPITiva driver uses this information to:

Remarks
To initialize the SD Card into SPI mode, the SDSPI driver changes the SPI's MOSI pin into a GPIO pin so it can kept driven HIGH while the SPI SCK pin can toggle. After the initialization, the TX pin is reverted back to the SPI MOSI mode.

These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. For TivaWare these definitions are found in:

An example configuration structure could look as the following:

const SDSPITiva_HWAttrs sdspiTivaHWattrs = {
{
.baseAddr = SSI3_BASE,
.portSCK = GPIO_PORTQ_BASE,
.pinSCK = GPIO_PIN_0,
.portMISO = GPIO_PORTF_BASE,
.pinMISO = GPIO_PIN_0,
.portMOSI = GPIO_PORTQ_BASE,
.pinMOSI = GPIO_PIN_2,
.portCS = GPIO_PORTH_BASE,
.pinCS = GPIO_PIN_4,
},
};

Field Documentation

SDSPIBaseAddrType SDSPITiva_HWAttrs::baseAddr

< SSI Peripheral's base address SSI port SCK

uint32_t SDSPITiva_HWAttrs::portSCK

SSI SCK pin

uint32_t SDSPITiva_HWAttrs::pinSCK

SSI port MISO

uint32_t SDSPITiva_HWAttrs::portMISO

SSI MISO pin

uint32_t SDSPITiva_HWAttrs::pinMISO

SSI port MOSI

uint32_t SDSPITiva_HWAttrs::portMOSI

SSI MOSI pin

uint32_t SDSPITiva_HWAttrs::pinMOSI

GPIO Port used for the chip select

uint32_t SDSPITiva_HWAttrs::portCS

GPIO Pin used for the chip select

uint32_t SDSPITiva_HWAttrs::pinCS

The documentation for this struct was generated from the following file:
Copyright 2015, Texas Instruments Incorporated