3.3.6.1 EIC_CallbackRegister
Registers the function to be called when an interrupt condition has been sensed on the pin.
This function registers the callback function to be called when an interrupt condition has been sensed on the pin. A unique callback function can be registered for each pin.
void
EIC_CallbackRegister
(
EIC_PIN pin,
EIC_CALLBACK callback,
uintptr_t context
);
Precondition
- EIC_Initialize() must have been called first for the associated instance.
Parameters
- pin - EIC Pin number
-
callback - callback function pointer. Setting this to NULL will disable the callback feature
- context - An application defined context value that will be passed to the callback function
Returns
- void
