Go to the documentation of this file.
33 #ifndef __COMMON_DATA_H__
34 #define __COMMON_DATA_H__
49 #include "maxim_uart.h"
50 #include "maxim_gpio.h"
51 #include "maxim_uart_stdio.h"
52 #include "maxim_pwm.h"
53 #include "maxim_spi.h"
54 #include "maxim_irq.h"
76 #define V_MULT (1000ul)
77 #define V_DIVIDER (1001ul)
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
int interface_toggle_led(struct no_os_gpio_desc *gpio_led_desc)
Toggle LED.
Definition: interface.c:102
int64_t rms_filter_v2_3(int32_t sample)
Compute v2_3 rms value for device 3.
Definition: common_data.c:289
struct no_os_spi_init_param ade7913_spi_ip0
Definition: platform.c:90
int64_t supply_scale_v(int32_t val)
Scale V value.
Definition: common_data.c:323
Header file of SPI Interface.
struct no_os_gpio_init_param ade7913_gpio_rdy_ip
Definition: platform.c:81
Header file of Delay functions.
struct no_os_uart_init_param uart_ip
Definition: common_data.c:52
int64_t rms_filter_i(int32_t sample)
Compute i rms value.
Definition: supply.c:333
ADE7913 Device structure.
Definition: ade7913.h:164
int64_t rms_filter_v1_3(int32_t sample)
Compute v1_3 rms value for device 3.
Definition: common_data.c:272
int rms_adc_values_read_3(struct ade7913_dev *dev, struct rms_adc_values *rms)
Saves the current and voltage values of device 3 in rms_adc structure.
Definition: common_data.c:139
int64_t rms_filter_i_3(int32_t sample)
Compute i_3 rms value for device 3.
Definition: common_data.c:306
int32_t * i_rms_adc
Definition: common_data.h:88
int64_t rms_filter_v1_2(int32_t sample)
Compute v1_2 rms value for device 2.
Definition: common_data.c:221
Definition: state_machine.h:224
struct no_os_spi_init_param ade7913_spi_ip2
Definition: platform.c:112
int64_t rms_filter_v2_2(int32_t sample)
Compute v2_2 rms value for device 2.
Definition: common_data.c:238
int64_t rms_filter_v2(int32_t sample)
Compute v2 rms value.
Definition: supply.c:316
int32_t * v2_rms_adc
Definition: common_data.h:92
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
struct no_os_spi_init_param ade7913_spi_ip1
Definition: platform.c:101
Header file of ADE7913 Driver.
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:75
int64_t rms_filter_i_2(int32_t sample)
Compute i_2 rms value for device 2.
Definition: common_data.c:255
Header file of PWM Interface.
struct no_os_gpio_init_param gpio_led1_ip
Definition: platform.c:72
int64_t rms_filter_v1(int32_t sample)
Compute v1 rms value.
Definition: supply.c:299
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
int32_t * i_rms
Definition: common_data.h:82
int rms_adc_values_read_2(struct ade7913_dev *dev, struct rms_adc_values *rms)
Saves the current and voltage values of device 2 in rms_adc structure.
Definition: common_data.c:107
Header file of GPIO Interface.
int32_t * v1_rms_adc
Definition: common_data.h:90
Header file of UART interface.
int32_t * v2_rms
Definition: common_data.h:86
Header file of utility functions.
int32_t * v1_rms
Definition: common_data.h:84
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140