Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/tests/drivers/usb/bc12/src/
Dpd_mode.c43 state->voltage_uv, state->current_ua); in bc12_test_result_cb()
53 fixture->partner_state.current_ua = 0; in bc12_test_result_cb()
90 zassert_equal(fixture->partner_state.current_ua, 2500); in ZTEST_USER_F()
105 zassert_equal(fixture->partner_state.current_ua, 0); in ZTEST_USER_F()
120 zassert_equal(fixture->partner_state.current_ua, 1500 * 1000); in ZTEST_USER_F()
136 zassert_equal(fixture->partner_state.current_ua, 0); in ZTEST_USER_F()
151 zassert_equal(fixture->partner_state.current_ua, 2500); in ZTEST_USER_F()
167 zassert_equal(fixture->partner_state.current_ua, 1500 * 1000); in ZTEST_USER_F()
Dcharging_mode.c39 state->voltage_uv, state->current_ua); in bc12_test_result_cb()
48 fixture->partner_state.current_ua = 0; in bc12_test_result_cb()
/Zephyr-Core-3.6.0/drivers/charger/
Dcharger_max20335.c123 uint32_t current_ua) in max20335_set_constant_charge_current() argument
128 if (current_ua > config->max_ichg_ua) { in max20335_set_constant_charge_current()
133 switch (current_ua) { in max20335_set_constant_charge_current()
159 uint32_t *current_ua) in max20335_get_constant_charge_current() argument
172 *current_ua = 0; in max20335_get_constant_charge_current()
175 *current_ua = 100000; in max20335_get_constant_charge_current()
178 *current_ua = 500000; in max20335_get_constant_charge_current()
181 *current_ua = 1000000; in max20335_get_constant_charge_current()
Dcharger_bq24190.c248 uint32_t *current_ua) in bq24190_charger_get_constant_charge_current() argument
264 *current_ua = (v * BQ24190_REG_CCC_ICHG_STEP_UA) + BQ24190_REG_CCC_ICHG_OFFSET_UA; in bq24190_charger_get_constant_charge_current()
267 *current_ua /= 5; in bq24190_charger_get_constant_charge_current()
273 static int bq24190_charger_get_precharge_current(const struct device *dev, uint32_t *current_ua) in bq24190_charger_get_precharge_current() argument
294 *current_ua = (v * BQ24190_REG_PCTCC_IPRECHG_STEP_UA) + BQ24190_REG_PCTCC_IPRECHG_OFFSET_UA; in bq24190_charger_get_precharge_current()
297 *current_ua /= 2; in bq24190_charger_get_precharge_current()
303 static int bq24190_charger_get_charge_term_current(const struct device *dev, uint32_t *current_ua) in bq24190_charger_get_charge_term_current() argument
316 *current_ua = (v * BQ24190_REG_PCTCC_ITERM_STEP_UA) + BQ24190_REG_PCTCC_ITERM_OFFSET_UA; in bq24190_charger_get_charge_term_current()
339 static int bq24190_set_constant_charge_current(const struct device *dev, uint32_t current_ua) in bq24190_set_constant_charge_current() argument
353 current_ua *= 5; in bq24190_set_constant_charge_current()
[all …]
/Zephyr-Core-3.6.0/drivers/sensor/ina23x/
Dina230.c33 int32_t current_ua; in ina230_channel_get() local
46 current_ua = data->current * config->current_lsb; in ina230_channel_get()
49 val->val1 = current_ua / 1000000L; in ina230_channel_get()
50 val->val2 = current_ua % 1000000L; in ina230_channel_get()
/Zephyr-Core-3.6.0/drivers/regulator/
Dregulator_shell.c241 int32_t current_ua; in cmd_clist() local
243 (void)regulator_list_current_limit(dev, i, &current_ua); in cmd_clist()
246 if ((i == 0U) || (last_current_ua != current_ua)) { in cmd_clist()
247 microtoshell(sh, 'A', current_ua); in cmd_clist()
250 last_current_ua = current_ua; in cmd_clist()
Dregulator_max20335.c243 int32_t *current_ua) in regulator_max20335_list_current_limit() argument
252 return linear_range_get_value(config->desc->ua_range, idx, current_ua); in regulator_max20335_list_current_limit()
/Zephyr-Core-3.6.0/include/zephyr/drivers/usb/
Dusb_bc12.h106 int current_ua; member
/Zephyr-Core-3.6.0/include/zephyr/drivers/
Dregulator.h82 unsigned int idx, int32_t *current_ua);
568 unsigned int idx, int32_t *current_ua) in regulator_list_current_limit() argument
577 return api->list_current_limit(dev, idx, current_ua); in regulator_list_current_limit()
Dcharger.h216 uint32_t current_ua; member
/Zephyr-Core-3.6.0/drivers/usb/bc12/
Dbc12_pi3usb9201.c278 new_partner_state.current_ua = bc12_chg_limits[bit_pos].current_limit; in pi3usb9201_client_detect_finish()
282 status, new_partner_state.current_ua, new_partner_state.type); in pi3usb9201_client_detect_finish()
410 partner_state.current_ua = BC12_CHARGER_MIN_CURR_UA; in pi3usb9201_set_portable_device()