Run-Time Interfaces/Integration Guide
A-60
3.3.3.28
EDMA3_DRV_ setCCRegister ()
Prototype
EDMA3_DRV_Result EDMA3_DRV_setCCRegister (
EDMA3_DRV_Handle hEdma, unsigned int regOffset,
unsigned int newRegValue);
Description
Sets a particular EDMA3 Channel Controller (CC)
register, by specifying the offset and value. Since all
the CC registers are 4 bytes in length, the offset
specified should be 4-bytes aligned in nature.
<arg1>
hEdma
[IN] Handle to the EDMA3 Driver
Instance.
<arg2>
regOffset
[IN]
CC Register offset whose value
needs to be set.
A
rg
u
m
e
n
ts
<arg3>
newRegValue [IN]
New CC Register Value
Return value
EDMA3_DRV_SOK or EDMA3_DRV Error Code in
case of error.
Calling
constraints
Example
result = EDMA3_DRV_setCCRegister(hEdma,
ccRegOffset, newRegVal);
Comments
This function is non re-entrant for users using the
same EDMA handle i.e. working on the same shadow
region. Before modifying a register, it tries to
acquire a semaphore (Driver instance specific), to
protect simultaneous modification of the same
register by two different users. After the successful
change, it releases the semaphore. For users
working on different shadow regions, thus different
EDMA handles, this function is re-entrant.
See Also
Errors
EDMA3_DRV_E_INVALID_PARAM
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 ...