Lines Matching +full:battery +full:- +full:current
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()
68 return backend_api->set_battery_charging(target, uV, uA); in z_impl_emul_fuel_gauge_set_battery_charging()
72 * @brief Check if the battery has been cut off.
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()