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

SDSPICC3200 Hardware attributes. More...

#include <SDSPICC3200.h>

Data Fields

uint32_t baseAddr
 
uint32_t spiPRCM
 
uint32_t csGPIOBase
 
uint32_t csGPIOPin
 
uint32_t txGPIOBase
 
uint32_t txGPIOPin
 
uint32_t txGPIOMode
 
uint32_t txSPIMode
 
uint32_t txPackPin
 

Detailed Description

SDSPICC3200 Hardware attributes.

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

The SDSPICC3200 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 CCWare these definitions are found in:

An example configuration structure could look as the following:

const SDSPICC3200_HWAttrs sdspiCC3200HWattrs = {
{
.baseAddr = GSPI_BASE, // SSI Peripheral's base address
.spiPRCM = PRCM_GSPI, // SPI PRCM peripheral number
.csGPIOBase = GPIOA0_BASE, // CS GPIO base
.csGPIOPin = GPIO_PIN_7, // CS GPIO pin number
.txGPIOBase = GPIOA2_BASE, // GPIO base addr when using MOSI as GPIO
.txGPIOPin = GPIO_PIN_0, // GPIO pin number when using MOSI as GPIO
.txGPIOMode = PIN_MODE_0, // GPIO pin mode to use MOSI as GPIO
.txSPIMode = PIN_MODE_7, // Pin mode to use MOSI
.txPackPin = PIN_07, // Package pin number
}
};

Field Documentation

uint32_t SDSPICC3200_HWAttrs::baseAddr

< SPI Peripheral base address

uint32_t SDSPICC3200_HWAttrs::spiPRCM

SPI PRCM peripheral number CS GPIO base

uint32_t SDSPICC3200_HWAttrs::csGPIOBase

CS GPIO pin number

uint32_t SDSPICC3200_HWAttrs::csGPIOPin

GPIO base addr when using MOSI as GPIO

uint32_t SDSPICC3200_HWAttrs::txGPIOBase

GPIO pin number when using MOSI as GPIO

uint32_t SDSPICC3200_HWAttrs::txGPIOPin

GPIO pin mode to use MOSI as GPIO

uint32_t SDSPICC3200_HWAttrs::txGPIOMode

Pin mode to use MOSI

uint32_t SDSPICC3200_HWAttrs::txSPIMode

Package pin number

uint32_t SDSPICC3200_HWAttrs::txPackPin

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