Home
last modified time | relevance | path

Searched +full:battery +full:- +full:cutoff +full:- +full:support (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/dts/bindings/fuel-gauge/
Dbattery-cutoff.yaml4 # SPDX-License-Identifier: Apache-2.0
9 Properties for fuel-gauges that may control battery cutoff, this is common in SBS-compliant or
10 similarly smart battery fuel gauges.
13 their associated battery from the system. See the default fuel gauge SBS Gauge compatible as an
17 battery-cutoff-support:
19 Helper prop that indicates whether this device can cutoff the battery; this is also often
22 battery-cutoff-reg-addr:
24 Address of register to receive cutoff payload for battery cutoff.
26 battery-cutoff-payload:
28 Payload to write to cutoff battery register. This must be array of maximum 2 integers.
Dsbs,default-sbs-gauge.yaml4 # SPDX-License-Identifier: Apache-2.0
7 compatible: "sbs,default-sbs-gauge"
9 include: ["sbs,sbs-gauge-new-api.yaml", "battery-cutoff.yaml"]
12 Default generic smart battery fuel gauge driver. Includes support for battery cutoff if enabled.
18 battery-cutoff-reg-addr:
21 battery-cutoff-payload:
/Zephyr-latest/doc/hardware/peripherals/
Dfuel_gauge.rst6 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/tests/drivers/fuel_gauge/sbs_gauge/boards/
Demulated_board_cutoff.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/i2c/i2c.h>
12 compatible = "zephyr,i2c-emul-controller";
13 clock-frequency = <I2C_BITRATE_STANDARD>;
14 #address-cells = <1>;
15 #size-cells = <0>;
21 clock-frequency = <I2C_BITRATE_STANDARD>;
22 compatible = "zephyr,i2c-emul-controller";
24 compatible = "sbs,default-sbs-gauge","sbs,sbs-gauge-new-api";
27 battery-cutoff-support;
[all …]
/Zephyr-latest/drivers/fuel_gauge/sbs_gauge/
Dsbs_gauge.c7 * SPDX-License-Identifier: Apache-2.0
31 cfg = dev->config; in sbs_cmd_reg_read()
32 status = i2c_burst_read_dt(&cfg->i2c, reg_addr, i2c_data, ARRAY_SIZE(i2c_data)); in sbs_cmd_reg_read()
45 const struct sbs_gauge_config *config = dev->config; in sbs_cmd_reg_write()
50 return i2c_burst_write_dt(&config->i2c, reg_addr, buf, sizeof(buf)); in sbs_cmd_reg_write()
59 cfg = dev->config; in sbs_cmd_buffer_read()
60 status = i2c_burst_read_dt(&cfg->i2c, reg_addr, buffer, buffer_size); in sbs_cmd_buffer_read()
78 val->avg_current = tmp_val * 1000; in sbs_gauge_get_prop()
82 val->cycle_count = tmp_val; in sbs_gauge_get_prop()
86 val->current = (int16_t)tmp_val * 1000; in sbs_gauge_get_prop()
[all …]