Jump to main content

##

# 2.75.2 OPAx_DifferentialInputModeSet Function

## C

    /* x = OPA instance number */

    inline static void OPAx_DifferentialInputModeSet(OPA_DIFFERENTIAL_INPUT_MODE input);

## Summary

Sets the differential input mode for the OPAx module of the device.

## Description

This function configures the differential input mode for the OPAx module by setting the appropriate bits in the control register.

## Precondition

Ensure that the OPAx module is properly initialized before configuring the differential input mode.

## Parameters

Param | Description
input | The selected differential input mode. This parameter should be of type OPA_DIFFERENTIAL_INPUT_MODE

## Returns

None.

## Example

    // Set the OPA module to differential input mode
    OPA_DiffInputMode mode = OPA_DIFF_INPUT_MODE_DIFFERENTIAL;
    OPA_SetDiffInputMode(mode);

## Remarks

None.