TI-RTOS for SimpleLink Wireless MCUs  2.14.02.22
Data Fields
SPITivaDMA_HWAttrs Struct Reference

SPITivaDMA Hardware attributes. More...

#include <SPITivaDMA.h>

Data Fields

SPIBaseAddrType baseAddr
 
unsigned int intNum
 
uint32_t intPriority
 
uint32_t * scratchBufPtr
 
uint32_t defaultTxBufValue
 
uint32_t rxChannelIndex
 
uint32_t txChannelIndex
 
void(* channelMappingFxn )(SPIDataType)
 
uint32_t rxChannelMappingFxnArg
 
uint32_t txChannelMappingFxnArg
 

Detailed Description

SPITivaDMA Hardware attributes.

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

A sample structure is shown below:

uint32_t spiTivaDMAscratchBuf;
const SPITivaDMA_HWAttrs spiTivaDMAobjects[] = {
{
.baseAddr = SSI0_BASE,
.intNum = INT_SSI0,
.intPriority = (~0),
.scratchBufPtr = &spiTivaDMAscratchBuf,
.rxChannelIndex = UDMA_CHANNEL_SSI0RX,
.txChannelIndex = UDMA_CHANNEL_SSI0TX,
.channelMappingFxn = uDMAChannelAssign,
.rxChannelMappingFxnArg = UDMA_CH10_SSI0RX,
.txChannelMappingFxnArg = UDMA_CH11_SSI0TX
},
};

Field Documentation

SPIBaseAddrType SPITivaDMA_HWAttrs::baseAddr

SSI Peripheral's base address

unsigned int SPITivaDMA_HWAttrs::intNum

SSI TivaDMA Peripheral's interrupt vector

uint32_t SPITivaDMA_HWAttrs::intPriority

SPITivaDMA Peripheral's interrupt priority

uint32_t* SPITivaDMA_HWAttrs::scratchBufPtr

Address of a scratch buffer of size uint32_t

uint32_t SPITivaDMA_HWAttrs::defaultTxBufValue

Default TX value if txBuf == NULL

uint32_t SPITivaDMA_HWAttrs::rxChannelIndex

uDMA controlTable channel index

uint32_t SPITivaDMA_HWAttrs::txChannelIndex

uDMA controlTable channel index

void(* SPITivaDMA_HWAttrs::channelMappingFxn) (SPIDataType)

uDMA mapping function that maps the SPI trigger to the DMA channel

uint32_t SPITivaDMA_HWAttrs::rxChannelMappingFxnArg

uDMA MappingFxn arg to map the Tx channel

uint32_t SPITivaDMA_HWAttrs::txChannelMappingFxnArg

uDMA MappingFxn arg to map the Rx channel


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