Run-Time Interfaces/Integration Guide
A-28
Example
hEdma = EDMA3_DRV_open (phyCtrllerInstId,
&initCfg, &errorCode);
Comments
a) Init configuration structure
initCfg
consists
of:
regionId
- Region Identification Number.
isMaster
- Whether EDMA3 Driver Instance
is Master or not. Shadow Region tied to this
Master Instance will only receive interrupts
from the EDMA3 controller, if they are
enabled.
drvInstInitConfig
- Instance specific
resources’ configuration. Like resources
owned by this region and resources
reserved by this region.
drvSemHandle
-
Instance
specific
semaphore handle. Used to share resources
(DMA/QDMA channels, PaRAM Sets, TCCs
etc) among different users. Provided by the
user.
gblerrCb
– Instance wide global callback
function to catch non-channel specific errors
from the EDMA3 Channel Controller. for
e.g., TCC error, queue threshold exceed
error etc.
gblerrData
- Application data to be passed
back to the callback function.
b) This function disables the global interrupts
while modifying the global Driver data
structures, to make it re-entrant.
See Also
Errors
EDMA3_DRV_E_INVALID_PARAM,
EDMA3_DRV_E_INVALID_STATE,
EDMA3_DRV_E_INST_ALREADY_EXISTS
Summary of Contents for EDMA3
Page 12: ......
Page 17: ...EDMA3 Driver Introduction I 1 5 ...
Page 20: ......
Page 40: ...Run Time Interfaces Integration Guide A 12 EDMA3_DRV_IOCTL_MAX_IOCTL Max IOCTL ...
Page 75: ...Run Time Interfaces Integration Guide I A 47 Errors EDMA3_DRV_E_INVALID_PARAM ...
Page 107: ...Run Time Interfaces Integration Guide I A 79 ...