Jump to main content

# 1.2.4.4.2 SRV_PVDDMON_Start Function

## C

    void SRV_PVDDMON_Start
    (
        SRV_PVDDMON_CMP_MODE cmpMode
    );

## Summary

Start the PVDD Monitor service.

## Description

This routine starts the PVDD Monitor service, configuring the ADC plib and setting the Comparison mode.

## Parameters

Param | Description
--- | ---
cmpMode | Comparison mode - SRV_PVDDMON_CMP_MODE.

## 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

Function SRV_PVDDMON_Initialize must have been called before calling this function. PVDD Monitor event handler must have been set before calling this function to be able to receive the PVDD Monitor events.

Rev: G