Jump to main content

##

# 2.12.23 CCT_CALLBACK Typedef

## C

    typedef void (*CCT_CALLBACK)(uintptr_t context);

## Summary

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

## Description

This data type defines the function signature for the CCT peripheral callback function. The CCT peripheral will call back the client's function with this signature for various capture/compare events.

## Precondition

CCT_Initialize() function must have been called first.

## Parameters

Param | Description
--- | ---
context | A value (usually a pointer) which is passed (unused) into the function identified by the callback parameter

## Returns

None

## Example

    void cct_capture_callback(uintptr_t context)
    {
        /* Capture event callback */
    }

    CCT_Capture0CallbackRegister(cct_capture_callback, 0);

## Remarks

None