TI-RTOS Drivers  tidrivers_full_2_20_00_08
Macros
Collaboration diagram for Command Codes:

Macros

#define SPICC26XXDMA_CMD_RETURN_PARTIAL_ENABLE   SPI_CMD_RESERVED + 0
 Command used by SPI_control to enable partial return. More...
 
#define SPICC26XXDMA_CMD_RETURN_PARTIAL_DISABLE   SPI_CMD_RESERVED + 1
 Command used by SPI_control to disable partial return. More...
 
#define SPICC26XXDMA_CMD_SET_CSN_PIN   SPI_CMD_RESERVED + 2
 Command used by SPI_control to re-configure chip select pin. More...
 
#define SPICC26XXDMA_CMD_SET_CSN_WAKEUP   SPI_CMD_RESERVED + 3
 Command used by SPI_control to re-configure a wakeup pin. More...
 

Detailed Description

SPI_CMD_* macros are general command codes for SPI_control(). Not all SPI driver implementations support these command codes.

SPICC26XXDMA_CMD_* macros are command codes only defined in the SPICC26XXDMA.h driver implementation and need to:

#include <ti/drivers/sdspi/SPICC26XXDMA.h>

SPICC3200DMA_CMD_* macros are command codes only defined in the SPICC3200DMA.h driver implementation and need to:

#include <ti/drivers/sdspi/SPICC3200DMA.h>

SPIEUSCIADMA_CMD_* macros are command codes only defined in the SPIEUSCIADMA.h driver implementation and need to:

SPIEUSCIBDMA_CMD_* macros are command codes only defined in the SPIEUSCIBDMA.h driver implementation and need to:

SPIMSP432DMA_CMD_* macros are command codes only defined in the SPIMSP432DMA.h driver implementation and need to:

SPITivaDMA_CMD_* macros are command codes only defined in the SPITivaDMA.h driver implementation and need to:

SPIUSCIADMA_CMD_* macros are command codes only defined in the SPIUSCIADMA.h driver implementation and need to:

SPIUSCIBDMA_CMD_* macros are command codes only defined in the SPIUSCIBDMA.h driver implementation and need to:

Macro Definition Documentation

#define SPICC26XXDMA_CMD_RETURN_PARTIAL_ENABLE   SPI_CMD_RESERVED + 0

Command used by SPI_control to enable partial return.

Enabling this command allows SPI_transfer to return partial data if data reception is inactive for a given 32-bit period. With this command arg is don't care and it returns SPI_STATUS_SUCCESS.

#define SPICC26XXDMA_CMD_RETURN_PARTIAL_DISABLE   SPI_CMD_RESERVED + 1

Command used by SPI_control to disable partial return.

Disabling this command returns the SPICC26XXDMA to the default blocking behavior where SPI_transfer blocks until all data bytes were received. With this comand arg is don't care and it returns SPI_STATUS_SUCCESS.

#define SPICC26XXDMA_CMD_SET_CSN_PIN   SPI_CMD_RESERVED + 2

Command used by SPI_control to re-configure chip select pin.

This command specifies a chip select pin With this command arg is of type PIN_Id and it return SPI_STATUS_SUCCESS

#define SPICC26XXDMA_CMD_SET_CSN_WAKEUP   SPI_CMD_RESERVED + 3

Command used by SPI_control to re-configure a wakeup pin.

This command specifies a wakeup pin With this command arg is of type SPICC26XXDMA_CallbackFxn and it return SPI_STATUS_SUCCESS

Copyright 2016, Texas Instruments Incorporated