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

SPIUSCIBDMA Hardware attributes. More...

#include <SPIUSCIBDMA.h>

Data Fields

uint32_t baseAddr
 
uint8_t clockSource
 
uint8_t bitOrder
 
uint8_t * scratchBufPtr
 
uint8_t defaultTxBufValue
 
uint32_t dmaBaseAddr
 
uint8_t rxDMAChannelIndex
 
uint8_t rxDMASourceTrigger
 
uint8_t txDMAChannelIndex
 
uint8_t txDMASourceTrigger
 

Detailed Description

SPIUSCIBDMA Hardware attributes.

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

A sample structure is shown below:

uint8_t spiUSCIBDMAscratchBuf;
const SPIUSCIBDMA_HWAttrs spiUSCIBDMAHWAttrs[] = {
{
.baseAddr = USCI_B1_BASE,
.clockSource = USCI_B_SPI_CLOCKSOURCE_SMCLK,
.bitOrder = USCI_B_SPI_MSB_FIRST,
.scratchBufPtr = &spiUSCIBDMAscratchBuf,
.defaultTxBufValue = 0,
// DMA base address
.dmaBaseAddr = DMA_BASE,
// Rx Channel
.rxDMAChannelIndex = DMA_CHANNEL_1,
.rxDMASourceTrigger = DMA_TRIGGERSOURCE_22,
// Tx Channel
.txDMAChannelIndex = DMA_CHANNEL_0,
.txDMASourceTrigger = DMA_TRIGGERSOURCE_23
},
};

Field Documentation

uint32_t SPIUSCIBDMA_HWAttrs::baseAddr

< USCI_B_SPI Peripheral's base address USCI_B_SPI Clock source

uint8_t SPIUSCIBDMA_HWAttrs::clockSource

USCI_B_SPI Bit order

uint8_t SPIUSCIBDMA_HWAttrs::bitOrder
uint8_t* SPIUSCIBDMA_HWAttrs::scratchBufPtr

Address of a scratch buffer of size uint32_t

uint8_t SPIUSCIBDMA_HWAttrs::defaultTxBufValue

Default TX value if txBuf == NULL DMA Peripheral's base address

uint32_t SPIUSCIBDMA_HWAttrs::dmaBaseAddr

DMA rxDMAChannel for Rx data

uint8_t SPIUSCIBDMA_HWAttrs::rxDMAChannelIndex

DMA trigger source for Rx data

uint8_t SPIUSCIBDMA_HWAttrs::rxDMASourceTrigger

DMA txDMAChannel for Tx data

uint8_t SPIUSCIBDMA_HWAttrs::txDMAChannelIndex

DMA trigger source for Tx data

uint8_t SPIUSCIBDMA_HWAttrs::txDMASourceTrigger

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