Jump to main content

# 1.2.4.4.4 SRV_PVDDMON_CallbackRegister Function

## C

    void SRV_PVDDMON_CallbackRegister
    (
        SRV_PVDDMON_CALLBACK callback,
        uintptr_t context
    );

## Summary

Allows a client to identify a PVDD Monitor event handling function to call back when the PVDD level is in/out comparison window.

## Description

The callback once set, persists until the client closes the sets another callback (which could be a NULL pointer to indicate no callback).

## Parameters

Param | Description
--- | ---
callback | Pointer to the callback function.
context | The value of parameter will be passed back to the client unchanged, when the callback function is called.

## Returns

None.

## Example

    /* Enable PLC PVDD Monitor Service */
    SRV_PVDDMON_CallbackRegister(APP_PLC_PVDDMonitorCb, 0);
    /* Notify when PVDD level leaves the comparison window */
    SRV_PVDDMON_Start(SRV_PVDDMON_CMP_MODE_OUT);

## Remarks

None.

Rev: G