/Zephyr-latest/include/zephyr/net/prometheus/ |
D | gauge.h | 14 * @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/ |
D | main.c | 9 #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/ |
D | sbs,default-sbs-gauge.yaml | 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. 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.
|
D | sbs,sbs-gauge-new-api.yaml | 1 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]
|
D | zephyr,fuel-gauge-composite.yaml | 5 Composite fuel-gauge constructed from analog input values 7 compatible: "zephyr,fuel-gauge-composite" 9 include: [fuel-gauge.yaml, battery.yaml]
|
D | battery-cutoff.yaml | 12 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
|
D | ti,bq27z746.yaml | 7 Texas Instruments BQ27Z746 fuel gauge. For more info visit 13 include: [i2c-device.yaml, fuel-gauge.yaml]
|
D | maxim,max17048.yaml | 5 Maxim MAX17048 Fuel Gauge with ModelGauge. See more info at: 10 include: [i2c-device.yaml, fuel-gauge.yaml]
|
/Zephyr-latest/drivers/fuel_gauge/ |
D | Kconfig | 6 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/ |
D | fuel_gauge.rst | 3 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/ |
D | gauge.c | 7 #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/ |
D | README.rst | 2 :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/ |
D | Kconfig | 1 # 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/ |
D | emul_fuel_gauge.h | 9 * @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.
|
D | fuel_gauge.h | 12 * @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/ |
D | Kconfig | 1 # 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/ |
D | README.rst | 2 :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/ |
D | sbs,sbs-gauge.yaml | 1 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/ |
D | Kconfig | 5 bool "Smart Battery Fuel Gauge" 10 Enable I2C-based/SMBus-based driver for a Smart Battery Fuel Gauge.
|
/Zephyr-latest/drivers/sensor/maxim/max17262/ |
D | Kconfig | 6 bool "MAX17262 Fuel Gauge" 11 Enable I2C-based driver for MAX17262 Fuel Gauge. This driver supports
|
/Zephyr-latest/drivers/sensor/sbs_gauge/ |
D | Kconfig | 5 bool "Smart Battery Fuel Gauge" 10 Enable I2C-based/SMBus-based driver for a Smart Battery Fuel Gauge.
|
/Zephyr-latest/drivers/sensor/maxim/max17055/ |
D | Kconfig | 6 bool "MAX17055 Fuel Gauge" 11 Enable I2C-based driver for MAX17055 Fuel Gauge. This driver supports
|
/Zephyr-latest/tests/drivers/fuel_gauge/sbs_gauge/ |
D | testcase.yaml | 9 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/ |
D | Kconfig | 7 bool "BQ27Z746 Fuel Gauge" 12 Enable I2C-based driver for BQ27Z746 Fuel Gauge.
|
/Zephyr-latest/tests/drivers/sensor/sbs_gauge/ |
D | testcase.yaml | 9 dt_compat_enabled("sbs,sbs-gauge") and not dt_compat_enabled("zephyr,i2c-emul-controller") 16 filter: dt_compat_enabled("sbs,sbs-gauge")
|