33#ifndef __COMMON_DATA_H__
34#define __COMMON_DATA_H__
46#include "maxim_uart.h"
47#include "maxim_gpio.h"
48#include "maxim_uart_stdio.h"
57#define ADE7978_SHUNT_RES 1
60#define ADE7978_UP_RES 990000
61#define ADE7978_DOWN_RES 1000
62#define ADE7978_VOLTAGE_TR_FCN ((ADE7978_DOWN_RES + ADE7978_UP_RES) / ADE7978_DOWN_RES)
Header file of ADE7978 Driver.
ade7978_phase
ADE7978 available phases.
Definition ade7978.h:663
int rms_adc_values_read(struct ade7913_dev *dev, struct rms_adc_values *rms)
Saves the current and voltage values of device 1 in rms_adc structure.
Definition common_data.c:68
Header file of Delay functions.
Header file of GPIO Interface.
Header file of PWM Interface.
Header file of SPI Interface.
Header file of UART interface.
Header file of utility functions.
ADE7978 Device structure.
Definition ade7978.h:686
measurements structure.
Definition common_data.h:68
float i_rms
Definition common_data.h:70
int32_t i_rms_adc
Definition common_data.h:78
int32_t temperature
Definition common_data.h:84
float v1_rms
Definition common_data.h:72
float v2_rms
Definition common_data.h:74
int32_t v2_rms_adc
Definition common_data.h:82
int32_t v1_rms_adc
Definition common_data.h:80
float temperature_c
Definition common_data.h:76