Jump to main content

##

# 1.1.2.9 TCMECC_FixCallbackRegister

    void TCMECC_FixCallbackRegister(TCMECC_CALLBACK callback, uintptr_t context)

Summary

Sets the pointer to the function (and it's context) to be called when the given TCMECC's Fixable interrupt events occur.

Description

This function sets the pointer to a client function to be called "back" when the given TCMECC's interrupt events occur. It also passes a context value (usually a pointer to a context structure) that is passed into the function when it is called. The specified callback function will be called from the peripheral interrupt context.

Preconditions

TCMECC_Initialize must have been called for the associated TCMECC instance.

Parameters

- callback - A pointer to a function with a calling signature defined by the TCMECC_CALLBACK data type. Setting this to NULL disables the callback feature.
- contextHandle - A value (usually a pointer) passed (unused) into the function identified by the callback parameter.

Returns

None

Example

        // Refer to the description of the TCMECC_CALLBACK data type for
        // example usage.