Lines Matching +full:fuel +full:- +full:gauge
4 * SPDX-License-Identifier: Apache-2.0
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.
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()
68 return backend_api->set_battery_charging(target, uV, uA); in z_impl_emul_fuel_gauge_set_battery_charging()
74 * @param target Pointer to the emulator structure for the fuel gauge emulator instance.
78 * @retval -ENOTSUP if not supported by emulator.
84 (const struct fuel_gauge_emul_driver_api *)target->backend_api; in z_impl_emul_fuel_gauge_is_battery_cutoff()
86 if (backend_api->is_battery_cutoff == 0) { in z_impl_emul_fuel_gauge_is_battery_cutoff()
87 return -ENOTSUP; in z_impl_emul_fuel_gauge_is_battery_cutoff()
89 return backend_api->is_battery_cutoff(target, cutoff); in z_impl_emul_fuel_gauge_is_battery_cutoff()