Jump to main content

##

# 2.18.12 CMPx_DACSlopeUpdateMode Function

## C

    // x is the instance number of the CMP peripheral
    inline static void CMPx_DACSlopeUpdateMode(CMP_DAC_SLOPE_UPDATE_MODE updateMode)
    {
        DAC1CONbits.EXTUPD = (uint8_t)updateMode;
    }

## Summary

Updates slope mode

## Description

This inline function sets the slope data update mode specified in CMP_DAC_SLOPE_UPDATE_MODE

## Precondition

None.

## Parameters

Param | Description
updateMode | sets the slope data update mode specified in CMP_DAC_SLOPE_UPDATE_MODE

## Returns

None.

## Example

    CMP1_DACSlopeUpdateMode(CMP_DAC_SLOPE_UPDATE_IMMIDIATE);

## Remarks

Available only in slope mode.