Jump to main content

# 2.1.4.18 DRV_MCMETROLOGY_GetHarData Function

## C

    DRV_MCMETROLOGY_REGS_HARMONICS * DRV_MCMETROLOGY_GetHarData (void);

## Summary

Get the pointer to the harmonic analysis registers of the metrology library application running on the second processor.

## Description

Harmonic analysis registers are acting as 32-bit metrology harmonic analysis registers. The Metrology module shall generate the following primary output measurement quantities for each measurement interval, per-channel quantities. Internal scaling allows accurate harmonic analysis for integration periods of up to 16 seconds for up to full-scale magnitude input waveforms. For a detailed description of the harmonic analysis registers, refer to the `drv_mcmetrology_regs.h` header file.

## Parameters

None.

## Returns

Pointer to the 32-bit metrology harmonic analysis registers.

## Example

        /* Get Pointers to metrology data regions */
        app_metrologyData.pMetControl = DRV_MCMETROLOGY_GetControlData();
        app_metrologyData.pMetStatus = DRV_MCMETROLOGY_GetStatusData();
        app_metrologyData.pMetAccData = DRV_MCMETROLOGY_GetAccData();
        app_metrologyData.pMetHarData = DRV_MCMETROLOGY_GetHarData();

## Remarks

None.

Rev: E