1.5.5.4.29 SRV_FU_RegisterCallbackSwapVersion Function
C
void SRV_FU_RegisterCallbackSwapVersion(SRV_FU_VERSION_SWAP_CB callback);
Summary
Registers a function to be called back when the PRIME stack requests to trigger a PRIME stack version swap.
Description
This routine allows the application to register a function to be called back when the PRIME stack requests to trigger a PRIME stack version swap.
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 _swap(SRV_FU_TRAFFIC_VERSION trafficVersion)
{
...
}
void main(void)
{
SRV_FU_Initialize();
SRV_FU_RegisterCallbackSwapVersion(_swap);
}
Remarks
This function is called by the application.
