/Zephyr-latest/dts/bindings/sensor/ |
D | ti,ina237.yaml | 4 # SPDX-License-Identifier: Apache-2.0 9 The <zephyr/dt-bindings/sensor/ina237.h> file should be included in the 15 include: ti,ina23x-common.yaml 24 e.g shunt voltage and bus voltage ADC conversion 26 delay for initial ADC conversion, shunt full scale range 31 adc-config: 41 alert-config: 43 description: Diag alert register, default matches the power-on reset value 45 adc-mode: 49 Default is the power-on reset value. [all …]
|
D | ti,ina230.yaml | 5 # SPDX-License-Identifier: Apache-2.0 10 The <zephyr/dt-bindings/sensor/ina230.h> file should be included in the 16 include: ti,ina23x-common.yaml 25 e.g shunt voltage and bus voltage ADC conversion 28 alert-config: 30 description: Diag alert register, default matches the power-on reset value 32 adc-mode: 36 Default is the power-on reset value. 37 default: "Bus and shunt voltage continuous" 39 - "Shutdown single shot" [all …]
|
D | ti,ina226.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 The <zephyr/dt-bindings/sensor/ina226.h> file should be included in the 12 include: [sensor-device.yaml, i2c-device.yaml] 15 avg-count: 19 Default is the power-on reset value. 23 vbus-conversion-time-us: 27 Default is the power-on reset value. 31 vshunt-conversion-time-us: 35 Default is the power-on reset value. 39 operating-mode: [all …]
|
D | ti,ina3221.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: Texas Instruments INA3221 Triple-Channel Current/Power Monitor 8 include: [sensor-device.yaml, i2c-device.yaml] 11 conv-time-shunt: 15 Shunt-voltage conversion time. 16 The default of 1.1 ms is the power-on reset value of the device. 26 - 0 27 - 1 28 - 2 29 - 3 [all …]
|
D | ti,ina219.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 include: [sensor-device.yaml, i2c-device.yaml] 11 lsb-microamp: 17 example: 100 -> ~3A 18 shunt-milliohm: 22 Value of the shunt resistor in milliOhm 27 Bus Voltage Range 31 The default of 32V is the power-on reset value of the device. 33 Should the expected bus voltage be below 16V set this to 0. 35 - 0 [all …]
|
/Zephyr-latest/samples/sensor/ina219/ |
D | README.rst | 1 .. zephyr:code-sample:: ina219 3 :relevant-api: sensor_interface 5 Get shunt voltage, bus voltage, power and current from an INA219 sensor. 10 This sample application measures shunt voltage, bus voltage, power and current 17 - `INA219 sensor <https://www.ti.com/product/INA219>`_ 22 The supply voltage of the INA219 can be in the 3V to 5.5V range. 23 The common mode voltage of the measured bus can be in the 0V to 26V range. 28 .. zephyr-app-commands:: 29 :zephyr-app: samples/sensor/ina219 35 When monitoring a 3.3 V bus with a 0.1 Ohm shunt resistor [all …]
|
/Zephyr-latest/dts/bindings/iio/afe/ |
D | current-sense-shunt.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 When an io-channel measures the voltage over a current sense shunt, 7 shunt, not the voltage over it. This binding describes such a current 11 https://www.kernel.org/doc/Documentation/devicetree/bindings/iio/afe/current-sense-shunt.yaml 13 compatible: "current-sense-shunt" 18 io-channels: 23 shunt-resistor-micro-ohms: 27 Resistance of the shunt resistor in micro-ohms
|
D | current-sense-amplifier.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 When an io-channel measures the voltage over a current sense amplifier, 7 sense resistor, not the voltage over it. This binding describes such a current 11 … https://www.kernel.org/doc/Documentation/devicetree/bindings/iio/afe/current-sense-amplifier.yaml 13 compatible: "current-sense-amplifier" 18 io-channels: 23 sense-resistor-milli-ohms: 27 Resistance of the shunt resistor in milli-ohms. 29 sense-gain-mult: 35 sense-gain-div: [all …]
|
/Zephyr-latest/drivers/sensor/ti/ina226/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 18 Enable shunt voltage measurement for INA226. 20 This is the actual shunt voltage measured which is scaled within the 26 shunt voltage measurement is required.
|
D | ina226.c | 4 * SPDX-License-Identifier: Apache-2.0 13 #include <zephyr/dt-bindings/sensor/ina226.h> 58 /** @brief Calibration scaling value (scaled by 10^-5) */ 61 /** @brief The LSB value for the bus voltage register, in microvolts/LSB. */ 64 /** @brief The LSB value for the shunt voltage register, in microvolts/LSB. */ 98 val->val1 = value_microX / 1000000L; in micro_s32_to_sensor_value() 99 val->val2 = value_microX % 1000000L; in micro_s32_to_sensor_value() 105 const struct ina226_data *data = dev->data; in ina226_channel_get() 106 const struct ina226_config *config = dev->config; in ina226_channel_get() 110 micro_s32_to_sensor_value(val, INA226_BUS_VOLTAGE_TO_uV(data->bus_voltage)); in ina226_channel_get() [all …]
|
/Zephyr-latest/drivers/sensor/ti/ina23x/ |
D | Kconfig | 3 # SPDX-License-Identifier: Apache-2.0 33 Enable shunt voltage measurement for INA237. 35 This is the actual shunt voltage measured which is scaled within the 40 SENSOR_CHAN_ALL is selected, so only enable if the shunt voltage 47 …at_any_has_prop,$(DT_COMPAT_TI_INA230),alert-gpios) || $(dt_compat_any_has_prop,$(DT_COMPAT_TI_INA…
|
D | ina237.c | 4 * SPDX-License-Identifier: Apache-2.0 14 #include <zephyr/dt-bindings/sensor/ina237.h> 19 /** @brief Calibration scaling value (scaled by 10^-5) */ 22 /** @brief The LSB value for the bus voltage register, in microvolts/LSB. */ 29 * @brief Scale die temperture from 0.125 degC/bit to micro-degrees C 36 val->val1 = value_microX / 1000000L; in micro_s32_to_sensor_value() 37 val->val2 = value_microX % 1000000L; in micro_s32_to_sensor_value() 42 val->val1 = value_microX / 1000000U; in micro_u64_to_sensor_value() 43 val->val2 = value_microX % 1000000U; in micro_u64_to_sensor_value() 49 const struct ina237_data *data = dev->data; in ina237_channel_get() [all …]
|
/Zephyr-latest/include/zephyr/dt-bindings/sensor/ |
D | ina237.h | 4 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/dt-bindings/dt-util.h> 29 /* Conversion time for bus, shunt and temp in micro-seconds */ 58 /* Shunt full scale range selection across IN+ and IN–. */ 67 * @param adc_range Shunt full scale range selection across IN+ and IN–. 79 * @param vshct Conversion time for shunt voltage. 80 * @param vbusct Conversion time for bus voltage.
|
D | ina230.h | 5 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/dt-util.h> 34 /* Conversion time for bus and shunt in micro-seconds */ 58 * @param svct Conversion time for shunt voltage. 59 * @param bvct Conversion time for bus voltage.
|
D | ina226.h | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/dt-util.h> 26 /* Conversion time for bus and shunt voltage in micro-seconds. */
|
/Zephyr-latest/boards/nordic/nrf5340_audio_dk/ |
D | nrf5340_audio_dk_nrf5340_cpuapp_common.dtsi | 2 * Copyright (c) 2020-2022 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 6 #include "nrf5340_audio_dk_nrf5340_cpuapp_common-pinctrl.dtsi" 7 #include <zephyr/dt-bindings/sensor/ina230.h> 12 zephyr,shell-uart = &uart0; 13 zephyr,uart-mcumgr = &uart0; 14 zephyr,bt-mon-uart = &uart0; 15 zephyr,bt-c2h-uart = &uart0; 16 zephyr,bt-hci = &bt_hci_ipc0; 20 gpio_fwd: nrf-gpio-forwarder { [all …]
|
/Zephyr-latest/tests/drivers/adc/adc_rescale/boards/ |
D | native_sim.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/adc/adc.h> 11 compatible = "voltage-divider"; 12 io-channels = <&adc0 0>; 13 output-ohms = <50>; 14 full-ohms = <100>; 18 compatible = "current-sense-shunt"; 19 io-channels = <&adc0 1>; 20 shunt-resistor-micro-ohms = <500000>; 24 compatible = "current-sense-amplifier"; [all …]
|
/Zephyr-latest/include/zephyr/drivers/adc/ |
D | current_sense_shunt.h | 4 * SPDX-License-Identifier: Apache-2.0 34 * @brief Calculates the actual amperage from the measured voltage 37 * @param[in,out] v_to_i Pointer to the measured voltage in millivolts on input, and the 46 /* multiplies by 1,000,000 before dividing by shunt resistance in micro-ohms. */ in current_sense_shunt_scale_dt() 47 tmp = tmp * 1000000 / spec->shunt_micro_ohms; in current_sense_shunt_scale_dt()
|
/Zephyr-latest/drivers/sensor/ti/ina219/ |
D | ina219.h | 4 * SPDX-License-Identifier: Apache-2.0 29 /* Bus voltage register */ 35 #define INA219_MODE_NORMAL 0x3 /* shunt and bus, triggered */ 96 return -EINVAL; in ina219_conv_delay()
|
/Zephyr-latest/tests/drivers/sensor/ina237/src/ |
D | ina237_test.c | 3 * SPDX-License-Identifier: Apache-2.0 11 #include <zephyr/dt-bindings/sensor/ina237.h> 34 config = dev->config; in ZTEST() 38 zexpect_equal(0xFB68, config->adc_config, in ZTEST() 39 "0xFB68 != adc_config (0x%x)", config->adc_config); in ZTEST() 40 zexpect_equal(0x0000, config->config); in ZTEST() 52 double shunt_cal = 819.2e6 * fixture->current_lsb_uA * 1e-6 * fixture->rshunt_uOhms * 1e-6; in test_shunt_cal() 54 if (fixture->config & INA237_CFG_HIGH_PRECISION) { in test_shunt_cal() 62 zassert_ok(ina237_mock_get_register(fixture->mock->data, INA237_REG_CALIB, in test_shunt_cal() 70 /* 16-bit signed value for current register */ in test_current() [all …]
|
/Zephyr-latest/tests/drivers/build_all/sensor/ |
D | i2c.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/dt-bindings/sensor/lsm6dsv16x.h> 10 #include <zephyr/dt-bindings/sensor/lsm6dso.h> 11 #include <zephyr/dt-bindings/sensor/lsm6dso16is.h> 12 #include <zephyr/dt-bindings/sensor/lps22hh.h> 13 #include <zephyr/dt-bindings/sensor/lps2xdf.h> 14 #include <zephyr/dt-bindings/sensor/lis2ds12.h> 15 #include <zephyr/dt-bindings/sensor/lis2dw12.h> 16 #include <zephyr/dt-bindings/sensor/ism330dhcx.h> 17 #include <zephyr/dt-bindings/sensor/iis2dlpc.h> [all …]
|
/Zephyr-latest/tests/drivers/sensor/ina230/src/ |
D | ina230_test.c | 3 * SPDX-License-Identifier: Apache-2.0 11 #include <zephyr/dt-bindings/sensor/ina230.h> 40 config = dev->config; in ZTEST() 46 zexpect_equal(expected, config->config, "0x%x != config (0x%x)", in ZTEST() 47 expected, config->config); in ZTEST() 56 /* only run test for datasheet example of 1mA current LSB and 2 mOhm shunt */ in test_datasheet_example() 57 if (fixture->current_lsb_uA != 1000 || fixture->rshunt_uOhms != 2000) { in test_datasheet_example() 61 if (fixture->dev_type == INA230) { in test_datasheet_example() 71 ina230_mock_set_register(fixture->mock->data, INA230_REG_BUS_VOLT, raw_voltage); in test_datasheet_example() 72 ina230_mock_set_register(fixture->mock->data, INA230_REG_CURRENT, raw_current); in test_datasheet_example() [all …]
|
/Zephyr-latest/boards/adi/max32680evkit/doc/ |
D | index.rst | 8 which is an advanced system-on-chip (SoC) 10 and management is provided by a single-inductor 11 multiple-output (SIMO) buck regulator system and contains 20 - MAX32680 MCU: 22 - Ultra-Low-Power Wireless Microcontroller 24 - Internal 100MHz Oscillator 25 - 512KB Flash and 128KB SRAM, Optional ECC on One 32KB SRAM Bank 27 - Bluetooth 5.2 LE Radio 29 - Dedicated, Ultra-Low-Power, 32-Bit RISC-VCoprocessor to Offload 31 Timing-Critical Bluetooth Processing [all …]
|
/Zephyr-latest/boards/adi/max32662evkit/doc/ |
D | index.rst | 6 the capabilities of the MAX32662 microcontroller, which is a cost-effective, 7 ultra-low power, highly integrated 32-bit microcontroller designed 8 for battery-powered edge devices. 15 - MAX32662 MCU: 17 - High-Efficiency Microcontroller for Low-Power High-Reliability Devices 19 - 256KB Flash 20 - 80KB SRAM, Optionally Preserved in LowestPower BACKUP Mode 21 - 16KB Unified Cache 22 - Memory Protection Unit (MPU) 23 - Dual- or Single-Supply Operation: 1.7V to 3.6V [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | sensor.h | 10 * SPDX-License-Identifier: Apache-2.0 42 * and can be obtained using the formula val1 + val2 * 10^(-6). Negative 47 * -0.5: val1 = 0, val2 = -500000 48 * -1.0: val1 = -1, val2 = 0 49 * -1.5: val1 = -1, val2 = -500000 54 /** Fractional part of the value (in one-millionth parts). */ 101 /** Illuminance in infra-red spectrum, in lux. */ 112 /** 1.0 micro-meters Particulate Matter, in ug/m^3 */ 114 /** 2.5 micro-meters Particulate Matter, in ug/m^3 */ 116 /** 10 micro-meters Particulate Matter, in ug/m^3 */ [all …]
|