![]() |
no-OS
|
Defines common data to be used by ADE7754 example project. More...
#include "ade7754.h"#include "no_os_uart.h"#include "no_os_pwm.h"#include "no_os_delay.h"#include "no_os_gpio.h"#include "no_os_spi.h"#include "no_os_print_log.h"#include "no_os_units.h"#include "no_os_util.h"#include "no_os_error.h"#include "maxim_uart.h"#include "maxim_gpio.h"#include "maxim_uart_stdio.h"#include "maxim_pwm.h"#include "maxim_spi.h"#include "maxim_irq.h"Macros | |
| #define | PRINT_INTERVAL 50 |
| #define | RSMALL 1 |
| #define | RHIGH 0 |
| #define | V_GAIN ((RSMALL + RHIGH) / RSMALL) |
| #define | I_GAIN 1 |
| #define | VOLTAGE_RMS_FS_CODE 1848772 |
| #define | CURRENT_RMS_FS_CODE 1898124 |
| #define | ADC_FS_RMS_IN 353.5 |
| #define | PERIOD_RES 2.4 |
| #define | TEMP_G 4 |
| #define | ADE7754_AMB_T_CELSIUS 129 |
Functions | |
| int | read_rms_measurements (struct ade7754_dev *dev) |
| Read rms measurements. | |
| int | print_measurements (struct ade7754_dev *dev) |
| print measurements | |
| int | interface_toggle_led (struct no_os_gpio_desc *gpio_led_desc) |
| Toggle LED. | |
Variables | |
| struct no_os_uart_init_param | uart_ip |
| struct no_os_gpio_init_param | gpio_led1_ip |
| struct no_os_spi_init_param | ade7754_spi_ip |
| struct no_os_gpio_init_param | gpio_reset_ip |
| struct no_os_gpio_init_param | ade7754_gpio_irq_ip |
| struct no_os_irq_init_param | ade7754_gpio_int_ip |
Defines common data to be used by ADE7754 example project.
Copyright (c) 2025 Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| #define ADC_FS_RMS_IN 353.5 |
| #define ADE7754_AMB_T_CELSIUS 129 |
| #define CURRENT_RMS_FS_CODE 1898124 |
| #define I_GAIN 1 |
| #define PERIOD_RES 2.4 |
| #define PRINT_INTERVAL 50 |
| #define RHIGH 0 |
| #define RSMALL 1 |
| #define TEMP_G 4 |
| #define VOLTAGE_RMS_FS_CODE 1848772 |
| int interface_toggle_led | ( | struct no_os_gpio_desc * | gpio_led_desc | ) |
Toggle LED.
Toggle Led.
| gpio_led_desc | - LED descriptor |
| gpio_led_desc | - led descriptor |
Toggle LED.
| gpio_led_desc | - led descriptor |
| int print_measurements | ( | struct ade7754_dev * | dev | ) |
print measurements
| dev | - The device structure. |
| int read_rms_measurements | ( | struct ade7754_dev * | dev | ) |
Read rms measurements.
| dev | - The device structure. |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
UART initialization parameters for console communication