SPICC32XXDMA Hardware attributes. More...
#include <SPICC32XXDMA.h>
Data Fields | |
uint32_t | 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 |
uint32_t | defaultTxBufValue |
uint32_t | rxChannelIndex |
uint32_t | txChannelIndex |
uint32_t | minDmaTransferSize |
uint16_t | mosiPin |
uint16_t | misoPin |
uint16_t | clkPin |
uint16_t | csPin |
SPICC32XXDMA 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.dpl 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:
uint32_t SPICC32XXDMA_HWAttrsV1::baseAddr |
SPICC32XXDMA Peripheral's base address
uint32_t SPICC32XXDMA_HWAttrsV1::intNum |
SPICC32XXDMA Peripheral's interrupt vector
uint32_t SPICC32XXDMA_HWAttrsV1::intPriority |
SPICC32XXDMA Peripheral's interrupt priority
uint32_t SPICC32XXDMA_HWAttrsV1::spiPRCM |
SPI PRCM peripheral number
uint32_t SPICC32XXDMA_HWAttrsV1::csControl |
Specify if chip select line will be controlled by SW or HW
uint32_t SPICC32XXDMA_HWAttrsV1::csPolarity |
uint32_t SPICC32XXDMA_HWAttrsV1::pinMode |
Set peripheral to work in 3-pin or 4-pin mode
uint32_t SPICC32XXDMA_HWAttrsV1::turboMode |
Enable or disable SPI TURBO mode
uint32_t* SPICC32XXDMA_HWAttrsV1::scratchBufPtr |
Address of a scratch buffer of size uint32_t
uint32_t SPICC32XXDMA_HWAttrsV1::defaultTxBufValue |
Default TX value if txBuf == NULL
uint32_t SPICC32XXDMA_HWAttrsV1::rxChannelIndex |
uDMA RX channel index
uint32_t SPICC32XXDMA_HWAttrsV1::txChannelIndex |
uDMA TX channel index
uint32_t SPICC32XXDMA_HWAttrsV1::minDmaTransferSize |
Minimum amout of data to start a uDMA transfer
uint16_t SPICC32XXDMA_HWAttrsV1::mosiPin |
GSPI MOSI pin assignment
uint16_t SPICC32XXDMA_HWAttrsV1::misoPin |
GSPI MISO pin assignment
uint16_t SPICC32XXDMA_HWAttrsV1::clkPin |
GSPI CLK pin assignment
uint16_t SPICC32XXDMA_HWAttrsV1::csPin |
GSPI CS pin assignment