 |
AM62L FreeRTOS SDK
11.02.00
|
|
Go to the documentation of this file.
72 #define UDMA_TR_TYPE_0 (CSL_UDMAP_TR_FLAGS_TYPE_1D_DATA_MOVE)
73 #define UDMA_TR_TYPE_1 (CSL_UDMAP_TR_FLAGS_TYPE_2D_DATA_MOVE)
74 #define UDMA_TR_TYPE_2 (CSL_UDMAP_TR_FLAGS_TYPE_3D_DATA_MOVE)
75 #define UDMA_TR_TYPE_3 (CSL_UDMAP_TR_FLAGS_TYPE_4D_DATA_MOVE)
76 #define UDMA_TR_TYPE_15 (CSL_UDMAP_TR_FLAGS_TYPE_4D_BLOCK_MOVE_REPACKING_INDIRECTION)
88 #define UDMA_GET_TRPD_TR15_SIZE(n) (UDMA_ALIGN_SIZE(sizeof(CSL_UdmapTR15) + ((n) * (sizeof(CSL_UdmapTR15) + 4U))))
99 #define UDMA_GET_TRPD_TR3_SIZE(n) (UDMA_ALIGN_SIZE(sizeof(CSL_UdmapTR3) + ((n) * (sizeof(CSL_UdmapTR3) + 4U))))
104 #define UDMA_TR1_OFFSET (32U)
109 #define UDMA_TR3_OFFSET (32U)
201 uint32_t localeventID, uint32_t eventMode);
211 uint32_t reloadEnable, uint32_t reloadIdx);
256 uint32_t trRespStatus;
257 const uint32_t *pTrResp;;
260 pTrResp = (
const uint32_t *) (trpdMem +
261 (
sizeof(CSL_UdmapTR15) +
262 (
sizeof(CSL_UdmapTR15) * trCnt) +
263 (
sizeof(uint32_t) * trIndex)));
264 trRespStatus = CSL_FEXT(*pTrResp, UDMAP_TR_RESPONSE_STATUS_TYPE);
266 return (trRespStatus);
274 pTr = (CSL_UdmapTR15 *)(trpdMem +
sizeof(CSL_UdmapTR15) + (
sizeof(CSL_UdmapTR15) * trIndex));
void * Udma_ChHandle
UDMA channel handle.
Definition: udma_types.h:67
uint32_t UdmaUtils_getTrSizeEncoded(uint32_t trType)
Returns the size of TR (encoded) based on the type.
int32_t UdmaUtils_setTrpdReload(uint8_t *trpdMem, uint32_t reloadEnable, uint32_t reloadIdx)
Sets the reload count and index for the TRPD.
static CSL_UdmapTR1 * UdmaUtils_getTrpdTr1Pointer(uint8_t *trpdMem, uint32_t trIndex)
Returns the TR1 pointer in the TRPD memory based on the index.
Definition: udma_utils.h:279
void UdmaUtils_makeTrpd(uint8_t *trpdMem, uint32_t trType, uint32_t trCnt, uint32_t cqRingNum)
UDMA utility API to make TRPD. Other TRPD make APIs should be called only after this API.
void UdmaUtils_makeTrpdTr15(uint8_t *trpdMem, uint32_t trCnt, uint32_t cqRingNum)
UDMA utility API to make TRPD with TR15 TR type. Other TRPD make APIs should be called only after thi...
#define UDMA_TR3_OFFSET
Offset for TR3 type TR from TRPD start address.
Definition: udma_utils.h:109
#define UDMA_TR1_OFFSET
Offset for TR1 type TR from TRPD start address.
Definition: udma_utils.h:104
uint32_t UdmaUtils_getTrSizeBytes(uint32_t trType)
Returns the size of TR in bytes based on the type.
static CSL_UdmapTR3 * UdmaUtils_getTrpdTr3Pointer(uint8_t *trpdMem, uint32_t trIndex)
Definition: udma_utils.h:289
void * Udma_DrvHandle
UDMA driver handle.
Definition: udma_types.h:65
static uint32_t UdmaUtils_getTrpdTr15Response(const uint8_t *trpdMem, uint32_t trCnt, uint32_t trIndex)
Returns the TR response in the TRPD memory based on the index.
Definition: udma_utils.h:252
uint32_t UdmaUtils_getRingMemSize(uint8_t mode, uint32_t elemCnt, uint8_t elemSize)
UDMA get ring size utility API.
int32_t UdmaUtils_mapLocaltoGlobalEvent(Udma_DrvHandle drvHandle, Udma_ChHandle chHandle, uint32_t localeventID, uint32_t eventMode)
Map L2G event for BCDMA trigger.
static CSL_UdmapTR15 * UdmaUtils_getTrpdTr15Pointer(uint8_t *trpdMem, uint32_t trIndex)
Returns the TR15 pointer in the TRPD memory based on the index.
Definition: udma_utils.h:269