Searched refs:current_ua (Results 1 – 12 of 12) sorted by relevance
/Zephyr-Core-3.7.0/tests/drivers/usb/bc12/src/ |
D | pd_mode.c | 43 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()
|
D | charging_mode.c | 39 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.7.0/drivers/charger/ |
D | charger_bq24190.c | 248 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 …]
|
D | charger_max20335.c | 228 static int max20335_set_chgin_to_sys_current_limit(const struct device *dev, uint32_t current_ua) in max20335_set_chgin_to_sys_current_limit() argument 233 switch (current_ua) { in max20335_set_chgin_to_sys_current_limit()
|
/Zephyr-Core-3.7.0/drivers/sensor/ti/ina23x/ |
D | ina230.c | 33 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.7.0/drivers/regulator/ |
D | regulator_shell.c | 261 int32_t current_ua; in cmd_clist() local 263 (void)regulator_list_current_limit(dev, i, ¤t_ua); in cmd_clist() 266 if ((i == 0U) || (last_current_ua != current_ua)) { in cmd_clist() 267 microtoshell(sh, 'A', current_ua); in cmd_clist() 270 last_current_ua = current_ua; in cmd_clist()
|
D | regulator_max20335.c | 243 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.7.0/include/zephyr/drivers/usb/ |
D | usb_bc12.h | 106 int current_ua; member
|
/Zephyr-Core-3.7.0/include/zephyr/drivers/ |
D | regulator.h | 84 unsigned int idx, int32_t *current_ua); 575 unsigned int idx, int32_t *current_ua) in regulator_list_current_limit() argument 584 return api->list_current_limit(dev, idx, current_ua); in regulator_list_current_limit()
|
D | charger.h | 240 uint32_t current_ua; member
|
/Zephyr-Core-3.7.0/samples/drivers/charger/src/ |
D | main.c | 36 val.discharge_current_notification.current_ua = in main()
|
/Zephyr-Core-3.7.0/drivers/usb/bc12/ |
D | bc12_pi3usb9201.c | 278 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()
|