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