440 #ifndef ti_drivers_SPI__include 441 #define ti_drivers_SPI__include 448 #ifdef ENABLE_LEGACY_TERMINOLOGY 473 #define SPI_CMD_RESERVED (32) 487 #define SPI_STATUS_RESERVED (-32) 502 #define SPI_STATUS_SUCCESS (0) 510 #define SPI_STATUS_ERROR (-1) 519 #define SPI_STATUS_UNDEFINEDCMD (-2) 539 #define SPI_WAIT_FOREVER (~(0U)) 687 typedef int_fast16_t (*
SPI_ControlFxn)(SPI_Handle handle, uint_fast16_t cmd,
void *arg);
771 extern void SPI_close(SPI_Handle handle);
810 extern int_fast16_t
SPI_control(SPI_Handle handle, uint_fast16_t cmd,
void *controlArg);
ADC_Params params
Definition: Driver_Init.h:11
void SPI_init(void)
This function initializes the SPI module.
uint32_t bitRate
SPI bit rate in Hz.
Definition: SPI.h:670
size_t count
Definition: SPI.h:573
void const * hwAttrs
Definition: SPI.h:759
void(* SPI_CallbackFxn)(SPI_Handle handle, SPI_Transaction *transaction)
The definition of a callback function used by the SPI driver when used in SPI_MODE_CALLBACK.
Definition: SPI.h:592
SPI_FrameFormat frameFormat
Definition: SPI.h:672
void SPI_transferCancel(SPI_Handle handle)
Function to cancel SPI transactions.
uint32_t transferTimeout
Definition: SPI.h:655
SPI_TransferMode
SPI transfer mode determines the whether the SPI controller operates synchronously or asynchronously...
Definition: SPI.h:629
SPI_TransferMode transferMode
Definition: SPI.h:654
SPI_FxnTable const * fxnTablePtr
Definition: SPI.h:753
void SPI_Params_init(SPI_Params *params)
Function to initialize the SPI_Params struct to its defaults.
SPI_CloseFxn closeFxn
Definition: SPI.h:721
SPI_TransferCancelFxn transferCancelFxn
Definition: SPI.h:736
SPI Parameters.
Definition: SPI.h:652
SPI_Status
Status codes that are set by the SPI driver.
Definition: SPI.h:549
bool(* SPI_TransferFxn)(SPI_Handle handle, SPI_Transaction *transaction)
A function pointer to a driver specific implementation of SPI_transfer().
Definition: SPI.h:705
void * arg
Definition: SPI.h:576
void * nextPtr
Definition: SPI.h:581
SPI_ControlFxn controlFxn
Definition: SPI.h:724
void(* SPI_TransferCancelFxn)(SPI_Handle handle)
A function pointer to a driver specific implementation of SPI_transferCancel().
Definition: SPI.h:711
void * txBuf
Definition: SPI.h:574
The definition of a SPI function table that contains the required set of functions to control a speci...
Definition: SPI.h:718
void(* SPI_CloseFxn)(SPI_Handle handle)
A function pointer to a driver specific implementation of SPI_close().
Definition: SPI.h:681
uint32_t dataSize
Definition: SPI.h:671
int_fast16_t SPI_control(SPI_Handle handle, uint_fast16_t cmd, void *controlArg)
Function performs implementation specific features on a given SPI_Handle.
A SPI_Transaction data structure is used with SPI_transfer(). It indicates how many SPI_FrameFormat f...
Definition: SPI.h:570
SPI_OpenFxn openFxn
Definition: SPI.h:730
bool SPI_transfer(SPI_Handle handle, SPI_Transaction *transaction)
Function to perform SPI transactions.
struct SPI_Config_ SPI_Config
SPI Global configuration.
SPI_Mode
Definitions for various SPI modes of operation.
Definition: SPI.h:597
SPI Global configuration.
Definition: SPI.h:750
void * rxBuf
Definition: SPI.h:575
void SPI_close(SPI_Handle handle)
Function to close a SPI peripheral specified by the SPI handle.
struct SPI_Config_ * SPI_Handle
A handle that is returned from a SPI_open() call.
Definition: SPI.h:544
SPI_Handle SPI_open(uint_least8_t index, SPI_Params *params)
This function opens a given SPI peripheral.
int_fast16_t(* SPI_ControlFxn)(SPI_Handle handle, uint_fast16_t cmd, void *arg)
A function pointer to a driver specific implementation of SPI_control().
Definition: SPI.h:687
void(* SPI_InitFxn)(SPI_Handle handle)
A function pointer to a driver specific implementation of SPI_init().
Definition: SPI.h:693
SPI_TransferFxn transferFxn
Definition: SPI.h:733
void * custom
Definition: SPI.h:673
SPI_Handle(* SPI_OpenFxn)(SPI_Handle handle, SPI_Params *params)
A function pointer to a driver specific implementation of SPI_open().
Definition: SPI.h:699
SPI_CallbackFxn transferCallbackFxn
Definition: SPI.h:657
SPI_Status status
Definition: SPI.h:579
SPI_FrameFormat
Definitions for various SPI data frame formats.
Definition: SPI.h:607
SPI_Mode mode
Definition: SPI.h:658
Provide a translation layer for legacy terminology.
SPI_InitFxn initFxn
Definition: SPI.h:727
void * object
Definition: SPI.h:756