MotorWare f2806x Driver API Documentation
Functions
spi.c File Reference

Contains the various functions related to the serial peripheral interface (SPI) object. More...

#include "sw/drivers/spi/src/32b/f28x/f2806x/spi.h"

Go to the source code of this file.

Functions

void SPI_clearRxFifoOvf (SPI_Handle spiHandle)
 Clears the Rx FIFO overflow flag. More...
 
void SPI_clearRxFifoInt (SPI_Handle spiHandle)
 Clears the Rx FIFO interrupt flag. More...
 
void SPI_clearTxFifoInt (SPI_Handle spiHandle)
 Clears the Tx FIFO interrupt flag. More...
 
void SPI_disableInt (SPI_Handle spiHandle)
 Disables the serial peripheral interface (SPI) interrupt. More...
 
void SPI_disableLoopBack (SPI_Handle spiHandle)
 Disables the serial peripheral interface (SPI) loop back mode. More...
 
void SPI_disableOverRunInt (SPI_Handle spiHandle)
 Disables the serial peripheral interface (SPI) over-run interrupt. More...
 
void SPI_disableRxFifoInt (SPI_Handle spiHandle)
 Disables the serial peripheral interface (SPI) receive FIFO interrupt. More...
 
void SPI_disableTx (SPI_Handle spiHandle)
 Disables the serial peripheral interface (SPI) master/slave transmit mode. More...
 
void SPI_disableTxFifoEnh (SPI_Handle spiHandle)
 Disables the serial peripheral interface (SPI) transmit FIFO enhancements. More...
 
void SPI_disableTxFifoInt (SPI_Handle spiHandle)
 Disables the serial peripheral interface (SPI) transmit FIFO interrupt. More...
 
void SPI_enable (SPI_Handle spiHandle)
 Enables the serial peripheral interface (SPI) More...
 
void SPI_enableChannels (SPI_Handle spiHandle)
 Enables the serial peripheral interface (SPI) transmit and receive channels. More...
 
void SPI_enableInt (SPI_Handle spiHandle)
 Enables the serial peripheral interface (SPI) interrupt. More...
 
void SPI_enableLoopBack (SPI_Handle spiHandle)
 Enables the serial peripheral interface (SPI) loop back mode. More...
 
void SPI_enableOverRunInt (SPI_Handle spiHandle)
 Enables the serial peripheral interface (SPI) over-run interrupt. More...
 
void SPI_enableRxFifo (SPI_Handle spiHandle)
 Enables the serial peripheral interface (SPI) receive FIFO. More...
 
void SPI_enableRxFifoInt (SPI_Handle spiHandle)
 Enables the serial peripheral interface (SPI) receive FIFO interrupt. More...
 
void SPI_enableTx (SPI_Handle spiHandle)
 Enables the serial peripheral interface (SPI) masater/slave transmit mode. More...
 
void SPI_enableTxFifo (SPI_Handle spiHandle)
 Re-enables the serial peripheral interface (SPI) transmit FIFO. More...
 
void SPI_enableTxFifoEnh (SPI_Handle spiHandle)
 Enables the serial peripheral interface (SPI) transmit FIFO enhancements. More...
 
void SPI_enableTxFifoInt (SPI_Handle spiHandle)
 Enables the serial peripheral interface (SPI) transmit FIFO interrupt. More...
 
SPI_FifoStatus_e SPI_getRxFifoStatus (SPI_Handle spiHandle)
 Gets the serial peripheral interface (SPI) receive FIFO status. More...
 
SPI_FifoStatus_e SPI_getTxFifoStatus (SPI_Handle spiHandle)
 Gets the serial peripheral interface (SPI) transmit FIFO status. More...
 
SPI_IntFlagStatus_e SPI_getIntFlagStatus (SPI_Handle spiHandle)
 Gets the serial peripheral interface (SPI) Interrupt Flag status. More...
 
SPI_TxBufferStatus_e SPI_getTxBufferStatus (SPI_Handle spiHandle)
 Gets the serial peripheral interface (SPI) Tx Buffer status. More...
 
SPI_Handle SPI_init (void *pMemory, const size_t numBytes)
 Initializes the serial peripheral interface (SPI) object handle. More...
 
void SPI_reset (SPI_Handle spiHandle)
 Resets the serial peripheral interface (SPI) More...
 
void SPI_resetChannels (SPI_Handle spiHandle)
 Resets the serial peripheral interface (SPI) transmit and receive channels. More...
 
void SPI_resetRxFifo (SPI_Handle spiHandle)
 Resets the serial peripheral interface (SPI) receive FIFO. More...
 
void SPI_resetTxFifo (SPI_Handle spiHandle)
 Resets the serial peripheral interface (SPI) transmit FIFO. More...
 
void SPI_setBaudRate (SPI_Handle spiHandle, const SPI_BaudRate_e baudRate)
 Sets the serial peripheral interface (SPI) baud rate. More...
 
void SPI_setCharLength (SPI_Handle spiHandle, const SPI_CharLength_e length)
 Sets the serial peripheral interface (SPI) character length. More...
 
void SPI_setClkPhase (SPI_Handle spiHandle, const SPI_ClkPhase_e clkPhase)
 Sets the serial peripheral interface (SPI) clock phase. More...
 
void SPI_setClkPolarity (SPI_Handle spiHandle, const SPI_ClkPolarity_e polarity)
 Sets the serial peripheral interface (SPI) clock polarity. More...
 
void SPI_setMode (SPI_Handle spiHandle, const SPI_Mode_e mode)
 Sets the serial peripheral interface (SPI) network mode. More...
 
void SPI_setPriority (SPI_Handle spiHandle, const SPI_Priority_e priority)
 Sets the priority of the SPI port vis-a-vis the EMU. More...
 
void SPI_setRxFifoIntLevel (SPI_Handle spiHandle, const SPI_FifoLevel_e fifoLevel)
 Sets the serial peripheral interface (SPI) receive FIFO level for generating an interrupt. More...
 
void SPI_setSteInv (SPI_Handle spiHandle, const SPI_SteInv_e steinv)
 Controls pin inversion of STE pin. More...
 
void SPI_setSuspend (SPI_Handle spiHandle, const SPI_EmulationSuspend_e emuSuspend)
 Sets the serial peripheral interface (SPI) emulation suspend bits. More...
 
void SPI_setTriWire (SPI_Handle spiHandle, const SPI_TriWire_e triwire)
 Sets SPI port operating mode. More...
 
void SPI_setTxDelay (SPI_Handle spiHandle, const uint_least8_t delay)
 Sets the serial peripheral interface (SPI) transmit delay. More...
 
void SPI_setTxFifoIntLevel (SPI_Handle spiHandle, const SPI_FifoLevel_e fifoLevel)
 Sets the serial peripheral interface (SPI) transmit FIFO level for generating an interrupt. More...
 

Detailed Description

Contains the various functions related to the serial peripheral interface (SPI) object.

(C) Copyright 2015, Texas Instruments, Inc.

Definition in file spi.c.