1.26.19.25 PMERRLOC_CALLBACK Typedef

C

typedef void (* PMERRLOC_CALLBACK)( uintptr_t context, uint32_t interruptStatus )

Summary

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

Description

This data type defines the function signature for the PMERRLOC peripheral callback function. The PMERRLOC peripheral will call back the client's function with this signature when the PMERRLOC interrupt has occurred.

Precondition

PMERRLOC_Initialize must have been called for the given PMERRLOC peripheral instance. Callback must have been registered using PMERRLOC_CallbackRegister().

Parameters

Param Description
context Allows the caller to provide a context value (usually a pointerto the callers context for multiple clients)
interruptStatus PMERRLOC interrupt status

Returns

None.

Example

void pmerrlocCallback( uintptr_t context, uint32_t interruptStatus )
{
}

PMERRLOC_CallbackRegister(pmerrlocCallback, (uintptr_t)NULL);

Remarks

None.