1.40.4.7 MCLK_CKRDY_CALLBACK Typedef
C
typedef void (*MCLK_CKRDY_CALLBACK)(uintptr_t context);
Summary
Defines the data type and function signature for the Main Clock Ready callback function.
Description
This data type defines the function signature for the Main Clock Ready callback function. The Main Clock will call back the client's function with this signature when it needs to notify the client of 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 MCLK_CallbackRegister() function.
Parameters
Param | Description |
---|---|
context | Allows the caller to provide a context value (usually a pointer to the callers context for multi-instance clients). |
Returns
None.
Example
void MyMCLKReadyCallback (uintptr_t context ) { This means the MCLK clock is ready. } Register the callback function. Specify the context as NULL. MCLK_CallbackRegister(MyMCLKReadyCallback, NULL);
Remarks
None.