/Zephyr-latest/samples/boards/nordic/battery/ |
D | README.rst | 1 .. zephyr:code-sample:: nrf_battery 2 :name: Battery Voltage Measurement 4 Measure the voltage of the device power supply. 10 infrastructure to measure the voltage of the device power supply. Two 14 ``voltage-divider`` then the voltage is measured using that divider. An 15 example of a devicetree node describing a voltage divider for battery 18 .. code-block:: devicetree 22 compatible = "voltage-divider"; 23 io-channels = <&adc 4>; 24 output-ohms = <180000>; [all …]
|
D | sample.yaml | 2 name: Measure battery voltage 4 sample.boards.nrf.battery: 7 - particle_xenon 8 - thingy52/nrf52832 9 tags: battery 11 - particle_xenon
|
/Zephyr-latest/samples/boards/nordic/battery/src/ |
D | battery.h | 2 * Copyright (c) 2018-2019 Peter Bigot Consulting, LLC 4 * SPDX-License-Identifier: Apache-2.0 10 /** Enable or disable measurement of the battery voltage. 18 /** Measure the battery voltage. 20 * @return the battery voltage in millivolts, or a negative error 25 /** A point in a battery discharge curve sequence. 36 /** Battery voltage at #lvl_pptt remaining life. */ 40 /** Calculate the estimated battery level based on a measured voltage. 42 * @param batt_mV a measured battery voltage level. 44 * @param curve the discharge curve for the type of battery installed
|
D | battery.c | 2 * Copyright (c) 2018-2019 Peter Bigot Consulting, LLC 3 * Copyright (c) 2019-2020 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 19 #include "battery.h" 21 LOG_MODULE_REGISTER(BATTERY, CONFIG_ADC_LOG_LEVEL); 27 /* This board uses a divider that reduces max voltage to 28 * reference voltage (600 mV). 32 /* Other boards may use dividers that only reduce battery voltage to 46 * the battery is measured through a voltage divider; 85 const struct io_channel_config *iocp = &cfg->io_channel; in divider_setup() [all …]
|
/Zephyr-latest/dts/bindings/sensor/ |
D | maxim,max17262.yaml | 4 # SPDX-License-Identifier: Apache-2.0 11 include: [sensor-device.yaml, i2c-device.yaml] 14 design-voltage: 17 description: Battery Design Voltage in mV (3300 to 4400) 19 desired-voltage: 22 description: Battery Desired Voltage in mV (3300 to 4400) 24 desired-charging-current: 27 description: Battery Design Charging Current in mA (e.g. 2000) 29 design-cap: 32 description: Battery Capacity in mAh (default 3000) [all …]
|
D | maxim,max17055.yaml | 4 # SPDX-License-Identifier: Apache-2.0 11 include: [sensor-device.yaml, i2c-device.yaml] 14 design-capacity: 19 design-voltage: 22 description: Battery Design Voltage in mV (3300 to 4400) 24 desired-voltage: 27 description: Battery Desired Voltage in mV (3300 to 4400) 29 desired-charging-current: 32 description: Battery Design Charging Current in mA (e.g. 2000) 34 i-chg-term: [all …]
|
D | nordic,npm2100-vbat.yaml | 4 # SPDX-License-Identifier: Apache-2.0 7 description: NPM2100 PMIC Battery Voltage 9 compatible: "nordic,npm2100-vbat" 11 include: [sensor-device.yaml] 14 vout-min-microvolt: 19 from the battery by dropping to the vbatminl battery threshold. 21 vbat-min-microvolt: 25 The boost converter will not allow the battery to drop below this level.
|
D | ti,bq274xx.yaml | 4 # SPDX-License-Identifier: Apache-2.0 11 include: [sensor-device.yaml, i2c-device.yaml] 14 design-voltage: 17 description: Battery Design Voltage in mV (3300 - 4400) 19 design-capacity: 22 description: Battery Design Capacity in mAh 24 taper-current: 31 terminate-voltage: 35 Minimum operating voltage of your system. This is the target where the 38 chemistry-id: [all …]
|
/Zephyr-latest/include/zephyr/drivers/sensor/ |
D | battery.h | 4 * SPDX-License-Identifier: Apache-2.0 22 * @brief battery API 23 * @defgroup battery_apis battery APIs 27 /* Battery chemistry enumeration. 28 * Value names must match those from dts/bindings/battery.yaml 40 /* Length of open circuit voltage table */ 44 * @brief Get the battery chemistry enum value 59 ({DT_FOREACH_PROP_ELEM_SEP(node_id, table, DT_PROP_BY_IDX, (,))}), ({-1})) 62 * @brief Convert an OCV table and battery voltage to a charge percentage 64 * @param ocv_table Open circuit voltage curve [all …]
|
/Zephyr-latest/drivers/charger/ |
D | Kconfig | 3 # SPDX-License-Identifier: Apache-2.0 6 bool "Battery charger drivers" 8 Enable battery charger driver configuration. 13 module-str = charger 17 int "Battery charger init priority" 20 Battery charger initialization priority. 32 voltage notifications. 44 menu "System voltage notification" 47 bool "Support system voltage notifications" 50 Enables support for system voltage notifications
|
/Zephyr-latest/dts/bindings/battery/ |
D | battery.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Static Battery Characteristics 8 linux/Documentation/devicetree/bindings/power/supply/battery.yaml 11 device-chemistry: 13 description: This describes the chemical technology of the battery. 14 The "lithium-ion" value is a blanket type for all lithium-ion batteries. 16 the precise "lithium-ion-X" options. 18 - "nickel-cadmium" 19 - "nickel-metal-hydride" 20 - "lithium-ion" [all …]
|
/Zephyr-latest/dts/bindings/fuel-gauge/ |
D | zephyr,fuel-gauge-composite.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Composite fuel-gauge constructed from analog input values 7 compatible: "zephyr,fuel-gauge-composite" 9 include: [fuel-gauge.yaml, battery.yaml] 12 battery-voltage: 16 Device to read battery voltage from. 21 battery-current: 24 Device to read battery current from. 29 device-chemistry: 32 ocv-capacity-table-0:
|
/Zephyr-latest/samples/fuel_gauge/max17048/ |
D | README.rst | 1 .. zephyr:code-sample:: max17048 2 :name: MAX17048 Li-Ion battery fuel gauge 4 Read battery percentage and power status using MAX17048 fuel gauge. 11 .. _MAX17048: https://www.maximintegrated.com/en/products/power/battery-management/MAX17048.html 13 The sample periodically reads battery percentage and power status 24 * Battery charge status as percentage 25 * Total time until battery is fully charged or discharged 26 * Battery voltage 35 when the battery is being charged you will need other method. 46 Voltage 3968 [all …]
|
/Zephyr-latest/dts/bindings/charger/ |
D | ti,bq25180.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 BQ25180 I2C Controlled, 1-Cell, 1-A Linear Battery Charger with Power Path 14 constant-charge-current-max-microamp = <500000>; 19 include: [battery.yaml, i2c-device.yaml] 23 constant-charge-current-max-microamp: 32 constant-charge-voltage-max-microvolt: 36 The maximum voltage that the battery will be charged at, defaults to 39 precharge-voltage-threshold-microvolt: 43 Threshold at which voltage to switch to constant current charge.
|
D | maxim,max20335-charger.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: Maxim MAX20335 battery charger 6 include: battery.yaml 8 compatible: "maxim,max20335-charger" 11 constant-charge-voltage-max-microvolt: 14 - 4050000 15 - 4100000 16 - 4150000 17 - 4200000 18 - 4250000 [all …]
|
/Zephyr-latest/drivers/sensor/nordic/npm2100_vbat/ |
D | Kconfig | 3 # SPDX-License-Identifier: Apache-2.0 6 bool "NPM2100 Battery Voltage" 12 Enable NPM2100 battery voltage driver.
|
/Zephyr-latest/drivers/fuel_gauge/max17048/ |
D | max17048.c | 1 /* max17048.c - Driver for max17048 battery fuel gauge */ 6 * SPDX-License-Identifier: Apache-2.0 34 /* Voltage as uV */ 35 uint32_t voltage; member 40 /* True if battery chargin, false if discharging */ 52 const struct max17048_config *cfg = dev->config; in max17048_read_register() 53 int rc = i2c_write_read_dt(&cfg->i2c, ®isterId, sizeof(registerId), max17048_buffer, in max17048_read_register() 73 * Battery voltage 85 * https://www.analog.com/media/en/technical-documentation/data-sheets/ in max17048_voltage() 86 * MAX17048-MAX17049.pdf in max17048_voltage() [all …]
|
/Zephyr-latest/drivers/sensor/maxim/max17262/ |
D | max17262.h | 4 * SPDX-License-Identifier: Apache-2.0 51 /* Current cell voltage in units of 1.25/16mV */ 52 uint16_t voltage; member 71 /* Battery capacity in mAh */ 81 /* Design voltage of cell in mV */ 83 /* Desired voltage of cell in mV */ 87 /* Battery capacity in mAh */ 89 /* Empty voltage detection in mV */ 91 /* Recovery voltage detection in mV */ 93 /* Defined charge voltage value in mV */
|
/Zephyr-latest/tests/drivers/build_all/sensor/ |
D | adc.dtsi | 5 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/battery/battery.h> 16 io-channels = <&test_adc 0>; 19 test_voltage: voltage { 21 compatible = "voltage-divider"; 22 io-channels = <&test_adc 1>; 23 io-channel-names = "VOLTAGE"; 24 output-ohms = <47000>; /* R1 */ 25 full-ohms = <(100000 + 47000)>; /* R2 + R1 */ 26 power-gpios = <&test_gpio 0 0>; [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | charger.h | 4 * SPDX-License-Identifier: Apache-2.0 33 * @brief Runtime Dynamic Battery Parameters 39 /** Reports whether or not a battery is present. */ 57 /** Configuration of charge voltage regulation target in µV */ 67 * Configuration of the input voltage regulation target in µV 69 * This value is a falling voltage threshold that is regulated by reducing the charge 81 * Configuration to issue a notification to the system based on the battery discharge 88 * Configuration of the falling system voltage threshold where a notification 107 * Reserved to demark downstream custom properties - use this value as the actual value may 141 /** Charging device is charging a battery */ [all …]
|
D | emul_fuel_gauge.h | 4 * SPDX-License-Identifier: Apache-2.0 44 * @brief Set charging for fuel gauge associated battery. 46 * Set how much the battery associated with a fuel gauge IC is charging or discharging. Where 47 * voltage is always positive and a positive or negative current denotes charging or discharging, 51 * @param uV Microvolts describing the battery voltage. 52 * @param uA Microamps describing the battery current where negative is discharging. 55 * @retval -EINVAL if mV or mA are 0. 62 (const struct fuel_gauge_emul_driver_api *)target->backend_api; in z_impl_emul_fuel_gauge_set_battery_charging() 64 if (backend_api->set_battery_charging == 0) { in z_impl_emul_fuel_gauge_set_battery_charging() 65 return -ENOTSUP; in z_impl_emul_fuel_gauge_set_battery_charging() [all …]
|
/Zephyr-latest/include/zephyr/drivers/usb_c/ |
D | usbc_pd.h | 3 * SPDX-License-Identifier: Apache-2.0 8 * @brief USB-C Power Delivery API used for USB-C drivers 31 * @brief Maximum length of a non-Extended Message in bytes. 32 * See Table 6-75 Value Parameters 39 * See Table 6-75 Value Parameters 51 * See Table 6-75 Value Parameters 57 * @name USB PD 3.1 Rev 1.6, Table 6-70 Counter Parameters 79 * @name USB PD 3.1 Rev 1.6, Table 6-68 Time Values 150 * See Table 6-61 Time Values 158 * See Table 6-61 Time Values [all …]
|
/Zephyr-latest/dts/bindings/regulator/ |
D | renesas,da1469x-regulator.yaml | 2 # SPDX-License-Identifier: Apache-2.0 7 compatible: "renesas,smartbond-regulator" 9 child-binding: 11 - name: regulator.yaml 12 property-allowlist: 13 - regulator-always-on 14 - regulator-boot-on 15 - regulator-init-microvolt 16 - regulator-initial-mode 17 - regulator-max-microamp [all …]
|
/Zephyr-latest/doc/hardware/peripherals/ |
D | fuel_gauge.rst | 6 The fuel gauge subsystem exposes an API to uniformly access battery fuel gauge devices. Currently, 20 Fuel gauges typically support multiple properties, such as temperature readings of the battery-pack 21 or present-time current/voltage. 29 Battery Cutoff 32 Many fuel gauges embedded within battery packs expose a register address that when written to with a 33 specific payload will do a battery cutoff. This battery cutoff is often referred to as ship, shelf, 34 or sleep mode due to its utility in reducing battery drain while devices are stored or shipped. 36 The fuel gauge API exposes battery cutoff with the :c:func:`fuel_gauge_battery_cutoff` function.
|
/Zephyr-latest/dts/bindings/tcpc/ |
D | nuvoton,numaker-tcpc.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: Nuvoton NuMaker USB Type-C port controller 6 compatible: "nuvoton,numaker-tcpc" 8 include: [base.yaml, reset-device.yaml, pinctrl-device.yaml] 23 vconn-overcurrent-event-polarity: 28 - "low-active" 29 - "high-active" 31 vconn-discharge-polarity: 36 - "low-active" 37 - "high-active" [all …]
|