3.1.4.20 ICM_CallbackRegister Function

C

void ICM_CallbackRegister (ICM_INTERRUPT_SOURCE source, ICM_CALLBACK callback);

Summary

Registers the callback function to be called when an ICM interrupt is triggered.

Description

Assign the callback function to call when the source interrupt is raised.

Precondition

None.

Parameters

ParamDescription
sourceSource of the interrupt to enable.
callbackICM Callback function.

Returns

None.

Example


ICM_CallbackRegister(ICM_INTERRUPT_RDM, _appDigestMismatchCallback);
ICM_EnableInterrupt(ICM_INTERRUPT_RDM, ICM_REGION_0);
ICM_EnableInterrupt(ICM_INTERRUPT_RDM, ICM_REGION_1);

Remarks

None.