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

SPICC3200DMA Hardware attributes. More...

#include <SPICC3200DMA.h>

Data Fields

SPIBaseAddrType baseAddr
 
uint32_t intNum
 
uint32_t intPriority
 
uint32_t spiPRCM
 
uint32_t csControl
 
uint32_t csPolarity
 
uint32_t pinMode
 
uint32_t turboMode
 
uint32_t * scratchBufPtr
 
unsigned long defaultTxBufValue
 
uint32_t rxChannelIndex
 
uint32_t txChannelIndex
 

Detailed Description

SPICC3200DMA Hardware attributes.

These fields, with the exception of intPriority, are used by driverlib APIs and therefore must be populated by driverlib macro definitions. For CCWare these definitions are found in:

intPriority is the SPI peripheral's interrupt priority, as defined by the underlying OS. It is passed unmodified to the underlying OS's interrupt handler creation code, so you need to refer to the OS documentation for usage. For example, for SYS/BIOS applications, refer to the ti.sysbios.family.arm.m3.Hwi documentation for SYS/BIOS usage of interrupt priorities. If the driver uses the ti.drivers.ports interface instead of making OS calls directly, then the HwiP port handles the interrupt priority in an OS specific way. In the case of the SYS/BIOS port, intPriority is passed unmodified to Hwi_create().

A sample structure is shown below:

#if defined(__TI_COMPILER_VERSION__)
#pragma DATA_ALIGN(scratchBuf, 32)
#elif defined(__IAR_SYSTEMS_ICC__)
#pragma data_alignment=32
#elif defined(__GNUC__)
__attribute__ ((aligned (32)))
#endif
uint32_t scratchBuf;
const SPICC3200DMA_HWAttrs SPICC3200DMAHWAttrs[] = {
{
.baseAddr = GSPI_BASE,
.intNum = INT_GSPI,
.intPriority = (~0),
.spiPRCM = PRCM_GSPI,
.csControl = SPI_HW_CTRL_CS,
.csPolarity = SPI_CS_ACTIVELOW,
.pinMode = SPI_4PIN_MODE,
.turboMode = SPI_TURBO_OFF,
.scratchBufPtr = &scratchBuf,
.rxChannelIndex = UDMA_CH6_GSPI_RX,
.txChannelIndex = UDMA_CH7_GSPI_TX,
},
...
};

Field Documentation

SPIBaseAddrType SPICC3200DMA_HWAttrs::baseAddr

SPICC3200DMA Peripheral's base address

uint32_t SPICC3200DMA_HWAttrs::intNum

SPICC3200DMA Peripheral's interrupt vector

uint32_t SPICC3200DMA_HWAttrs::intPriority

SPICC3200DMA Peripheral's interrupt priority

uint32_t SPICC3200DMA_HWAttrs::spiPRCM

SPI PRCM peripheral number

uint32_t SPICC3200DMA_HWAttrs::csControl

Specify if chip select line will be controlled by SW or HW

uint32_t SPICC3200DMA_HWAttrs::csPolarity
uint32_t SPICC3200DMA_HWAttrs::pinMode

Set peripheral to work in 3-pin or 4-pin mode

uint32_t SPICC3200DMA_HWAttrs::turboMode

Enable or disable SPI TURBO mode

uint32_t* SPICC3200DMA_HWAttrs::scratchBufPtr

Address of a scratch buffer of size uint32_t

unsigned long SPICC3200DMA_HWAttrs::defaultTxBufValue

Default TX value if txBuf == NULL

uint32_t SPICC3200DMA_HWAttrs::rxChannelIndex

uDMA RX channel index

uint32_t SPICC3200DMA_HWAttrs::txChannelIndex

uDMA TX channel index


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