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"
67#define PRINT_INTERVAL 50
74#define V_GAIN ((RSMALL + RHIGH) / RSMALL)
79#define VOLTAGE_RMS_FS_CODE 1848772
80#define CURRENT_RMS_FS_CODE 1898124
82#define ADC_FS_RMS_IN 353.5
88#define ADE7754_AMB_T_CELSIUS 129
Header file of ADE7754 Driver.
struct no_os_uart_init_param uart_ip
Definition common_data.c:52
struct no_os_gpio_init_param gpio_reset_ip
Definition platform.c:74
struct no_os_gpio_init_param gpio_led1_ip
Definition platform.c:65
struct no_os_spi_init_param ade7754_spi_ip
Definition platform.c:91
struct no_os_irq_init_param ade7754_gpio_int_ip
Definition platform.c:101
int read_rms_measurements(struct ade7754_dev *dev)
Read rms measurements.
Definition common_data.c:41
struct no_os_gpio_init_param ade7754_gpio_irq_ip
Definition platform.c:83
int print_measurements(struct ade7754_dev *dev)
print measurements
Definition common_data.c:76
int interface_toggle_led(struct no_os_gpio_desc *gpio_led_desc)
Toggle LED.
Definition interface.c:95
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.
ADE7754 Device structure.
Definition ade7754.h:348
Structure holding the GPIO descriptor.
Definition no_os_gpio.h:84
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67
Structure holding the initial parameters for Interrupt Request.
Definition no_os_irq.h:101
Structure holding the parameters for SPI initialization.
Definition no_os_spi.h:128
Structure holding the parameters for UART initialization.
Definition no_os_uart.h:98