|
int | ade7753_init (struct ade7753_dev **device, struct ade7753_init_param init_param) |
| Initialize the device.
|
|
int | ade7753_read (struct ade7753_dev *dev, uint16_t reg_addr, int32_t *reg_data) |
| Read device register.
|
|
int | ade7753_write (struct ade7753_dev *dev, uint16_t reg_addr, uint32_t reg_data) |
| Write device register.
|
|
int | ade7753_update_bits (struct ade7753_dev *dev, uint16_t reg_addr, uint32_t mask, uint32_t reg_data) |
| Update specific register bits.
|
|
int | ade7753_remove (struct ade7753_dev *dev) |
| Remove the device and release resources.
|
|
int | ade7753_sw_reset (struct ade7753_dev *dev) |
| Reset the device using SW reset.
|
|
int | ade7753_hw_reset (struct ade7753_dev *dev) |
| Reset the device using HW reset.
|
|
int | ade7753_version_product (struct ade7753_dev *dev, uint32_t *data_read) |
| Version product.
|
|
int | ade7753_read_reset_iapk_val (struct ade7753_dev *dev, uint32_t *val) |
| read with reset Ipeak val
|
|
int | ade7753_reset_vpk_val (struct ade7753_dev *dev, uint32_t *val) |
| read with reset Vpeak val
|
|
int | ade7753_get_int_status (struct ade7753_dev *dev, uint32_t msk, uint8_t *status) |
| Get interrupt indicator from STATUS register.
|
|
int | ade7753_clear_irq_status (struct ade7753_dev *dev, int32_t *reg_data) |
| Clear irq status flags.
|
|
int | ade7753_enable_irq (struct ade7753_dev *dev, uint32_t msk, uint8_t en) |
| Enable/Disable interrupt.
|
|
int | ade7753_wave_update_rate (struct ade7753_dev *dev, enum ade7753_dtrt_e sel) |
| Select waveform register update rate.
|
|
int | ade7753_wave_sample_data_source (struct ade7753_dev *dev, enum ade7753_wavsel_e sel) |
| Select source of sampled data for wave register.
|
|
int | ade7753_energy_vals (struct ade7753_dev *dev, struct ade7753_energy_values *data) |
| Read energy values.
|
|
int | ade7753_rms_vals (struct ade7753_dev *dev, struct ade7753_rms_values *data) |
| Read rms values.
|
|
int | ade7753_period_val (struct ade7753_dev *dev, struct ade7753_period_value *data) |
| Read period value.
|
|
Implementation of ADE7753 Driver.
- Author
- REtz (radu..nosp@m.etz@.nosp@m.analo.nosp@m.g.co.nosp@m.m)
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:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
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.