no-OS
Loading...
Searching...
No Matches
common_data.c File Reference

Defines common data to be used by ADE7978 example project. More...

#include "common_data.h"
#include "platform.h"
Include dependency graph for common_data.c:

Functions

int rms_adc_values_read (struct ade7978_dev *dev, struct measurements *value, enum ade7978_phase phase)
 Saves the current and voltage values of device 1 in rms_adc structure.
 

Detailed Description

Defines common data to be used by ADE7978 example project.

Author
REtz (radu..nosp@m.etz@.nosp@m.analo.nosp@m.g.co.nosp@m.m)

Copyright (c) 2024 Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ rms_adc_values_read()

int rms_adc_values_read ( struct ade7978_dev * dev,
struct measurements * value,
enum ade7978_phase phase )

Saves the current and voltage values of device 1 in rms_adc structure.

Parameters
dev- device structure
value- structure holding the measurements values
phase- selects the phase for measurements read
Returns
0 in case of success, negative error code otherwise