1.39.19.8 SUPC_BODVDD_CALLBACK Typedef

C

typedef void (*SUPC_BODVDD_CALLBACK)( uintptr_t context );

Summary

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

Description

This data type defines the function signature for the SUPC peripheral callback function. The SUPC peripheral will call back the client's function with this signature when a Brown Out event has been detected. This function will be called only if the BODVDD action in the NVM user row is set to interrupt.

Precondition

SUPC_Initialize() must have been called for the given supc peripheral instance and SUPC_BODVDDCallbackRegister() 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).

Returns

None.

Example

void APP_BrownOutEventHandler( uintptr_t context )
{
    // do something
}

SUPC_BODVDDCallbackRegister(APP_BrownOutEventHandler, 0);

Remarks

None.