CC27xxDriverLibrary
spi.c File Reference
#include "spi.h"
Include dependency graph for spi.c:

Macros

#define DSAMPLE_MED_BITRATE   4000000U
 
#define DSAMPLE_HIGH_BITRATE   8000000U
 
#define SCR_MAXIMUM   0x000003FFU
 

Functions

static void SPIConfig (uint32_t baseAddr, uint32_t freq, uint32_t format, uint32_t mode, uint32_t bitRate, uint32_t dataSize, uint32_t dsample)
 
void SPIConfigSetExpClk (uint32_t base, uint32_t spiClk, uint32_t protocol, uint32_t mode, uint32_t bitRate, uint32_t dataWidth)
 Configures the serial peripheral port. More...
 
int32_t SPIPutDataNonBlocking (uint32_t base, uint32_t data)
 Puts a data element into the SPI transmit FIFO. More...
 
void SPIPutData (uint32_t base, uint32_t data)
 Puts a data element into the SPI transmit FIFO. More...
 
void SPIGetData (uint32_t base, uint32_t *data)
 Gets a data element from the SPI receive FIFO. More...
 
int32_t SPIGetDataNonBlocking (uint32_t base, uint32_t *data)
 Gets a data element from the SPI receive FIFO. More...
 
void SPIRegisterInt (uint32_t base, void(*pfnHandler)(void))
 Registers an interrupt handler for the Serial Peripheral Interface in the dynamic interrupt table. More...
 
void SPIUnregisterInt (uint32_t base)
 Unregisters an interrupt handler for the Serial Peripheral Interface in the dynamic interrupt table. More...
 

Macro Definition Documentation

§ DSAMPLE_MED_BITRATE

#define DSAMPLE_MED_BITRATE   4000000U

Referenced by SPIConfigSetExpClk().

§ DSAMPLE_HIGH_BITRATE

#define DSAMPLE_HIGH_BITRATE   8000000U

Referenced by SPIConfigSetExpClk().

§ SCR_MAXIMUM

#define SCR_MAXIMUM   0x000003FFU

Referenced by SPIConfig().

Function Documentation

§ SPIConfig()

static void SPIConfig ( uint32_t  baseAddr,
uint32_t  freq,
uint32_t  format,
uint32_t  mode,
uint32_t  bitRate,
uint32_t  dataSize,
uint32_t  dsample 
)
static

References SCR_MAXIMUM.

Referenced by SPIConfigSetExpClk().