1.30.3.3 1.31.3.3 1.33.3.3 1.37.3.3 SYSCTRL_CALLBACK Typedef
C
typedef void (*SYSCTRL_CALLBACK)(SYSCTRL_INTERRUPT_MASK interruptMask, uintptr_t context);
Summary
Defines the data type and function signature for the System Control callback function.
Description
This data type defines the function signature for the System Control callback function. The System Control will call back the client's function with this signature when it needs to notify the oscillator failure. The context parameter is an application defined data object specified at the time of registering the callback function and is returned in the context parameter of the callback function.
Precondition
The CLOCK_Initialize() initialize function should have been called. The callback function should have been registered through SYSCTRL_CallbackRegister() function.
Parameters
Param | Description |
---|---|
interruptMask | System Control interrupt masks |
context | Allows the caller to provide a context value (usually a pointer to the callers context for multi-instance clients). |
Returns
None.
Example
void SysctrlCallback (SYSCTRL_INTERRUPT_MASK interruptMask, uintptr_t context ) { } Register the callback function. Specify the context as NULL. SYSCTRL_CallbackRegister(SysctrlCallback, NULL);
Remarks
None.