TI-RTOS Drivers
tidrivers_cc32xx_2_16_00_08
|
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 |
uint32_t | minDmaTransferSize |
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:
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
uint32_t SPICC3200DMA_HWAttrs::minDmaTransferSize |
Minimum amout of data to start a uDMA transfer