Home
last modified time | relevance | path

Searched refs:cutoff_writes (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/fuel_gauge/sbs_gauge/
Demul_sbs_gauge.c46 uint8_t cutoff_writes; member
79 uint16_t target_payload_elem_val = cfg->cutoff_payload[data->cutoff_writes]; in emul_sbs_gauge_maybe_do_battery_cutoff()
82 data->cutoff_writes++; in emul_sbs_gauge_maybe_do_battery_cutoff()
83 __ASSERT_NO_MSG(data->cutoff_writes <= ARRAY_SIZE(cfg->cutoff_payload)); in emul_sbs_gauge_maybe_do_battery_cutoff()
86 data->cutoff_writes = 0; in emul_sbs_gauge_maybe_do_battery_cutoff()
89 if (data->cutoff_writes == ARRAY_SIZE(cfg->cutoff_payload)) { in emul_sbs_gauge_maybe_do_battery_cutoff()
91 data->cutoff_writes = 0; in emul_sbs_gauge_maybe_do_battery_cutoff()
96 data->cutoff_writes = 0; in emul_sbs_gauge_maybe_do_battery_cutoff()