1.26.16.11 RTT_CALLBACK Typedef

C

typedef void (*RTT_CALLBACK)(RTT_INTERRUPT_TYPE type, uintptr_t context);

Summary

Defines the data type and function signature for the RTT peripheral callback function.

Description

This data type defines the function signature for the RTT peripheral callback function. The RTT peripheral will call back the client's function with this signature once the alarm match or periodic interrupt occurs.

Precondition

RTT_CallbackRegister must have been called to set the function to be called.

Parameters

Param Description
context Allows the caller to provide a context value (usually a pointer to the callers context for multi-instance clients)
type Reason for the interrupt

Returns

None.