Header file of ADE7953 Driver. More...
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "no_os_util.h"
#include "no_os_spi.h"
#include "no_os_gpio.h"
#include "no_os_irq.h"
#include "no_os_delay.h"
#include "no_os_units.h"
#include "no_os_alloc.h"
#include "no_os_crc16.h"
#include "no_os_print_log.h"
#include <stdlib.h>
#include <errno.h>
#include <math.h>
Go to the source code of this file.
Classes | |
struct | ade7953_init_param |
ADE7953 Device initialization parameters. More... | |
struct | ade7953_dev |
ADE7953 Device structure. More... | |
struct | ade7953_energy_values |
ADE7953 energy registers values. More... | |
struct | ade7953_power_values |
ADE7953 power registers values. More... | |
struct | ade7953_rms_values |
ADE7953 rms registers values. More... | |
struct | ade7953_pq_values |
ADE7953 power quality registers values. More... | |
Functions | |
int | ade7953_init (struct ade7953_dev **device, struct ade7953_init_param init_param) |
Initialize the device. | |
int | ade7953_read (struct ade7953_dev *dev, uint16_t reg_addr, int32_t *reg_data) |
Read device register. | |
int | ade7953_write (struct ade7953_dev *dev, uint16_t reg_addr, uint32_t reg_data) |
Write device register. | |
int | ade7953_remove (struct ade7953_dev *dev) |
Remove the device and release resources. | |
int | ade7953_sw_reset (struct ade7953_dev *dev) |
Reset the device using SW reset. | |
int | ade7953_hw_reset (struct ade7953_dev *dev) |
Reset the device using HW reset. | |
int | ade7953_wr_lock_8bit (struct ade7953_dev *dev, enum ade7953_write_protect_e regs_select) |
Lock write to registers. | |
int | ade7953_version_product (struct ade7953_dev *dev, uint32_t *data_read) |
Version product. | |
int | ade7953_reset_iapk_val (struct ade7953_dev *dev, uint32_t *val) |
reset IApeak val | |
int | ade7953_reset_ibpk_val (struct ade7953_dev *dev, uint32_t *val) |
reset IBpeak val | |
int | ade7953_reset_vpk_val (struct ade7953_dev *dev, uint32_t *val) |
reset Vpeak val | |
int | ade7953_get_int_stata (struct ade7953_dev *dev, uint32_t msk, uint8_t *status) |
Get interrupt indicator from STATA register. | |
int | ade7953_get_int_statb (struct ade7953_dev *dev, uint32_t msk, uint8_t *status) |
Get interrupt indicator from STATB register. | |
int | ade7953_clear_irq_stata (struct ade7953_dev *dev) |
Clear irq stata flags. | |
int | ade7953_clear_irq_statb (struct ade7953_dev *dev) |
Clear irq statb flags. | |
int | ade7953_enable_int_a (struct ade7953_dev *dev, uint32_t msk, uint8_t en) |
Enable interrupt voltage ch and current ch A. | |
int | ade7953_enable_int_b (struct ade7953_dev *dev, uint32_t msk, uint8_t en) |
Enable/disable interrupt voltage ch and current ch B. | |
int | ade7953_zx_int_edge_set (struct ade7953_dev *dev, enum ade7953_zx_edge_e sel) |
Zero-crossing interrupt edge selection. | |
int | ade7953_cf_output_set (struct ade7953_dev *dev, enum ade7953_cfsel_e sel, enum ade7953_cf_pin_e cf_pin) |
Configure output signal on CF1/CF2 pin. | |
int | ade7953_zx_config_pin (struct ade7953_dev *dev, enum ade7953_zx_alt_e sel) |
Configure of ZX pin (Pin1) | |
int | ade7953_zxi_config_pin (struct ade7953_dev *dev, enum ade7953_zxi_alt_e sel) |
Configure of ZXI pin (Pin21) | |
int | ade7953_revp_pin_config (struct ade7953_dev *dev, enum ade7953_revp_alt_e sel) |
Configure of REVP pin (Pin20) | |
int | ade7953_acc_active_engy_mode (struct ade7953_dev *dev, enum ade7953_awattacc_e mode, enum ade7953_i_ch_e channel) |
ACC mode selection for active energy. | |
int | ade7953_acc_reactive_engy_mode (struct ade7953_dev *dev, enum ade7953_avaracc_e mode, enum ade7953_i_ch_e channel) |
ACC mode selection for reactive energy. | |
int | ade7953_energy_vals (struct ade7953_dev *dev, struct ade7953_energy_values *data, enum ade7953_i_ch_e channel) |
Read energy values. | |
int | ade7953_power_vals (struct ade7953_dev *dev, struct ade7953_power_values *data, enum ade7953_i_ch_e channel) |
Read power values. | |
int | ade7953_rms_vals (struct ade7953_dev *dev, struct ade7953_rms_values *data, enum ade7953_i_ch_e channel) |
Read rms values. | |
int | ade7953_power_quality_vals (struct ade7953_dev *dev, struct ade7953_pq_values *data) |
Read power quaility values. | |
Header file of ADE7953 Driver.
Copyright 2025(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define ADE7953_16_BITS_PROTECT NO_OS_BIT(1) |
#define ADE7953_24_32_BITS_PROTECT NO_OS_BIT(2) |
#define ADE7953_8_BITS_PROTECT NO_OS_BIT(0) |
#define ADE7953_ACTNLOAD_A_MSK NO_OS_BIT(16) |
#define ADE7953_ACTNLOAD_B_MSK NO_OS_BIT(19) |
#define ADE7953_AEHFA_MSK NO_OS_BIT(0) |
#define ADE7953_AEHFB_MSK NO_OS_BIT(0) |
#define ADE7953_AEOFA_MSK NO_OS_BIT(3) |
#define ADE7953_AEOFB_MSK NO_OS_BIT(3) |
#define ADE7953_ALVA_MSK NO_OS_BIT(4) |
#define ADE7953_ALVAR_MSK NO_OS_BIT(2) |
#define ADE7953_ALWATT_MSK NO_OS_BIT(0) |
#define ADE7953_AP_NOLOADA_MSK NO_OS_BIT(6) |
#define ADE7953_AP_NOLOADB_MSK NO_OS_BIT(6) |
#define ADE7953_APSIGN_A_MSK NO_OS_BIT(10) |
#define ADE7953_APSIGN_A_MSK NO_OS_BIT(9) |
#define ADE7953_APSIGN_B_MSK NO_OS_BIT(11) |
#define ADE7953_APSIGN_B_MSK NO_OS_BIT(9) |
#define ADE7953_AVAACC_MSK NO_OS_BIT(8) |
#define ADE7953_AVARACC_MSK NO_OS_GENMASK(5, 4) |
#define ADE7953_AWATTACC_MSK NO_OS_GENMASK(1, 0) |
#define ADE7953_BLVA_MSK NO_OS_BIT(5) |
#define ADE7953_BLVAR_MSK NO_OS_BIT(3) |
#define ADE7953_BLWATT_MSK NO_OS_BIT(1) |
#define ADE7953_BVAACC_MSK NO_OS_BIT(9) |
#define ADE7953_BVARACC_MSK NO_OS_GENMASK(7, 6) |
#define ADE7953_BWATTACC_MSK NO_OS_GENMASK(3, 2) |
#define ADE7953_CF1DIS_MSK NO_OS_BIT(8) |
#define ADE7953_CF1SEL_MSK NO_OS_GENMASK(3, 0) |
#define ADE7953_CF2DIS_MSK NO_OS_BIT(9) |
#define ADE7953_CF2SEL_MSK NO_OS_GENMASK(7, 4) |
#define ADE7953_COMM_LOCK_MSK NO_OS_BIT(15) |
#define ADE7953_CRC_ENABLE_MSK NO_OS_BIT(8) |
#define ADE7953_CRC_MSK NO_OS_BIT(21) |
#define ADE7953_CYCEND_MSK NO_OS_BIT(18) |
#define ADE7953_DIS_APNLOAD_MSK NO_OS_BIT(0) |
#define ADE7953_DIS_VANLOAD_MSK NO_OS_BIT(2) |
#define ADE7953_DIS_VARNLOAD_MSK NO_OS_BIT(1) |
#define ADE7953_HPFEN_MSK NO_OS_BIT(2) |
#define ADE7953_INTENA_MSK NO_OS_BIT(0) |
#define ADE7953_INTENB_MSK NO_OS_BIT(1) |
#define ADE7953_OIA_MSK NO_OS_BIT(13) |
#define ADE7953_OIB_MSK NO_OS_BIT(13) |
#define ADE7953_OPT_SETT 0x30 |
#define ADE7953_OV_MSK NO_OS_BIT(16) |
#define ADE7953_PFMODE_MSK NO_OS_BIT(3) |
#define ADE7953_PGA_IA_MSK NO_OS_GENMASK(2, 0) |
#define ADE7953_PGA_V_MSK NO_OS_GENMASK(2, 0) |
#define ADE7953_REG_ACCMODE 0x201 |
#define ADE7953_REG_AENERGYA 0x21E |
#define ADE7953_REG_AENERGYB 0x21F |
#define ADE7953_REG_AIGAIN 0x280 |
#define ADE7953_REG_AIRMSOS 0x286 |
#define ADE7953_REG_ALT_OUTPUT 0x110 |
#define ADE7953_REG_ANGLE_A 0x10C |
#define ADE7953_REG_ANGLE_B 0x10D |
#define ADE7953_REG_AP_NOLOAD 0x203 |
#define ADE7953_REG_APENERGYA 0x222 |
#define ADE7953_REG_APENERGYB 0x223 |
#define ADE7953_REG_AVA 0x210 |
#define ADE7953_REG_AVAGAIN 0x284 |
#define ADE7953_REG_AVAOS 0x28B |
#define ADE7953_REG_AVAR 0x214 |
#define ADE7953_REG_AVARGAIN 0x283 |
#define ADE7953_REG_AVAROS 0x28A |
#define ADE7953_REG_AVGAIN 0x281 |
#define ADE7953_REG_AWATT 0x212 |
#define ADE7953_REG_AWATTOS 0x289 |
#define ADE7953_REG_AWGAIN 0x282 |
#define ADE7953_REG_BIGAIN 0x28C |
#define ADE7953_REG_BIRMSOS 0x292 |
#define ADE7953_REG_BVA 0x211 |
#define ADE7953_REG_BVAGAIN 0x290 |
#define ADE7953_REG_BVAOS 0x297 |
#define ADE7953_REG_BVAR 0x215 |
#define ADE7953_REG_BVARGAIN 0x28F |
#define ADE7953_REG_BVAROS 0x296 |
#define ADE7953_REG_BVGAIN 0x28D |
#define ADE7953_REG_BWATT 0x213 |
#define ADE7953_REG_BWATTOS 0x295 |
#define ADE7953_REG_BWGAIN 0x28E |
#define ADE7953_REG_CF1DEN 0x103 |
#define ADE7953_REG_CF2DEN 0x104 |
#define ADE7953_REG_CFMODE 0x107 |
#define ADE7953_REG_CONFIG 0x102 |
#define ADE7953_REG_CRC 0x37F |
#define ADE7953_REG_DISNOLOAD 0x001 |
#define ADE7953_REG_EX_REF 0x800 |
#define ADE7953_REG_IA 0x216 |
#define ADE7953_REG_IAPEAK 0x228 |
#define ADE7953_REG_IB 0x217 |
#define ADE7953_REG_IBPEAK 0x22A |
#define ADE7953_REG_IRMSA 0x21A |
#define ADE7953_REG_IRMSB 0x21B |
#define ADE7953_REG_IRQENA 0x22C |
#define ADE7953_REG_IRQENB 0x22F |
#define ADE7953_REG_IRQSTATA 0x22D |
#define ADE7953_REG_IRQSTATB 0x230 |
#define ADE7953_REG_LAST_ADD 0x1FE |
#define ADE7953_REG_LAST_OP 0x0FD |
#define ADE7953_REG_LAST_RWDATA 0x0FF |
#define ADE7953_REG_LAST_RWDATA_16 0x1FF |
#define ADE7953_REG_LAST_RWDATA_24 0x2FF |
#define ADE7953_REG_LCYCMODE 0x004 |
#define ADE7953_REG_LINECYC 0x101 |
#define ADE7953_REG_OILVL 0x225 |
#define ADE7953_REG_OVLVL 0x224 |
#define ADE7953_REG_PERIOD 0x10E |
#define ADE7953_REG_PFA 0x10A |
#define ADE7953_REG_PFB 0x10B |
#define ADE7953_REG_PGA_IA 0x008 |
#define ADE7953_REG_PGA_IB 0x009 |
#define ADE7953_REG_PGA_V 0x007 |
#define ADE7953_REG_PHCALA 0x108 |
#define ADE7953_REG_PHCALB 0x109 |
#define ADE7953_REG_RENERGYA 0x220 |
#define ADE7953_REG_RENERGYB 0x221 |
#define ADE7953_REG_RESERVED 0x120 |
#define ADE7953_REG_RSTIAPEAK 0x229 |
#define ADE7953_REG_RSTIBPEAK 0x22B |
#define ADE7953_REG_RSTIRQSTATA 0x22E |
#define ADE7953_REG_RSTIRQSTATB 0x231 |
#define ADE7953_REG_RSTVPEAK 0x227 |
#define ADE7953_REG_SAGCYC 0x000 |
#define ADE7953_REG_SAGLVL 0x200 |
#define ADE7953_REG_UNLOCK_120 0x0FE |
#define ADE7953_REG_V 0x218 |
#define ADE7953_REG_VA_NOLOAD 0x205 |
#define ADE7953_REG_VAR_NOLOAD 0x204 |
#define ADE7953_REG_VERSION 0x702 |
#define ADE7953_REG_VERSION_PRODUCT 0x004 |
#define ADE7953_REG_VPEAK 0x226 |
#define ADE7953_REG_VRMS 0x21C |
#define ADE7953_REG_VRMSOS 0x288 |
#define ADE7953_REG_WRITE_PROTECT 0x040 |
#define ADE7953_REG_ZXTOUT 0x100 |
#define ADE7953_RESET_DEL 100 |
#define ADE7953_RESET_MSK NO_OS_BIT(20) |
#define ADE7953_REV_PULSE_MSK NO_OS_BIT(5) |
#define ADE7953_REVP_ALT_MSK NO_OS_GENMASK(11, 8) |
#define ADE7953_REVP_CF_MSK NO_OS_BIT(4) |
#define ADE7953_RSTREAD_MSK NO_OS_BIT(6) |
#define ADE7953_SAG_MSK NO_OS_BIT(19) |
#define ADE7953_SPI_READ NO_OS_BIT(7) |
#define ADE7953_SWRST_MSK NO_OS_BIT(7) |
#define ADE7953_UNLOCK_KEY 0xAD |
#define ADE7953_VA_NOLOADA_MSK NO_OS_BIT(8) |
#define ADE7953_VA_NOLOADB_MSK NO_OS_BIT(8) |
#define ADE7953_VAEHFA_MSK NO_OS_BIT(2) |
#define ADE7953_VAEHFB_MSK NO_OS_BIT(2) |
#define ADE7953_VAEOFA_MSK NO_OS_BIT(5) |
#define ADE7953_VAEOFB_MSK NO_OS_BIT(5) |
#define ADE7953_VANLOAD_A_MSK NO_OS_BIT(17) |
#define ADE7953_VANLOAD_B_MSK NO_OS_BIT(20) |
#define ADE7953_VAR_NOLOADA_MSK NO_OS_BIT(7) |
#define ADE7953_VAR_NOLOADB_MSK NO_OS_BIT(7) |
#define ADE7953_VAREHFA_MSK NO_OS_BIT(1) |
#define ADE7953_VAREHFB_MSK NO_OS_BIT(1) |
#define ADE7953_VAREOFA_MSK NO_OS_BIT(4) |
#define ADE7953_VAREOFB_MSK NO_OS_BIT(4) |
#define ADE7953_VARNLOAD_A_MSK NO_OS_BIT(18) |
#define ADE7953_VARNLOAD_B_MSK NO_OS_BIT(21) |
#define ADE7953_VARSIGN_A_MSK NO_OS_BIT(12) |
#define ADE7953_VARSIGN_A_MSK NO_OS_BIT(10) |
#define ADE7953_VARSIGN_B_MSK NO_OS_BIT(13) |
#define ADE7953_VARSIGN_B_MSK NO_OS_BIT(10) |
#define ADE7953_VERSION 0x40 |
#define ADE7953_WSMP_MSK NO_OS_BIT(17) |
#define ADE7953_ZX_ALT_MSK NO_OS_GENMASK(3, 0) |
#define ADE7953_ZX_EDGE_MSK NO_OS_GENMASK(13, 12) |
#define ADE7953_ZX_I_MSK NO_OS_BIT(11) |
#define ADE7953_ZXI_ALT_MSK NO_OS_GENMASK(7, 4) |
#define ADE7953_ZXIA_MSK NO_OS_BIT(12) |
#define ADE7953_ZXIB_MSK NO_OS_BIT(12) |
#define ADE7953_ZXLPF_MSK NO_OS_BIT(6) |
#define ADE7953_ZXTO_IA_MSK NO_OS_BIT(11) |
#define ADE7953_ZXTO_IB_MSK NO_OS_BIT(11) |
#define ADE7953_ZXTO_MSK NO_OS_BIT(14) |
#define ADE7953_ZXV_MSK NO_OS_BIT(15) |
#define DISABLE 0u |
#define ENABLE 1u |
#define IS_16BITS_REG | ( | x | ) |
#define IS_8BITS_REG | ( | x | ) |
enum ade7953_avaracc_e |
enum ade7953_awattacc_e |
enum ade7953_cf_pin_e |
enum ade7953_cfsel_e |
enum ade7953_i_ch_e |
enum ade7953_pga_gain_e |
enum ade7953_revp_alt_e |
enum ade7953_zx_alt_e |
enum ade7953_zx_edge_e |
enum ade7953_zxi_alt_e |
int ade7953_acc_active_engy_mode | ( | struct ade7953_dev * | dev, |
enum ade7953_awattacc_e | mode, | ||
enum ade7953_i_ch_e | channel ) |
ACC mode selection for active energy.
dev | - The device structure. |
mode | - mode selection |
channel | - current channel selector |
int ade7953_acc_reactive_engy_mode | ( | struct ade7953_dev * | dev, |
enum ade7953_avaracc_e | mode, | ||
enum ade7953_i_ch_e | channel ) |
ACC mode selection for reactive energy.
dev | - The device structure. |
mode | - mode selection |
channel | - current channel selector |
int ade7953_cf_output_set | ( | struct ade7953_dev * | dev, |
enum ade7953_cfsel_e | sel, | ||
enum ade7953_cf_pin_e | cf_pin ) |
Configure output signal on CF1/CF2 pin.
dev | - The device structure. |
sel | - CF signal |
cf_pin | - 0 for CF1 pin, 1 for CF2 pin; |
int ade7953_clear_irq_stata | ( | struct ade7953_dev * | dev | ) |
Clear irq stata flags.
dev | - The device structure. |
int ade7953_clear_irq_statb | ( | struct ade7953_dev * | dev | ) |
Clear irq statb flags.
dev | - The device structure. |
int ade7953_enable_int_a | ( | struct ade7953_dev * | dev, |
uint32_t | msk, | ||
uint8_t | en ) |
Enable interrupt voltage ch and current ch A.
dev | - The device structure. |
msk | - Interrupt mask. |
en | -Enable/Disable |
int ade7953_enable_int_b | ( | struct ade7953_dev * | dev, |
uint32_t | msk, | ||
uint8_t | en ) |
Enable/disable interrupt voltage ch and current ch B.
dev | - The device structure. |
msk | - Interrupt mask. |
en | -Enable/Disable |
int ade7953_energy_vals | ( | struct ade7953_dev * | dev, |
struct ade7953_energy_values * | data, | ||
enum ade7953_i_ch_e | channel ) |
Read energy values.
dev | - The device structure. |
data | - Structure to store energy values |
channel | - current channel selector |
int ade7953_get_int_stata | ( | struct ade7953_dev * | dev, |
uint32_t | msk, | ||
uint8_t * | status ) |
Get interrupt indicator from STATA register.
dev | - The device structure. |
msk | - Interrupt mask. |
status | - Status indicator. |
int ade7953_get_int_statb | ( | struct ade7953_dev * | dev, |
uint32_t | msk, | ||
uint8_t * | status ) |
Get interrupt indicator from STATB register.
dev | - The device structure. |
msk | - Interrupt mask. |
status | - Status indicator. |
int ade7953_hw_reset | ( | struct ade7953_dev * | dev | ) |
Reset the device using HW reset.
dev | - The device structure. |
int ade7953_init | ( | struct ade7953_dev ** | device, |
struct ade7953_init_param | init_param ) |
Initialize the device.
device | - The device structure. |
init_param | - The structure that contains the device initial parameters. |
int ade7953_power_quality_vals | ( | struct ade7953_dev * | dev, |
struct ade7953_pq_values * | data ) |
Read power quaility values.
dev | - The device structure. |
data | - Structure to store power quality values |
int ade7953_power_vals | ( | struct ade7953_dev * | dev, |
struct ade7953_power_values * | data, | ||
enum ade7953_i_ch_e | channel ) |
Read power values.
dev | - The device structure. |
data | - Structure to store power values |
channel | - current channel selector |
int ade7953_read | ( | struct ade7953_dev * | dev, |
uint16_t | reg_addr, | ||
int32_t * | reg_data ) |
Read device register.
dev | - The device structure. |
reg_addr | - The register address. |
reg_data | - The data read from 32bit register. |
int ade7953_remove | ( | struct ade7953_dev * | dev | ) |
Remove the device and release resources.
dev | - The device structure. |
int ade7953_reset_iapk_val | ( | struct ade7953_dev * | dev, |
uint32_t * | val ) |
reset IApeak val
dev | - The device structure. |
val | - Iapeak val |
int ade7953_reset_ibpk_val | ( | struct ade7953_dev * | dev, |
uint32_t * | val ) |
reset IBpeak val
dev | - The device structure. |
val | - Ibpeak val |
int ade7953_reset_vpk_val | ( | struct ade7953_dev * | dev, |
uint32_t * | val ) |
reset Vpeak val
dev | - The device structure. |
val | - Vpeak val |
int ade7953_revp_pin_config | ( | struct ade7953_dev * | dev, |
enum ade7953_revp_alt_e | sel ) |
Configure of REVP pin (Pin20)
dev | - The device structure. |
sel | - REVP pin configuration |
int ade7953_rms_vals | ( | struct ade7953_dev * | dev, |
struct ade7953_rms_values * | data, | ||
enum ade7953_i_ch_e | channel ) |
Read rms values.
dev | - The device structure. |
data | - Structure to store rms values |
channel | - current channel selector |
int ade7953_sw_reset | ( | struct ade7953_dev * | dev | ) |
Reset the device using SW reset.
dev | - The device structure. |
int ade7953_version_product | ( | struct ade7953_dev * | dev, |
uint32_t * | data_read ) |
Version product.
dev | - The device structure. |
data_read | - The version product read value |
int ade7953_wr_lock_8bit | ( | struct ade7953_dev * | dev, |
enum ade7953_write_protect_e | regs_select ) |
Lock write to registers.
dev | - The device structure. |
regs_select | - Selects the registers to be write protected. |
int ade7953_write | ( | struct ade7953_dev * | dev, |
uint16_t | reg_addr, | ||
uint32_t | reg_data ) |
Write device register.
dev- | The device structure. |
reg_addr | - The register address. |
reg_data | - The data to be written. |
int ade7953_zx_config_pin | ( | struct ade7953_dev * | dev, |
enum ade7953_zx_alt_e | sel ) |
Configure of ZX pin (Pin1)
dev | - The device structure. |
sel | - ZX pin configuration |
int ade7953_zx_int_edge_set | ( | struct ade7953_dev * | dev, |
enum ade7953_zx_edge_e | sel ) |
Zero-crossing interrupt edge selection.
dev | - The device structure. |
sel | - Edge selection |
int ade7953_zxi_config_pin | ( | struct ade7953_dev * | dev, |
enum ade7953_zxi_alt_e | sel ) |
Configure of ZXI pin (Pin21)
dev | - The device structure. |
sel | - ZXI pin configuration |