Jump to main content

# 2.1.4.15 DRV_MCMETROLOGY_GetControlByDefault Function

## C

    DRV_MCMETROLOGY_CONTROL * DRV_MCMETROLOGY_GetControlByDefault (void);

## Summary

Get the pointer to the control registers defined by default through the Microchip Code Configurator (MCC) included in Harmony 3 framework.

## Description

After generating the code application through MCC, a struct data is defined as a constant. It includes all control registers obtained according to the MCC configuration established in the Harmony 3 project. The content of each control register is defined in `configuration.h` header file.

## Parameters

None.

## Returns

Pointer to the control registers defined as the default configuration.

## Example

        DRV_MCMETROLOGY_CONTROL *pSrc;

        pSrc = DRV_MCMETROLOGY_GetControlByDefault();

## Remarks

None.

Rev: E