402 #ifndef ti_drivers_SPI__include 403 #define ti_drivers_SPI__include 430 #define SPI_CMD_RESERVED (32) 444 #define SPI_STATUS_RESERVED (-32) 459 #define SPI_STATUS_SUCCESS (0) 467 #define SPI_STATUS_ERROR (-1) 476 #define SPI_STATUS_UNDEFINEDCMD (-2) 496 #define SPI_WAIT_FOREVER (~(0U)) 703 extern void SPI_close(SPI_Handle handle);
742 extern int_fast16_t
SPI_control(SPI_Handle handle, uint_fast16_t cmd,
void SPI_init(void)
This function initializes the SPI module.
SPI_Mode mode
Definition: SPI.h:601
enum SPI_Status_ SPI_Status
Status codes that are set by the SPI driver.
void * rxBuf
Definition: SPI.h:526
SPI_FrameFormat_
Definitions for various SPI data frame formats.
Definition: SPI.h:555
SPI_CloseFxn closeFxn
Definition: SPI.h:654
void const * hwAttrs
Definition: SPI.h:691
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:540
enum SPI_Mode_ SPI_Mode
Definitions for various SPI modes of operation.
SPI_InitFxn initFxn
Definition: SPI.h:660
A SPI_Transaction data structure is used with SPI_transfer(). It indicates how many SPI_FrameFormat f...
Definition: SPI.h:522
SPI_ControlFxn controlFxn
Definition: SPI.h:657
SPI_TransferFxn transferFxn
Definition: SPI.h:666
uint32_t bitRate
Definition: SPI.h:602
uint32_t dataSize
Definition: SPI.h:603
void SPI_transferCancel(SPI_Handle handle)
Function to cancel SPI transactions.
SPI_FxnTable const * fxnTablePtr
Definition: SPI.h:685
void SPI_Params_init(SPI_Params *params)
Function to initialize the SPI_Params struct to its defaults.
bool(* SPI_TransferFxn)(SPI_Handle handle, SPI_Transaction *transaction)
A function pointer to a driver specific implementation of SPI_transfer().
Definition: SPI.h:638
size_t count
Definition: SPI.h:524
struct SPI_Transaction_ SPI_Transaction
A SPI_Transaction data structure is used with SPI_transfer(). It indicates how many SPI_FrameFormat f...
SPI_TransferCancelFxn transferCancelFxn
Definition: SPI.h:669
void(* SPI_TransferCancelFxn)(SPI_Handle handle)
A function pointer to a driver specific implementation of SPI_transferCancel().
Definition: SPI.h:645
SPI_Status_
Status codes that are set by the SPI driver.
Definition: SPI.h:506
uint32_t transferTimeout
Definition: SPI.h:597
enum SPI_TransferMode_ SPI_TransferMode
SPI transfer mode determines the whether the SPI controller operates synchronously or asynchronously...
void(* SPI_CloseFxn)(SPI_Handle handle)
A function pointer to a driver specific implementation of SPI_close().
Definition: SPI.h:613
The definition of a SPI function table that contains the required set of functions to control a speci...
Definition: SPI.h:652
SPI Parameters.
Definition: SPI.h:595
SPI_Status status
Definition: SPI.h:530
int_fast16_t SPI_control(SPI_Handle handle, uint_fast16_t cmd, void *controlArg)
Function performs implementation specific features on a given SPI_Handle.
struct SPI_Params_ SPI_Params
SPI Parameters.
void * txBuf
Definition: SPI.h:525
bool SPI_transfer(SPI_Handle handle, SPI_Transaction *transaction)
Function to perform SPI transactions.
struct SPI_Config_ SPI_Config
SPI Global configuration.
SPI Global configuration.
Definition: SPI.h:683
SPI_OpenFxn openFxn
Definition: SPI.h:663
SPI_Mode_
Definitions for various SPI modes of operation.
Definition: SPI.h:546
void * custom
Definition: SPI.h:605
enum SPI_FrameFormat_ SPI_FrameFormat
Definitions for various SPI data frame formats.
void SPI_close(SPI_Handle handle)
Function to close a SPI peripheral specified by the SPI handle.
SPI_TransferMode transferMode
Definition: SPI.h:596
struct SPI_Config_ * SPI_Handle
A handle that is returned from a SPI_open() call.
Definition: SPI.h:501
SPI_Handle SPI_open(uint_least8_t index, SPI_Params *params)
This function opens a given SPI peripheral.
void * arg
Definition: SPI.h:527
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:619
void(* SPI_InitFxn)(SPI_Handle handle)
A function pointer to a driver specific implementation of SPI_init().
Definition: SPI.h:626
SPI_Handle(* SPI_OpenFxn)(SPI_Handle handle, SPI_Params *params)
A function pointer to a driver specific implementation of SPI_open().
Definition: SPI.h:632
SPI_FrameFormat frameFormat
Definition: SPI.h:604
struct SPI_FxnTable_ SPI_FxnTable
The definition of a SPI function table that contains the required set of functions to control a speci...
SPI_CallbackFxn transferCallbackFxn
Definition: SPI.h:600
SPI_TransferMode_
SPI transfer mode determines the whether the SPI controller operates synchronously or asynchronously...
Definition: SPI.h:574
void * object
Definition: SPI.h:688