Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/include/zephyr/drivers/
Dregulator.h94 bool active_discharge);
96 bool *active_discharge);
682 bool active_discharge) in regulator_set_active_discharge() argument
691 return api->set_active_discharge(dev, active_discharge); in regulator_set_active_discharge()
705 bool *active_discharge) in regulator_get_active_discharge() argument
714 return api->get_active_discharge(dev, active_discharge); in regulator_get_active_discharge()
/Zephyr-Core-3.7.0/tests/drivers/regulator/api/src/
Dmain.c650 static int get_active_discharge_ok(const struct device *dev, bool *active_discharge) in get_active_discharge_ok() argument
654 *active_discharge = true; in get_active_discharge_ok()
661 bool active_discharge; in ZTEST() local
667 zassert_equal(regulator_get_active_discharge(reg0, &active_discharge), false); in ZTEST()
668 zassert_equal(active_discharge, true); in ZTEST()
671 zassert_equal(regulator_fake_get_active_discharge_fake.arg1_val, &active_discharge); in ZTEST()
/Zephyr-Core-3.7.0/drivers/regulator/
Dregulator_pca9420.c307 bool active_discharge) in regulator_pca9420_set_active_discharge() argument
313 dis_val = (!active_discharge) << config->desc->ad_pos; in regulator_pca9420_set_active_discharge()
319 bool *active_discharge) in regulator_pca9420_get_active_discharge() argument
331 *active_discharge = !((raw_reg & config->desc->ad_mask) >> config->desc->ad_pos); in regulator_pca9420_get_active_discharge()