3.3.9.1 PAC_CallbackRegister
Registers the function to be called when a PAC error has occurred.
This function registers the callback function to be called when a PAC error has occurred. The function is available only when the module interrupt is enabled in MCC. Context value can be set to NULL if this is not required.
void PAC_CallbackRegister
(
PAC_CALLBACK callback,
uintptr_t context
);
Precondition
- PAC_Initialize() function should have been called once. Interrupt option in MCC should have been enabled.
Parameters
- callback - callback function pointer. Setting this to NULL will disable the callback feature.
- context - Allows the caller to provide a context value (usually a pointer to the callers context for multi-instance clients).
Returns
- void
