Jump to main content

##

# 2.53.8 HEMC_NoFixCallbackRegister Function

## C

    void HEMC_NoFixCallbackRegister(HEMC_CALLBACK callback, uintptr_t context)

## Summary

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

## Description

This function sets the pointer to a client function to be called "back" when the given HEMC'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.

## Precondition

HEMC_Initialize must have been called for the associated HEMC instance.

## Parameters

Param | Description
--- | ---
callback | A pointer to a function with a calling signature defined bythe HEMC_CALLBACK data type. Setting this to NULL disables the callback feature
context | A value (usually a pointer) passed (unused) into thefunction identified by the callback parameter

## Returns

None.

## Example

    void APP_HEMC_NoFixHandler(uintptr_t context)
    {

    }

    HEMC_NoFixCallbackRegister(&APP_HEMC_NoFixHandler, (uintptr_t)NULL);

## Remarks

None.