@sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget/translations/zh_CN/iio/ade9000modnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/zh_TW/iio/ade9000modnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/it_IT/iio/ade9000modnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/ja_JP/iio/ade9000modnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/ko_KR/iio/ade9000modnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget/translations/sp_SP/iio/ade9000modnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh9/var/lib/git/docbuild/linux/Documentation/iio/ade9000.rsthKubhsection)}(hhh](htitle)}(hADE9000 driverh]hADE9000 driver}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hNThis driver supports Analog Device's ADE9000 energy measurement IC on SPI bus.h]hPThis driver supports Analog Device’s ADE9000 energy measurement IC on SPI bus.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(h1. Supported devicesh]h1. Supported devices}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh bullet_list)}(hhh]h list_item)}(h]`ADE9000 `_ h]h)}(h\`ADE9000 `_h](h reference)}(hhh]hADE9000}(hhhhhNhNubah}(h]h ]h"]h$]h&]nameADE9000refuriOhttps://www.analog.com/media/en/technical-documentation/data-sheets/ADE9000.pdfuh1hhhubhtarget)}(hR h]h}(h]ade9000ah ]h"]ade9000ah$]h&]refurij uh1j  referencedKhhubeh}(h]h ]h"]h$]h&]uh1hhhhK hhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubah}(h]h ]h"]h$]h&]bullet*uh1hhhhK hhhhubh)}(hXThe ADE9000 is a highly accurate, fully integrated, multiphase energy and power quality monitoring device. Superior analog performance and a digital signal processing (DSP) core enable accurate energy monitoring over a wide dynamic range. An integrated high end reference ensures low drift over temperature with a combined drift of less than ±25 ppm/°C maximum for the entire channel including a programmable gain amplifier (PGA) and an analog-to-digital converter (ADC).h]hXThe ADE9000 is a highly accurate, fully integrated, multiphase energy and power quality monitoring device. Superior analog performance and a digital signal processing (DSP) core enable accurate energy monitoring over a wide dynamic range. An integrated high end reference ensures low drift over temperature with a combined drift of less than ±25 ppm/°C maximum for the entire channel including a programmable gain amplifier (PGA) and an analog-to-digital converter (ADC).}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h]supported-devicesah ]h"]1. supported devicesah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h2. Device attributesh]h2. Device attributes}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhhhhhKubh)}(hPower and energy measurements are provided for voltage, current, active power, reactive power, apparent power, and power factor across three phases.h]hPower and energy measurements are provided for voltage, current, active power, reactive power, apparent power, and power factor across three phases.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjFhhubh)}(hXQEach IIO device has a device folder under ``/sys/bus/iio/devices/iio:deviceX``, where X is the IIO index of the device. Under these folders reside a set of device files, depending on the characteristics and features of the hardware device in question. These files are consistently generalized and documented in the IIO ABI documentation.h](h*Each IIO device has a device folder under }(hjehhhNhNubhliteral)}(h$``/sys/bus/iio/devices/iio:deviceX``h]h /sys/bus/iio/devices/iio:deviceX}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjeubhX, where X is the IIO index of the device. Under these folders reside a set of device files, depending on the characteristics and features of the hardware device in question. These files are consistently generalized and documented in the IIO ABI documentation.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjFhhubh)}(hThe following tables show the ADE9000 related device files, found in the specific device folder path ``/sys/bus/iio/devices/iio:deviceX``.h](heThe following tables show the ADE9000 related device files, found in the specific device folder path }(hjhhhNhNubjn)}(h$``/sys/bus/iio/devices/iio:deviceX``h]h /sys/bus/iio/devices/iio:deviceX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK"hjFhhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthK3uh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK:uh1jhjubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h(Current measurement related device filesh]h(Current measurement related device files}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_current[0-2]_rawh]hin_current[0-2]_raw}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h+Raw current measurement for phases A, B, C.h]h+Raw current measurement for phases A, B, C.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_current[0-2]_scaleh]hin_current[0-2]_scale}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK*hjAubah}(h]h ]h"]h$]h&]uh1jhj>ubj)}(hhh]h)}(hScale for current channels.h]hScale for current channels.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK*hjXubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_current[0-2]_calibscaleh]hin_current[0-2]_calibscale}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK,hjxubah}(h]h ]h"]h$]h&]uh1jhjuubj)}(hhh]h)}(h3Calibration gain for current channels (AIGAIN reg).h]h3Calibration gain for current channels (AIGAIN reg).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK,hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_altcurrent[0-2]_rms_rawh]hin_altcurrent[0-2]_rms_raw}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h+RMS current measurement for phases A, B, C.h]h+RMS current measurement for phases A, B, C.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_altcurrent[0-2]_rms_scaleh]hin_altcurrent[0-2]_rms_scale}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hScale for RMS current channels.h]hScale for RMS current channels.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h in_altcurrent[0-2]_rms_calibbiash]h in_altcurrent[0-2]_rms_calibbias}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h8RMS offset correction for current channels (IRMSOS reg).h]h8RMS offset correction for current channels (IRMSOS reg).}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjFhhhhhNubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthK3uh1jhjgubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK:uh1jhjgubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h(Voltage measurement related device filesh]h(Voltage measurement related device files}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubj)}(hhh](j)}(hhh]h)}(hin_voltage[0-2]_rawh]hin_voltage[0-2]_raw}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h+Raw voltage measurement for phases A, B, C.h]h+Raw voltage measurement for phases A, B, C.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubj)}(hhh](j)}(hhh]h)}(hin_voltage[0-2]_scaleh]hin_voltage[0-2]_scale}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hScale for voltage channels.h]hScale for voltage channels.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubj)}(hhh](j)}(hhh]h)}(hin_voltage[0-2]_calibscaleh]hin_voltage[0-2]_calibscale}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj`ubah}(h]h ]h"]h$]h&]uh1jhj]ubj)}(hhh]h)}(h3Measured line frequency from instantaneous voltage.h]h3Measured line frequency from instantaneous voltage.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK>hjwubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj~ubj)}(hhh](j)}(hhh]h)}(hin_altvoltage[0-2]_rms_rawh]hin_altvoltage[0-2]_rms_raw}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h+RMS voltage measurement for phases A, B, C.h]h+RMS voltage measurement for phases A, B, C.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubj)}(hhh](j)}(hhh]h)}(hin_altvoltage[0-2]_rms_scaleh]hin_altvoltage[0-2]_rms_scale}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hScale for RMS voltage channels.h]hScale for RMS voltage channels.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubj)}(hhh](j)}(hhh]h)}(h in_altvoltage[0-2]_rms_calibbiash]h in_altvoltage[0-2]_rms_calibbias}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h8RMS offset correction for voltage channels (VRMSOS reg).h]h8RMS offset correction for voltage channels (VRMSOS reg).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]colsKuh1jhjdubah}(h]h ]h"]h$]h&]uh1jhjFhhhhhNubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthK3uh1jhjOubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK:uh1jhjOubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h&Power measurement related device filesh]h&Power measurement related device files}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjlubah}(h]h ]h"]h$]h&]uh1jhjiubj)}(hhh]h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh](j)}(hhh]h)}(hin_power[0-2]_active_rawh]hin_power[0-2]_active_raw}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKJhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h,Active power measurement for phases A, B, C.h]h,Active power measurement for phases A, B, C.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh](j)}(hhh]h)}(hin_power[0-2]_active_scaleh]hin_power[0-2]_active_scale}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKLhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h Scale for active power channels.h]h Scale for active power channels.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh](j)}(hhh]h)}(hin_power[0-2]_active_calibbiash]hin_power[0-2]_active_calibbias}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKNhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h3Calibration offset for active power (xWATTOS regs).h]h3Calibration offset for active power (xWATTOS regs).}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKNhj(ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh](j)}(hhh]h)}(hin_power[0-2]_active_calibscaleh]hin_power[0-2]_active_calibscale}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKPhjHubah}(h]h ]h"]h$]h&]uh1jhjEubj)}(hhh]h)}(h/Calibration gain for active power (APGAIN reg).h]h/Calibration gain for active power (APGAIN reg).}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKPhj_ubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh](j)}(hhh]h)}(hin_power[0-2]_reactive_rawh]hin_power[0-2]_reactive_raw}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKRhjubah}(h]h ]h"]h$]h&]uh1jhj|ubj)}(hhh]h)}(h.Reactive power measurement for phases A, B, C.h]h.Reactive power measurement for phases A, B, C.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKRhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh](j)}(hhh]h)}(hin_power[0-2]_reactive_scaleh]hin_power[0-2]_reactive_scale}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKThjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h"Scale for reactive power channels.h]h"Scale for reactive power channels.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh](j)}(hhh]h)}(h in_power[0-2]_reactive_calibbiash]h in_power[0-2]_reactive_calibbias}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKVhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h4Calibration offset for reactive power (xVAROS regs).h]h4Calibration offset for reactive power (xVAROS regs).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKVhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh](j)}(hhh]h)}(hin_power[0-2]_apparent_rawh]hin_power[0-2]_apparent_raw}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKXhj$ubah}(h]h ]h"]h$]h&]uh1jhj!ubj)}(hhh]h)}(h.Apparent power measurement for phases A, B, C.h]h.Apparent power measurement for phases A, B, C.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKXhj;ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh](j)}(hhh]h)}(hin_power[0-2]_apparent_scaleh]hin_power[0-2]_apparent_scale}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKZhj[ubah}(h]h ]h"]h$]h&]uh1jhjXubj)}(hhh]h)}(h"Scale for apparent power channels.h]h"Scale for apparent power channels.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKZhjrubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh](j)}(hhh]h)}(hin_power[0-2]_powerfactorh]hin_power[0-2]_powerfactor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK\hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h Power factor for phases A, B, C.h]h Power factor for phases A, B, C.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]colsKuh1jhjLubah}(h]h ]h"]h$]h&]uh1jhjFhhhhhNubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthK3uh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK:uh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(h'Energy measurement related device filesh]h'Energy measurement related device files}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK`hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_energy[0-2]_active_rawh]hin_energy[0-2]_active_raw}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKbhj0ubah}(h]h ]h"]h$]h&]uh1jhj-ubj)}(hhh]h)}(h-Active energy measurement for phases A, B, C.h]h-Active energy measurement for phases A, B, C.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKbhjGubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_energy[0-2]_reactive_rawh]hin_energy[0-2]_reactive_raw}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKdhjgubah}(h]h ]h"]h$]h&]uh1jhjdubj)}(hhh]h)}(h/Reactive energy measurement for phases A, B, C.h]h/Reactive energy measurement for phases A, B, C.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKdhj~ubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hin_energy[0-2]_apparent_rawh]hin_energy[0-2]_apparent_raw}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKfhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h/Apparent energy measurement for phases A, B, C.h]h/Apparent energy measurement for phases A, B, C.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjFhhhhhNubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKBuh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]h)}(hShared device attributesh]hShared device attributes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKjhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h Descriptionh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKjhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hnameh]hname}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKlhj< ubah}(h]h ]h"]h$]h&]uh1jhj9 ubj)}(hhh]h)}(hName of the IIO device.h]hName of the IIO device.}(hjV hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKlhjS ubah}(h]h ]h"]h$]h&]uh1jhj9 ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h filter_typeh]h filter_type}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKnhjs ubah}(h]h ]h"]h$]h&]uh1jhjp ubj)}(hhh]h)}(h.Waveform buffer filter type (sinc4, sinc4+lp).h]h.Waveform buffer filter type (sinc4, sinc4+lp).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKnhj ubah}(h]h ]h"]h$]h&]uh1jhjp ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hfilter_type_availableh]hfilter_type_available}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKphj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h+Available filter types for waveform buffer.h]h+Available filter types for waveform buffer.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKphj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjFhhhhhNubeh}(h]device-attributesah ]h"]2. device attributesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h3. Calibration and scalingh]h3. Calibration and scaling}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKtubh)}(hCThe ADE9000 provides multiple levels of gain and offset correction:h]hCThe ADE9000 provides multiple levels of gain and offset correction:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKvhj hhubhdefinition_list)}(hhh](hdefinition_list_item)}(h**Calibration Gain (per-channel)** Fine-tuning calibration gains applied in the digital domain for each channel type. Controlled via ``calibscale`` attributes (AIGAIN, AVGAIN, APGAIN registers). h](hterm)}(h"**Calibration Gain (per-channel)**h]hstrong)}(hj' h]hCalibration Gain (per-channel)}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1j) hj% ubah}(h]h ]h"]h$]h&]uh1j# hhhKzhj ubh definition)}(hhh]h)}(hFine-tuning calibration gains applied in the digital domain for each channel type. Controlled via ``calibscale`` attributes (AIGAIN, AVGAIN, APGAIN registers).h](hbFine-tuning calibration gains applied in the digital domain for each channel type. Controlled via }(hjC hhhNhNubjn)}(h``calibscale``h]h calibscale}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjC ubh/ attributes (AIGAIN, AVGAIN, APGAIN registers).}(hjC hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKyhj@ ubah}(h]h ]h"]h$]h&]uh1j> hj ubeh}(h]h ]h"]h$]h&]uh1j hhhKzhj ubj )}(hX**Calibration Bias (per-channel)** Hardware calibration offsets applied by the device internally: - Power measurements: Controlled via ``calibbias`` attributes for power channels (xWATTOS, xVAROS registers). - RMS measurements: Controlled via ``calibbias`` attributes for RMS channels (IRMSOS, VRMSOS registers). These are internal chip calibrations, not userspace-applied offsets. h](j$ )}(h"**Calibration Bias (per-channel)**h]j* )}(hju h]hCalibration Bias (per-channel)}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1j) hjs ubah}(h]h ]h"]h$]h&]uh1j# hhhKhjo ubj? )}(hhh](h)}(h>Hardware calibration offsets applied by the device internally:h]h>Hardware calibration offsets applied by the device internally:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK}hj ubh)}(hhh](h)}(hkPower measurements: Controlled via ``calibbias`` attributes for power channels (xWATTOS, xVAROS registers).h]h)}(hj h](h#Power measurements: Controlled via }(hj hhhNhNubjn)}(h ``calibbias``h]h calibbias}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj ubh; attributes for power channels (xWATTOS, xVAROS registers).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hgRMS measurements: Controlled via ``calibbias`` attributes for RMS channels (IRMSOS, VRMSOS registers). h]h)}(hfRMS measurements: Controlled via ``calibbias`` attributes for RMS channels (IRMSOS, VRMSOS registers).h](h!RMS measurements: Controlled via }(hj hhhNhNubjn)}(h ``calibbias``h]h calibbias}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj ubh8 attributes for RMS channels (IRMSOS, VRMSOS registers).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]j.-uh1hhhhKhj ubh)}(hDThese are internal chip calibrations, not userspace-applied offsets.h]hDThese are internal chip calibrations, not userspace-applied offsets.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubeh}(h]h ]h"]h$]h&]uh1j> hjo ubeh}(h]h ]h"]h$]h&]uh1j hhhKhj hhubeh}(h]h ]h"]h$]h&]uh1j hj hhhhhNubeh}(h]calibration-and-scalingah ]h"]3. calibration and scalingah$]h&]uh1hhhhhhhhKtubh)}(hhh](h)}(h4. Event attributesh]h4. Event attributes}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hThe ADE9000 provides various interrupts that are mapped to IIO events. Event functionality is only available if the corresponding interrupts are connected in the device tree.h]hThe ADE9000 provides various interrupts that are mapped to IIO events. Event functionality is only available if the corresponding interrupts are connected in the device tree.}(hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj hhubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthK3uh1jhjB ubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK:uh1jhjB ubj)}(hhh](j)}(hhh](j)}(hhh]h)}(hIIO Event Attributeh]hIIO Event Attribute}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj_ ubah}(h]h ]h"]h$]h&]uh1jhj\ ubj)}(hhh]h)}(hADE9000 Datasheet Equivalenth]hADE9000 Datasheet Equivalent}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjv ubah}(h]h ]h"]h$]h&]uh1jhj\ ubeh}(h]h ]h"]h$]h&]uh1jhjY ubj)}(hhh](j)}(hhh]h)}(h in_voltage[0-2]_thresh_either_enh]h in_voltage[0-2]_thresh_either_en}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h(Zero crossing detection interrupt (ZXVx)h]h(Zero crossing detection interrupt (ZXVx)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjY ubj)}(hhh](j)}(hhh]h)}(h'in_altvoltage[0-2]_rms_thresh_rising_enh]h'in_altvoltage[0-2]_rms_thresh_rising_en}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h&RMS swell detection interrupt (SWELLx)h]h&RMS swell detection interrupt (SWELLx)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjY ubj)}(hhh](j)}(hhh]h)}(h*in_altvoltage[0-2]_rms_thresh_rising_valueh]h*in_altvoltage[0-2]_rms_thresh_rising_value}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h(RMS swell threshold (SWELL_LVL register)h]h(RMS swell threshold (SWELL_LVL register)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjY ubj)}(hhh](j)}(hhh]h)}(h(in_altvoltage[0-2]_rms_thresh_falling_enh]h(in_altvoltage[0-2]_rms_thresh_falling_en}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj; ubah}(h]h ]h"]h$]h&]uh1jhj8 ubj)}(hhh]h)}(h&RMS sag/dip detection interrupt (DIPx)h]h&RMS sag/dip detection interrupt (DIPx)}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjR ubah}(h]h ]h"]h$]h&]uh1jhj8 ubeh}(h]h ]h"]h$]h&]uh1jhjY ubj)}(hhh](j)}(hhh]h)}(h+in_altvoltage[0-2]_rms_thresh_falling_valueh]h+in_altvoltage[0-2]_rms_thresh_falling_value}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjr ubah}(h]h ]h"]h$]h&]uh1jhjo ubj)}(hhh]h)}(h(RMS sag/dip threshold (DIP_LVL register)h]h(RMS sag/dip threshold (DIP_LVL register)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjo ubeh}(h]h ]h"]h$]h&]uh1jhjY ubj)}(hhh](j)}(hhh]h)}(h in_current[0-2]_thresh_either_enh]h in_current[0-2]_thresh_either_en}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h0Current zero crossing detection interrupt (ZXIx)h]h0Current zero crossing detection interrupt (ZXIx)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjY ubeh}(h]h ]h"]h$]h&]uh1jhjB ubeh}(h]h ]h"]h$]h&]colsKuh1jhj? ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubh)}(hEvent directions:h]hEvent directions:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj hhubh)}(hhh](h)}(h6``rising``: Upper threshold crossing (swell detection)h]h)}(hj h](jn)}(h ``rising``h]hrising}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj ubh,: Upper threshold crossing (swell detection)}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhj hhhhhNubh)}(h9``falling``: Lower threshold crossing (sag/dip detection)h]h)}(hj( h](jn)}(h ``falling``h]hfalling}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj* ubh.: Lower threshold crossing (sag/dip detection)}(hj* hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj& ubah}(h]h ]h"]h$]h&]uh1hhj hhhhhNubh)}(h<``either``: Any threshold crossing (zero crossing detection)h]h)}(hjM h](jn)}(h ``either``h]heither}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjO ubh2: Any threshold crossing (zero crossing detection)}(hjO hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjK ubah}(h]h ]h"]h$]h&]uh1hhj hhhhhNubh)}(h,``none``: Timeout or non-directional events h]h)}(h+``none``: Timeout or non-directional eventsh](jn)}(h``none``h]hnone}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjt ubh#: Timeout or non-directional events}(hjt hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjp ubah}(h]h ]h"]h$]h&]uh1hhj hhhhhNubeh}(h]h ]h"]h$]h&]j.j uh1hhhhKhj hhubh)}(h**Note**: Event attributes are only available if the corresponding interrupts (irq0, irq1, dready) are specified in the device tree. The driver works without interrupts but with reduced functionality.h](j* )}(h**Note**h]hNote}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j) hj ubh: Event attributes are only available if the corresponding interrupts (irq0, irq1, dready) are specified in the device tree. The driver works without interrupts but with reduced functionality.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj hhubeh}(h]event-attributesah ]h"]4. event attributesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h5. Device buffersh]h5. Device buffers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hzThis driver supports IIO buffers for waveform capture. Buffer functionality requires the dready interrupt to be connected.h]hzThis driver supports IIO buffers for waveform capture. Buffer functionality requires the dready interrupt to be connected.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj hhubh)}(hThe device supports capturing voltage and current waveforms for power quality analysis. The waveform buffer can be configured to capture data from different channel combinations.h]hThe device supports capturing voltage and current waveforms for power quality analysis. The waveform buffer can be configured to capture data from different channel combinations.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj hhubh)}(h4Supported channel combinations for buffered capture:h]h4Supported channel combinations for buffered capture:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj hhubh)}(hhh](h)}(h&Phase A: voltage and current (IA + VA)h]h)}(hjh]h&Phase A: voltage and current (IA + VA)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhj hhhhhNubh)}(h&Phase B: voltage and current (IB + VB)h]h)}(hjh]h&Phase B: voltage and current (IB + VB)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhj hhhhhNubh)}(h&Phase C: voltage and current (IC + VC)h]h)}(hj.h]h&Phase C: voltage and current (IC + VC)}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj,ubah}(h]h ]h"]h$]h&]uh1hhj hhhhhNubh)}(h,All phases: all voltage and current channelsh]h)}(hjEh]h,All phases: all voltage and current channels}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjCubah}(h]h ]h"]h$]h&]uh1hhj hhhhhNubh)}(h,Individual channels: IA, VA, IB, VB, IC, VC h]h)}(h+Individual channels: IA, VA, IB, VB, IC, VCh]h+Individual channels: IA, VA, IB, VB, IC, VC}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjZubah}(h]h ]h"]h$]h&]uh1hhj hhhhhNubeh}(h]h ]h"]h$]h&]j.j uh1hhhhKhj hhubh)}(hhh](h)}(hUsage examplesh]hUsage examples}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhhhhhKubh)}(h$Enable waveform capture for Phase A:h]h$Enable waveform capture for Phase A:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjxhhubh literal_block)}(hroot:/sys/bus/iio/devices/iio:device0> echo 1 > scan_elements/in_current0_en root:/sys/bus/iio/devices/iio:device0> echo 1 > scan_elements/in_voltage0_enh]hroot:/sys/bus/iio/devices/iio:device0> echo 1 > scan_elements/in_current0_en root:/sys/bus/iio/devices/iio:device0> echo 1 > scan_elements/in_voltage0_en}hjsbah}(h]h ]h"]h$]h&]hhforcelanguagebashhighlight_args}uh1jhhhKhjxhhubh)}(hSet buffer length and enable:h]hSet buffer length and enable:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjxhhubj)}(h}root:/sys/bus/iio/devices/iio:device0> echo 100 > buffer/length root:/sys/bus/iio/devices/iio:device0> echo 1 > buffer/enableh]h}root:/sys/bus/iio/devices/iio:device0> echo 100 > buffer/length root:/sys/bus/iio/devices/iio:device0> echo 1 > buffer/enable}hjsbah}(h]h ]h"]h$]h&]hhjjbashj}uh1jhhhKhjxhhubeh}(h]usage-examplesah ]h"]usage examplesah$]h&]uh1hhj hhhhhKubeh}(h]device-buffersah ]h"]5. device buffersah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h6. Clock outputh]h6. Clock output}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hXThe ADE9000 can provide a clock output via the CLKOUT pin when using an external crystal/clock source. This feature is enabled by specifying ``#clock-cells = <0>`` in the device tree. The output clock will be registered as "clkout" and can be referenced by other devices.h](hThe ADE9000 can provide a clock output via the CLKOUT pin when using an external crystal/clock source. This feature is enabled by specifying }(hjhhhNhNubjn)}(h``#clock-cells = <0>``h]h#clock-cells = <0>}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubhp in the device tree. The output clock will be registered as “clkout” and can be referenced by other devices.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h] clock-outputah ]h"]6. clock outputah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h7. Usage examplesh]h7. Usage examples}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hShow device name:h]hShow device name:}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(h7root:/sys/bus/iio/devices/iio:device0> cat name ade9000h]h7root:/sys/bus/iio/devices/iio:device0> cat name ade9000}hj2sbah}(h]h ]h"]h$]h&]hhjjbashj}uh1jhhhKhjhhubh)}(hRead voltage measurements:h]hRead voltage measurements:}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hroot:/sys/bus/iio/devices/iio:device0> cat in_voltage0_raw 12345 root:/sys/bus/iio/devices/iio:device0> cat in_voltage0_scale 0.000030517h]hroot:/sys/bus/iio/devices/iio:device0> cat in_voltage0_raw 12345 root:/sys/bus/iio/devices/iio:device0> cat in_voltage0_scale 0.000030517}hjPsbah}(h]h ]h"]h$]h&]hhjjbashj}uh1jhhhKhjhhubh)}(hhh]h)}(hAPhase A voltage = in_voltage0_raw * in_voltage0_scale = 0.3769 V h]h)}(h@Phase A voltage = in_voltage0_raw * in_voltage0_scale = 0.3769 Vh]h@Phase A voltage = in_voltage0_raw * in_voltage0_scale = 0.3769 V}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjcubah}(h]h ]h"]h$]h&]uh1hhj`hhhhhNubah}(h]h ]h"]h$]h&]j.j uh1hhhhKhjhhubh)}(hRead power measurements:h]hRead power measurements:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hroot:/sys/bus/iio/devices/iio:device0> cat in_power0_active_raw 5678 root:/sys/bus/iio/devices/iio:device0> cat in_power0_scale 0.000244140h]hroot:/sys/bus/iio/devices/iio:device0> cat in_power0_active_raw 5678 root:/sys/bus/iio/devices/iio:device0> cat in_power0_scale 0.000244140}hjsbah}(h]h ]h"]h$]h&]hhjjbashj}uh1jhhhKhjhhubh)}(hhh]h)}(hHPhase A active power = in_power0_active_raw * in_power0_scale = 1.386 W h]h)}(hGPhase A active power = in_power0_active_raw * in_power0_scale = 1.386 Wh]hGPhase A active power = in_power0_active_raw * in_power0_scale = 1.386 W}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjhhhhhNubah}(h]h ]h"]h$]h&]j.j uh1hhhhKhjhhubh)}(hConfigure calibration gains:h]hConfigure calibration gains:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(h# Set current channel 0 calibration gain root:/sys/bus/iio/devices/iio:device0> echo 0x800000 > in_current0_calibscale # Set voltage channel 0 calibration gain root:/sys/bus/iio/devices/iio:device0> echo 0x7FFFFF > in_voltage0_calibscaleh]h# Set current channel 0 calibration gain root:/sys/bus/iio/devices/iio:device0> echo 0x800000 > in_current0_calibscale # Set voltage channel 0 calibration gain root:/sys/bus/iio/devices/iio:device0> echo 0x7FFFFF > in_voltage0_calibscale}hjsbah}(h]h ]h"]h$]h&]hhjjbashj}uh1jhhhKhjhhubh)}(h=Configure RMS voltage event thresholds (requires interrupts):h]h=Configure RMS voltage event thresholds (requires interrupts):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hX# Set RMS sag detection threshold root:/sys/bus/iio/devices/iio:device0> echo 180000 > events/in_altvoltage0_rms_thresh_falling_value # Enable RMS sag detection root:/sys/bus/iio/devices/iio:device0> echo 1 > events/in_altvoltage0_rms_thresh_falling_en # Set RMS swell detection threshold root:/sys/bus/iio/devices/iio:device0> echo 260000 > events/in_altvoltage0_rms_thresh_rising_value # Enable RMS swell detection root:/sys/bus/iio/devices/iio:device0> echo 1 > events/in_altvoltage0_rms_thresh_rising_enh]hX# Set RMS sag detection threshold root:/sys/bus/iio/devices/iio:device0> echo 180000 > events/in_altvoltage0_rms_thresh_falling_value # Enable RMS sag detection root:/sys/bus/iio/devices/iio:device0> echo 1 > events/in_altvoltage0_rms_thresh_falling_en # Set RMS swell detection threshold root:/sys/bus/iio/devices/iio:device0> echo 260000 > events/in_altvoltage0_rms_thresh_rising_value # Enable RMS swell detection root:/sys/bus/iio/devices/iio:device0> echo 1 > events/in_altvoltage0_rms_thresh_rising_en}hjsbah}(h]h ]h"]h$]h&]hhjjbashj}uh1jhhhKhjhhubeh}(h]id1ah ]h"]7. usage examplesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h8. IIO Interfacing Toolsh]h8. IIO Interfacing Tools}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM ubh)}(hcSee ``Documentation/iio/iio_tools.rst`` for the description of the available IIO interfacing tools.h](hSee }(hjhhhNhNubjn)}(h#``Documentation/iio/iio_tools.rst``h]hDocumentation/iio/iio_tools.rst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh< for the description of the available IIO interfacing tools.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM hjhhubeh}(h]iio-interfacing-toolsah ]h"]8. iio interfacing toolsah$]h&]uh1hhhhhhhhM ubeh}(h]ade9000-driverah ]h"]ade9000 driverah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjgerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jBj?jCj@jjj j j j j j jjjjjj jjj:j7u nametypes}(jBjCjj j j jjjjj:uh}(j?hj@hjjj jFj j j j jj jjxj jjjj7ju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}juKsRparse_messages]transform_messages] transformerN include_log] decorationNhhub.