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
| Parameters | 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.
