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

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

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

Functions

int read_measurements (struct ade7953_dev *dev, enum ade7953_i_ch_e channel)
 Read measurements.
 

Detailed Description

Defines common data to be used by ADE7953 example project.

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

Copyright (c) 2025 Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ read_measurements()

int read_measurements ( struct ade7953_dev * dev,
enum ade7953_i_ch_e channel )

Read measurements.

Parameters
dev- The device structure.
channel- Selects the current channel that is read
Returns
0 in case of success, negative error code otherwise.