2.15.7 CLOCK_MonitorRdyCallbackRegister Function

C

void CLOCK_MonitorRdyCallbackRegister(CLOCK_MonitorRdyCallback callback, uintptr_t context);

Summary

Override default callback and to define custom callback for Clock Monitor Data Ready event.

Description

This function can be used to override default callback CLOCK_MonitorRdyCallback and to define custom callback for CLOCK Monitor Data Ready event.

Precondition

None.

Parameters

ParamDescription
monitor Instance of the clock monitor
callback Address of the callback routine
contextA value (usually a pointer) passed (unused) into the function identified by the callback parameter

Returns

None.

Example

void MonitorDataRdyCallback(uintptr_t context) 
{ 
   //action during the event 
} 
int main ( void ) 
{ 
   SYS_Initialize ( NULL ); 
   CLOCK_MonitorRdyCallbackRegister(CLOCK_MONITOR_1, MonitorDataRdyCallback, NULL); 
   while ( true ) 
   { 
      SYS_Tasks ( ); 
   } 
   return ( EXIT_FAILURE ); 
} 

Remarks

None.