MSPM0G1X0X_G3X0X TI-Driver Library  1.20.01.06
Data Structures | Macros | Enumerations | Variables
SPIMSPM0.h File Reference

Detailed Description

SPI driver implementation for MSPM0 SPI controller using the DMA controller.


#include <stdint.h>
#include <ti/drivers/SPI.h>
#include <ti/drivers/dma/DMAMSPM0.h>
#include <ti/drivers/gpio/GPIOMSPM0.h>
#include <ti/driverlib/dl_spi.h>
#include <ti/drivers/dpl/HwiP.h>
#include <ti/drivers/dpl/SemaphoreP.h>
Include dependency graph for SPIMSPM0.h:

Go to the source code of this file.

Data Structures

struct  SPIMSPM0_HWAttrs
 SPIMSPM0 Hardware attributes. More...
 
struct  SPIMSPM0_Object
 SPIMSPM0 Object. More...
 

Macros

#define SPIMSPM0_CMD_RETURN_PARTIAL_ENABLE   (SPI_CMD_RESERVED + 0)
 Command used by SPI_control() to enable partial return. More...
 
#define SPIMSPM0_CMD_RETURN_PARTIAL_DISABLE   (SPI_CMD_RESERVED + 1)
 Command used by SPI_control() to disable partial return. More...
 
#define SPIMSPM0_CMD_SET_CSN_PIN   (SPI_CMD_RESERVED + 2)
 Command used by SPI_control() to re-configure chip select pin. More...
 
#define SPIMSPM0_CMD_CLEAR_CSN_PIN   (SPI_CMD_RESERVED + 3)
 Command used by SPI_control() to clear the chip select pin. More...
 
#define SPIMSPM0_CMD_SET_MANUAL   (SPI_CMD_RESERVED + 4)
 Command used by SPI_control() to enable manual start mode. More...
 
#define SPIMSPM0_CMD_CLR_MANUAL   (SPI_CMD_RESERVED + 5)
 Command used by SPI_control() to disable manual start mode. More...
 
#define SPIMSPM0_CMD_MANUAL_START   (SPI_CMD_RESERVED + 6)
 Command used by SPI_control() to enable manual start mode. More...
 
#define SPIMSPM0_CMD_SET_SAMPLE_DELAY   (SPI_CMD_RESERVED + 7)
 Command used by SPI_control() to set the sample delay in controller mode. More...
 

Enumerations

enum  SPIMSPM0_FrameSize {
  SPIMSPM0_8bit = 0,
  SPIMSPM0_16bit = 1
}
 SPIMSPM0 data frame size is used to determine how to configure the DMA data transfers. This field is to be only used internally. More...
 
enum  SPIMSPM0_ReturnPartial {
  SPIMSPM0_retPartDisabled = 0,
  SPIMSPM0_retPartEnabledIntNotSet = 1,
  SPIMSPM0_retPartEnabledIntSet = 2
}
 SPIMSPM0 return partial field indicates the status of the return partial mode and the associated pin interrupt. This field is for internal use only. More...
 

Variables

const SPI_FxnTable SPIMSPM0_fxnTable
 SPI function table pointer.
 
© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale