|
AM64x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
92 #define MCSPI_TRANSFER_MODE_BLOCKING (0U)
97 #define MCSPI_TRANSFER_MODE_CALLBACK (1U)
MCSPILLD_Handle mcspiLldHandle
Definition: mcspi/v0/mcspi.h:214
int32_t MCSPI_dmaChConfig(MCSPI_Handle handle, const MCSPI_ChConfig *chCfg, const MCSPI_DmaChConfig *dmaChCfg)
Function to configure a DMA of a channel.
void MCSPI_close(MCSPI_Handle handle)
Function to close a MCSPI peripheral specified by the MCSPI handle.
MCSPI instance attributes - used during init time.
Definition: mcspi/v0/mcspi.h:141
uint32_t transferTimeout
Definition: mcspi/v0/mcspi.h:127
MCSPI driver initialization object.
Definition: mcspi_lld.h:701
MCSPI channel object.
Definition: mcspi_lld.h:642
uint32_t count
Definition: mcspi_lld.h:496
uint32_t txFifoTrigLvl
Definition: mcspi_lld.h:606
#define MCSPI_FF_POL0_PHA0
Definition: mcspi_lld.h:234
uint32_t rxFifoTrigLvl
Definition: mcspi_lld.h:608
void(* MCSPI_CallbackFxn)(MCSPI_Handle handle, MCSPI_Transaction *transaction)
The definition of a callback function used by the SPI driver when used in MCSPI_TRANSFER_MODE_CALLBAC...
Definition: mcspi/v0/mcspi.h:110
#define MCSPI_DPE_DISABLE
No transmission on Data Line.
Definition: mcspi_lld.h:286
uint32_t operMode
Definition: mcspi/v0/mcspi.h:155
uint32_t status
Definition: mcspi_lld.h:521
Data structure used with MCSPI_transfer()
Definition: mcspi_lld.h:475
uint32_t initDelay
Definition: mcspi/v0/mcspi.h:167
#define MCSPI_TCS0_0_CLK
0.5 clock cycles delay
Definition: mcspi_lld.h:322
uint16_t index
Definition: tisci_rm_proxy.h:3
int32_t MCSPI_reConfigFifo(MCSPI_Handle handle, uint32_t chNum, uint32_t numWordsRxTx)
Function to re-configure Effective FIFO Words.
uint32_t transferMode
Definition: mcspi/v0/mcspi.h:125
#define MCSPI_SLV_CS_SELECT_0
Definition: mcspi_lld.h:295
MCSPI driver object.
Definition: mcspi/v0/mcspi.h:181
uint32_t MCSPI_getBaseAddr(MCSPI_Handle handle)
Function to get base address of MCSPI instance of a particular handle.
uint32_t bitRate
Definition: mcspi_lld.h:577
void MCSPI_deinit(void)
This function de-initializes the MCSPI module.
MCSPI_Handle handle
Definition: mcspi/v0/mcspi.h:185
MCSPI driver object.
Definition: mcspi_lld.h:738
#define MCSPI_SB_POL_LOW
Start-bit polarity is held to 0 during MCSPI transfer.
Definition: mcspi_lld.h:310
MCSPI Parameters.
Definition: mcspi/v0/mcspi.h:124
#define MCSPI_DPE_ENABLE
Data line selected for transmission.
Definition: mcspi_lld.h:284
#define SystemP_WAIT_FOREVER
Value to use when needing a timeout of infinity or wait forver until resource is available.
Definition: SystemP.h:83
uint32_t csDisable
Definition: mcspi_lld.h:479
#define MCSPI_IS_D1
Data line 1 (SPIDAT[1]) selected for reception.
Definition: mcspi_lld.h:274
void * MCSPI_Handle
A handle that is returned from a MCSPI_open() call.
Definition: mcspi/v0/mcspi.h:71
uint32_t trMode
Definition: mcspi_lld.h:581
#define MCSPI_TRANSFER_COMPLETED
Definition: mcspi_lld.h:191
MCSPI_Object * object
Definition: mcspi/v0/mcspi.h:232
uint32_t inputClkFreq
Definition: mcspi/v0/mcspi.h:147
void MCSPI_init(void)
This function initializes the MCSPI module.
#define MCSPI_TR_MODE_TX_RX
Definition: mcspi_lld.h:260
#define MCSPI_TRANSFER_MODE_BLOCKING
MCSPI_transfer() blocks execution. This mode can only be used when called within a Task context
Definition: mcspi/v0/mcspi.h:92
#define MCSPI_CHANNEL_0
Definition: mcspi_lld.h:161
HwiP_Object hwiObj
Definition: mcspi/v0/mcspi.h:206
SemaphoreP_Object transferSemObj
Definition: mcspi/v0/mcspi.h:202
uint32_t baseAddr
Definition: mcspi/v0/mcspi.h:145
uint32_t multiWordAccess
Definition: mcspi/v0/mcspi.h:169
uint32_t csPolarity
Definition: mcspi_lld.h:579
uint32_t startBitPolarity
Definition: mcspi_lld.h:595
uint32_t chMode
Definition: mcspi/v0/mcspi.h:163
int32_t MCSPI_transfer(MCSPI_Handle handle, MCSPI_Transaction *transaction)
Function to perform MCSPI transactions.
uint32_t intrNum
Definition: mcspi/v0/mcspi.h:153
int32_t MCSPI_transferCancel(MCSPI_Handle handle)
Function to cancel MCSPI transactions on channel of a SPI peripheral specified by the MCSPI handle.
uint32_t msMode
Definition: mcspi/v0/mcspi.h:131
static void MCSPI_Transaction_init(MCSPI_Transaction *trans)
Function to initialize the MCSPI_Transaction struct to its defaults.
Definition: mcspi/v0/mcspi.h:463
void * args
Definition: mcspi_lld.h:517
uint32_t pinMode
Definition: mcspi/v0/mcspi.h:165
MCSPI LLD Driver API/interface file.
uint32_t startBitEnable
Definition: mcspi_lld.h:592
void * txBuf
Definition: mcspi_lld.h:499
void * rxBuf
Definition: mcspi_lld.h:510
#define MCSPI_MAX_NUM_CHANNELS
Max number of channels/Chip Select (CS) supported.
Definition: mcspi_lld.h:181
uint32_t dataSize
Definition: mcspi_lld.h:485
static void MCSPI_ChConfig_init(MCSPI_ChConfig *chConfig)
Function to initialize the MCSPI_ChConfig struct to its defaults.
Definition: mcspi/v0/mcspi.h:441
uint32_t slvCsSelect
Definition: mcspi_lld.h:589
int32_t MCSPI_chConfig(MCSPI_Handle handle, const MCSPI_ChConfig *chCfg)
Function to configure a MCSPI channel.
uint8_t intrPriority
Definition: mcspi/v0/mcspi.h:157
MCSPI_Handle MCSPI_getHandle(uint32_t index)
Function to return a open'ed MCSPI handle given a MCSPI instance index.
void * mcspiDmaHandle
Definition: mcspi/v0/mcspi.h:211
MCSPI global configuration array.
Definition: mcspi/v0/mcspi.h:229
void * transferSem
Definition: mcspi/v0/mcspi.h:199
Opaque Hwi object used with the Hwi APIs.
Definition: HwiP.h:93
#define MCSPI_CS_POL_LOW
SPIEN (CS) is held low during the ACTIVE state.
Definition: mcspi_lld.h:251
MCSPI_OpenParams openPrms
Definition: mcspi/v0/mcspi.h:187
uint32_t defaultTxData
Definition: mcspi_lld.h:603
static void MCSPI_OpenParams_init(MCSPI_OpenParams *openPrms)
Function to initialize the MCSPI_OpenParams struct to its defaults.
Definition: mcspi/v0/mcspi.h:430
uint32_t dpe1
Definition: mcspi_lld.h:587
uint32_t gMcspiConfigNum
Externally defined driver configuration array size.
Opaque semaphore object used with the semaphore APIs.
Definition: SemaphoreP.h:59
int32_t mcspiDmaIndex
Definition: mcspi/v0/mcspi.h:133
uint32_t channel
Definition: mcspi_lld.h:476
uint32_t inputSelect
Definition: mcspi_lld.h:583
uint32_t isOpen
Definition: mcspi/v0/mcspi.h:197
uint32_t dpe0
Definition: mcspi_lld.h:585
#define MCSPI_MS_MODE_CONTROLLER
The module generates the clock and CS.
Definition: mcspi_lld.h:215
MCSPI_Handle MCSPI_open(uint32_t index, const MCSPI_OpenParams *openPrms)
This function opens a given MCSPI peripheral.
MCSPI configuration parameters for the channel.
Definition: mcspi_lld.h:572
MCSPI_Config gMcspiConfig[]
Externally defined driver configuration array.
MCSPI_CallbackFxn transferCallbackFxn
Definition: mcspi/v0/mcspi.h:129
uint32_t baseAddr
Definition: mcspi/v0/mcspi.h:189
const MCSPI_Attrs * attrs
Definition: mcspi/v0/mcspi.h:230
MCSPILLD_Object mcspiLldObject
Definition: mcspi/v0/mcspi.h:213
MCSPI_Transaction * transaction
Definition: mcspi/v0/mcspi.h:209
uint32_t frameFormat
Definition: mcspi_lld.h:575
uint32_t csIdleTime
Definition: mcspi_lld.h:600
void * MCSPI_DmaChConfig
Definition: mcspi_lld.h:73
uint32_t chNum
Definition: mcspi_lld.h:573
void * hwiHandle
Definition: mcspi/v0/mcspi.h:204
MCSPILLD_InitObject mcspiLldInitObj
Definition: mcspi/v0/mcspi.h:215