532 spi->
SPIPRI |= emuSuspend;
void SPI_setBaudRate(SPI_Handle spiHandle, const SPI_BaudRate_e baudRate)
Sets the serial peripheral interface (SPI) baud rate.
void SPI_disableInt(SPI_Handle spiHandle)
Disables the serial peripheral interface (SPI) interrupt.
Defines the serial peripheral interface (SPI) object.
void SPI_clearTxFifoInt(SPI_Handle spiHandle)
Clears the Tx FIFO interrupt flag.
#define SPI_SPICTL_OVRRUN_INT_ENA_BITS
Defines the location of the OVERRUN INT ENA bits in the SPICTL register.
SPI_TxBufferStatus_e
Enumeration to define the serial peripheral interface (SPI) Tx Buffer Status.
void SPI_enableRxFifoInt(SPI_Handle spiHandle)
Enables the serial peripheral interface (SPI) receive FIFO interrupt.
#define SPI_SPIFFRX_FIFO_ST_BITS
Defines the location of the RXFFST4-0 bits in the SPIFFRX register.
void SPI_enableTxFifoEnh(SPI_Handle spiHandle)
Enables the serial peripheral interface (SPI) transmit FIFO enhancements.
#define SPI_SPIFFTX_CHAN_RESET_BITS
Defines the location of the SPIRST bits in the SPIFFTX register.
void SPI_enableChannels(SPI_Handle spiHandle)
Enables the serial peripheral interface (SPI) transmit and receive channels.
#define SPI_SPIFFTX_FIFO_RESET_BITS
Defines the location of the TXFIFO Reset bits in the SPIFFTX register.
#define SPI_SPICTL_INT_ENA_BITS
Defines the location of the SPI INT ENA bits in the SPICTL register.
#define SPI_SPICTL_TALK_BITS
Defines the location of the TALK bits in the SPICTL register.
#define SPI_SPIPRI_STE_INV_BITS
Defines the location of the STE_INV bits in the SPIPRI register.
#define SPI_SPIST_TXBUF_BITS
Defines the location of the TX BUF FULL FLAG in the SPIST register.
void SPI_resetChannels(SPI_Handle spiHandle)
Resets the serial peripheral interface (SPI) transmit and receive channels.
#define SPI_SPIFFTX_IL_BITS
Defines the location of the TXFFIL4-0 bits in the SPIFFTX register.
void SPI_disableTxFifoInt(SPI_Handle spiHandle)
Disables the serial peripheral interface (SPI) transmit FIFO interrupt.
#define SPI_SPICCR_CHAR_LENGTH_BITS
Defines the location of the SPICHAR3-0 bits in the SPICCR register.
void SPI_disableRxFifoInt(SPI_Handle spiHandle)
Disables the serial peripheral interface (SPI) receive FIFO interrupt.
SPI_TriWire_e
Enumeration to define the tri-wire status.
void SPI_clearRxFifoOvf(SPI_Handle spiHandle)
Clears the Rx FIFO overflow flag.
SPI_CharLength_e
Enumeration to define the serial peripheral interface (SPI) character lengths.
#define SPI_SPIFFRX_INTCLR_BITS
Defines the location of the RXFFINT CLR bits in the SPIFFRX register.
void SPI_enableInt(SPI_Handle spiHandle)
Enables the serial peripheral interface (SPI) interrupt.
SPI_FifoStatus_e SPI_getRxFifoStatus(SPI_Handle spiHandle)
Gets the serial peripheral interface (SPI) receive FIFO status.
volatile uint16_t SPICTL
SPI Operation Control Register.
void SPI_setClkPolarity(SPI_Handle spiHandle, const SPI_ClkPolarity_e polarity)
Sets the serial peripheral interface (SPI) clock polarity.
#define SPI_SPIFFTX_INTCLR_BITS
Defines the location of the TXFFINT CLR bits in the SPIFFTX register.
SPI_FifoStatus_e SPI_getTxFifoStatus(SPI_Handle spiHandle)
Gets the serial peripheral interface (SPI) transmit FIFO status.
SPI_Mode_e
Enumeration to define the serial peripheral interface (SPI) network mode control. ...
void SPI_disableLoopBack(SPI_Handle spiHandle)
Disables the serial peripheral interface (SPI) loop back mode.
void SPI_enableTxFifo(SPI_Handle spiHandle)
Re-enables the serial peripheral interface (SPI) transmit FIFO.
void SPI_enableLoopBack(SPI_Handle spiHandle)
Enables the serial peripheral interface (SPI) loop back mode.
Contains public interface to various functions related to the serial peripheral interface (SPI) objec...
volatile uint16_t SPIST
SPI Status Register.
void SPI_setSuspend(SPI_Handle spiHandle, const SPI_EmulationSuspend_e emuSuspend)
Sets the serial peripheral interface (SPI) emulation suspend bits.
void SPI_enableTxFifoInt(SPI_Handle spiHandle)
Enables the serial peripheral interface (SPI) transmit FIFO interrupt.
SPI_EmulationSuspend_e
Enumeration to define the serial peripheral interface (SPI) Enumeration suspend bits.
void SPI_setTriWire(SPI_Handle spiHandle, const SPI_TriWire_e triwire)
Sets SPI port operating mode.
void SPI_disableOverRunInt(SPI_Handle spiHandle)
Disables the serial peripheral interface (SPI) over-run interrupt.
#define SPI_SPIFFTX_IENA_BITS
Defines the location of the TXFFIENA bits in the SPIFFTX register.
void SPI_setRxFifoIntLevel(SPI_Handle spiHandle, const SPI_FifoLevel_e fifoLevel)
Sets the serial peripheral interface (SPI) receive FIFO level for generating an interrupt.
void SPI_resetTxFifo(SPI_Handle spiHandle)
Resets the serial peripheral interface (SPI) transmit FIFO.
SPI_Handle SPI_init(void *pMemory, const size_t numBytes)
Initializes the serial peripheral interface (SPI) object handle.
#define SPI_SPIPRI_SUSP_BITS
Defines the location of the SUSP bits in the SPIPRI register.
void SPI_reset(SPI_Handle spiHandle)
Resets the serial peripheral interface (SPI)
#define SPI_SPIFFRX_IL_BITS
Defines the location of the RXFFIL4-0 bits in the SPIFFRX register.
#define SPI_SPIFFRX_FIFO_OVFCLR_BITS
Defines the location of the RXFFOVF CLR bits in the SPIFFRX register.
#define SPI_SPIPRI_TRIWIRE
Defines the location of the TRIWIRE bits in the SPIPRI register.
#define SPI_SPICCR_CLKPOL_BITS
Defines the location of the CLOCK POLARITY bits in the SPICCR register.
void SPI_disableTxFifoEnh(SPI_Handle spiHandle)
Disables the serial peripheral interface (SPI) transmit FIFO enhancements.
SPI_IntFlagStatus_e
Enumeration to define the serial peripheral interface (SPI) Interrupt Flag Status.
struct _SPI_Obj_ * SPI_Handle
Defines the serial peripheral interface (SPI) handle.
void SPI_enable(SPI_Handle spiHandle)
Enables the serial peripheral interface (SPI)
SPI_FifoLevel_e
Enumeration to define the serial peripheral interface (SPI) FIFO level.
volatile uint16_t SPIFFRX
SPI FIFO Receive Register.
void SPI_enableRxFifo(SPI_Handle spiHandle)
Enables the serial peripheral interface (SPI) receive FIFO.
volatile uint16_t SPICCR
SPI Configuration Control Register.
void SPI_setTxDelay(SPI_Handle spiHandle, const uint_least8_t delay)
Sets the serial peripheral interface (SPI) transmit delay.
SPI_SteInv_e
Enumeration to define the the serial peripheral interface (SPI) STE pin status.
#define SPI_SPIFFRX_FIFO_RESET_BITS
Defines the location of the RXFIFO Reset bits in the SPIFFRX register.
void SPI_clearRxFifoInt(SPI_Handle spiHandle)
Clears the Rx FIFO interrupt flag.
#define SPI_SPICCR_RESET_BITS
Defines the location of the SPI SW Reset bits in the SPICCR register.
void SPI_enableOverRunInt(SPI_Handle spiHandle)
Enables the serial peripheral interface (SPI) over-run interrupt.
void SPI_disableTx(SPI_Handle spiHandle)
Disables the serial peripheral interface (SPI) master/slave transmit mode.
SPI_ClkPolarity_e
Enumeration to define the serial peripheral interface (SPI) clock polarity for the input and output d...
#define SPI_SPIST_INTFLAG_BITS
Defines the location of the SPI INT Flag in the SPIST register.
#define SPI_SPIFFTX_FIFO_ENA_BITS
Defines the location of the SPIFFENA bits in the SPIFFTX register.
void SPI_enableTx(SPI_Handle spiHandle)
Enables the serial peripheral interface (SPI) masater/slave transmit mode.
void SPI_setSteInv(SPI_Handle spiHandle, const SPI_SteInv_e steinv)
Controls pin inversion of STE pin.
SPI_FifoStatus_e
Enumeration to define the serial peripheral interface (SPI) FIFO status.
volatile uint16_t SPIBRR
SPI Baud Rate Register.
SPI_BaudRate_e
Enumeration to define the serial peripheral interface (SPI) baud rates.
SPI_ClkPhase_e
Enumeration to define the serial peripheral interface (SPI) clock phase.
volatile uint16_t SPIPRI
SPI Priority Register.
void SPI_setClkPhase(SPI_Handle spiHandle, const SPI_ClkPhase_e clkPhase)
Sets the serial peripheral interface (SPI) clock phase.
SPI_Priority_e
Enumeration to define the the serial peripheral interface (SPI) priority.
#define SPI_SPIFFRX_IENA_BITS
Defines the location of the RXFFIENA bits in the SPIFFRX register.
volatile uint16_t SPIFFCT
SPI FIFO Control Register.
void SPI_resetRxFifo(SPI_Handle spiHandle)
Resets the serial peripheral interface (SPI) receive FIFO.
void SPI_setCharLength(SPI_Handle spiHandle, const SPI_CharLength_e length)
Sets the serial peripheral interface (SPI) character length.
#define SPI_SPIFFTX_FIFO_ST_BITS
Defines the location of the TXFFST4-0 bits in the SPIFFTX register.
void SPI_setMode(SPI_Handle spiHandle, const SPI_Mode_e mode)
Sets the serial peripheral interface (SPI) network mode.
volatile uint16_t SPIFFTX
SPI FIFO Transmit Register.
#define SPI_SPICCR_SPILBK_BITS
Defines the location of the SPILBK bits in the SPICCR register.
SPI_TxBufferStatus_e SPI_getTxBufferStatus(SPI_Handle spiHandle)
Gets the serial peripheral interface (SPI) Tx Buffer status.
void SPI_setPriority(SPI_Handle spiHandle, const SPI_Priority_e priority)
Sets the priority of the SPI port vis-a-vis the EMU.
SPI_IntFlagStatus_e SPI_getIntFlagStatus(SPI_Handle spiHandle)
Gets the serial peripheral interface (SPI) Interrupt Flag status.
void SPI_setTxFifoIntLevel(SPI_Handle spiHandle, const SPI_FifoLevel_e fifoLevel)
Sets the serial peripheral interface (SPI) transmit FIFO level for generating an interrupt.