1.5.5.4.24 SRV_FU_RegisterCallbackCrc Function
C
void SRV_FU_RegisterCallbackCrc(SRV_FU_CRC_CB callback);
Summary
Registers a function to be called back when the CRC of the received image has been calculated.
Description
This function allows the PRIME stack to register a function to be called back when the CRC of the received image has been calculated.
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 _check_crc(uint32_t crc)
{
...
}
void main(void)
{
SRV_FU_Initialize();
SRV_FU_RegisterCallbackCrc(_check_crc);
}
Remarks
This function is called by the PRIME stack.
