1.5.5.4.21 SRV_FU_RegisterCallbackMemTransfer Function
C
void SRV_FU_RegisterCallbackMemTransfer(SRV_FU_MEM_TRANSFER_CB callback);
Summary
Registers a function to be called back when a memory operation finishes.
Description
This function allows the PRIME stack to register a function to be called back when when a memory operation finishes.
Precondition
The SRV_FU_Initialize function should have been called before calling this function..
Parameters
| Param | Description |
|---|---|
|
callback |
Pointer to the callback function |
Returns
None.
Example
void _endMemoryTransaction(SRV_FU_MEM_TRANSFER_CMD command,
SRV_FU_MEM_TRANSFER_RESULT result)
{
...
}
void main(void)
{
SRV_FU_Initialize();
SRV_FU_RegisterCallbackMemTransfer(_endMemoryTransaction);
}
Remarks
This function is called by the PRIME stack.
