Home
last modified time | relevance | path

Searched full:gauge (Results 1 – 25 of 87) sorted by relevance

1234

/Zephyr-latest/include/zephyr/net/prometheus/
Dgauge.h14 * @brief Prometheus gauge APIs.
24 * @brief Type used to represent a Prometheus gauge metric.
27 * * See https://prometheus.io/docs/concepts/metric_types/#gauge
30 /** Base of the Prometheus gauge metric */
32 /** Value of the Prometheus gauge metric */
39 * @brief Prometheus Gauge definition.
41 * This macro defines a Gauge metric. If you want to make the gauge static,
44 * @param _name The gauge metric name.
45 * @param _desc Gauge description
53 * PROMETHEUS_GAUGE_DEFINE(http_request_gauge, "HTTP request gauge",
[all …]
/Zephyr-latest/tests/net/lib/prometheus/gauge/src/
Dmain.c9 #include <zephyr/net/prometheus/gauge.h>
11 PROMETHEUS_GAUGE_DEFINE(test_gauge_m, "Test gauge",
12 ({ .key = "test", .value = "gauge" }), NULL);
17 * @details The test shall set the gauge value to 1 and check if the
20 * @details The test shall set the gauge value to 2 and check if the
27 zassert_equal(test_gauge_m.value, 0, "Gauge value is not 0"); in ZTEST()
30 zassert_ok(ret, "Error setting gauge"); in ZTEST()
32 zassert_equal(test_gauge_m.value, 1, "Gauge value is not 1"); in ZTEST()
35 zassert_ok(ret, "Error setting gauge"); in ZTEST()
37 zassert_equal(test_gauge_m.value, 2, "Gauge value is not 2"); in ZTEST()
/Zephyr-latest/dts/bindings/fuel-gauge/
Dsbs,default-sbs-gauge.yaml7 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.
14 This compatible is intended to be used with the abstract SBS Gauge compatible because it is
15 actuated by the SBS driver for SBS compliant fuel gauge ICs.
Dsbs,sbs-gauge-new-api.yaml1 description: SBS 1.1 compliant fuel gauge (http://www.sbs-forum.org/specs)
3 compatible: "sbs,sbs-gauge-new-api"
5 include: [i2c-device.yaml, fuel-gauge.yaml]
Dzephyr,fuel-gauge-composite.yaml5 Composite fuel-gauge constructed from analog input values
7 compatible: "zephyr,fuel-gauge-composite"
9 include: [fuel-gauge.yaml, battery.yaml]
Dbattery-cutoff.yaml12 Note: These properties are to be used with meaningful defaults in fuel gauge ICs that can cut off
13 their associated battery from the system. See the default fuel gauge SBS Gauge compatible as an
Dti,bq27z746.yaml7 Texas Instruments BQ27Z746 fuel gauge. For more info visit
13 include: [i2c-device.yaml, fuel-gauge.yaml]
Dmaxim,max17048.yaml5 Maxim MAX17048 Fuel Gauge with ModelGauge. See more info at:
10 include: [i2c-device.yaml, fuel-gauge.yaml]
/Zephyr-latest/drivers/fuel_gauge/
DKconfig6 bool "Battery fuel gauge drivers"
8 Enable battery fuel gauge driver configuration.
17 int "Battery Fuel Gauge init priority"
20 Battery fuel gauge initialization priority.
/Zephyr-latest/doc/hardware/peripherals/
Dfuel_gauge.rst3 Fuel Gauge
6 The fuel gauge subsystem exposes an API to uniformly access battery fuel gauge devices. Currently,
18 Fundamentally, a property is a quantity that a fuel gauge device can measure.
36 The fuel gauge API exposes battery cutoff with the :c:func:`fuel_gauge_battery_cutoff` function.
41 The Fuel Gauge API explicitly provides no caching for its clients.
/Zephyr-latest/subsys/net/lib/prometheus/
Dgauge.c7 #include <zephyr/net/prometheus/gauge.h>
17 int prometheus_gauge_set(struct prometheus_gauge *gauge, double value) in prometheus_gauge_set() argument
24 if (gauge) { in prometheus_gauge_set()
25 gauge->value = value; in prometheus_gauge_set()
/Zephyr-latest/samples/fuel_gauge/max17048/
DREADME.rst2 :name: MAX17048 Li-Ion battery fuel gauge
4 Read battery percentage and power status using MAX17048 fuel gauge.
9 …is sample shows how to use the Zephyr :ref:`fuel_gauge_api` API driver for the MAX17048 fuel gauge.
18 The sample can be configured to support MAX17048 fuel gauge connected via either I2C. It only needs
23 By using this fuel gauge you can get the following information:
42 Found device "max17048@36", getting fuel gauge data
/Zephyr-latest/drivers/fuel_gauge/composite/
DKconfig1 # Zephyr composite fuel-gauge device
7 bool "Zephyr composite fuel gauge"
11 Enable driver for the Zephyr composite fuel gauge device.
/Zephyr-latest/include/zephyr/drivers/
Demul_fuel_gauge.h9 * @brief Backend APIs for the fuel gauge emulators.
24 * @brief Fuel gauge backend emulator APIs
25 * @defgroup fuel_gauge_emulator_backend Fuel gauge backend emulator APIs
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
50 * @param target Pointer to the emulator structure for the fuel gauge emulator instance.
74 * @param target Pointer to the emulator structure for the fuel gauge emulator instance.
Dfuel_gauge.h12 * @brief Fuel Gauge Interface
13 * @defgroup fuel_gauge_interface Fuel Gauge Interface
45 /** Whether the battery underlying the fuel-gauge is cut off from charge */
104 /** Reserved to demark end of common fuel gauge properties */
253 * @brief Fetch a battery fuel-gauge property
255 * @param dev Pointer to the battery fuel-gauge device
258 * fuel gauge device.
277 * @brief Fetch multiple battery fuel-gauge properties. The default implementation is the same as
279 * of the fuel gauge driver APIs struct to override this implementation.
281 * @param dev Pointer to the battery fuel-gauge device
[all …]
/Zephyr-latest/drivers/fuel_gauge/max17048/
DKconfig1 # MAX17048 Li-Ion battery fuel gauge
8 bool "MAX17048 Li-Po fuel gauge"
13 Enable driver for the MAX17048 fuel gauge device.
/Zephyr-latest/samples/sensor/bq274xx/
DREADME.rst2 :name: BQ274XX fuel gauge sensor
5 Get various fuel gauge parameters from a BQ274XX sensor.
10 This sample application retrieves all the fuel gauge parameters:
16 - Gauge temperature
/Zephyr-latest/dts/bindings/sensor/
Dsbs,sbs-gauge.yaml1 description: SBS 1.1 compliant fuel gauge (http://www.sbs-forum.org/specs)
3 compatible: "sbs,sbs-gauge"
/Zephyr-latest/drivers/fuel_gauge/sbs_gauge/
DKconfig5 bool "Smart Battery Fuel Gauge"
10 Enable I2C-based/SMBus-based driver for a Smart Battery Fuel Gauge.
/Zephyr-latest/drivers/sensor/maxim/max17262/
DKconfig6 bool "MAX17262 Fuel Gauge"
11 Enable I2C-based driver for MAX17262 Fuel Gauge. This driver supports
/Zephyr-latest/drivers/sensor/sbs_gauge/
DKconfig5 bool "Smart Battery Fuel Gauge"
10 Enable I2C-based/SMBus-based driver for a Smart Battery Fuel Gauge.
/Zephyr-latest/drivers/sensor/maxim/max17055/
DKconfig6 bool "MAX17055 Fuel Gauge"
11 Enable I2C-based driver for MAX17055 Fuel Gauge. This driver supports
/Zephyr-latest/tests/drivers/fuel_gauge/sbs_gauge/
Dtestcase.yaml9 filter: dt_compat_enabled("sbs,sbs-gauge-new-api")
32 filter: dt_compat_enabled("sbs,sbs-gauge-new-api")
49 filter: dt_compat_enabled("sbs,sbs-gauge-new-api")
/Zephyr-latest/drivers/fuel_gauge/bq27z746/
DKconfig7 bool "BQ27Z746 Fuel Gauge"
12 Enable I2C-based driver for BQ27Z746 Fuel Gauge.
/Zephyr-latest/tests/drivers/sensor/sbs_gauge/
Dtestcase.yaml9 dt_compat_enabled("sbs,sbs-gauge") and not dt_compat_enabled("zephyr,i2c-emul-controller")
16 filter: dt_compat_enabled("sbs,sbs-gauge")

1234