Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/include/zephyr/drivers/usb/
Dusb_bc12.h65 enum bc12_role { enum
102 enum bc12_role bc12_role; member
134 int (*set_role)(const struct device *dev, enum bc12_role role);
150 __syscall int bc12_set_role(const struct device *dev, enum bc12_role role);
152 static inline int z_impl_bc12_set_role(const struct device *dev, enum bc12_role role) in z_impl_bc12_set_role()
/Zephyr-Core-3.5.0/drivers/usb/bc12/
Dbc12_pi3usb9201.c191 if (state->bc12_role != pi3usb9201_data->partner_state.bc12_role) { in pi3usb9201_partner_has_changed()
195 if (state->bc12_role == BC12_PORTABLE_DEVICE && in pi3usb9201_partner_has_changed()
200 if (state->bc12_role == BC12_CHARGING_PORT && in pi3usb9201_partner_has_changed()
230 pi3usb9201_data->partner_state.bc12_role = BC12_DISCONNECTED; in pi3usb9201_update_charging_partner()
267 new_partner_state.bc12_role = BC12_PORTABLE_DEVICE; in pi3usb9201_client_detect_finish()
338 partner_state.bc12_role = BC12_CHARGING_PORT; in pi3usb9201_host_interrupt()
343 partner_state.bc12_role = BC12_CHARGING_PORT; in pi3usb9201_host_interrupt()
408 partner_state.bc12_role = BC12_PORTABLE_DEVICE; in pi3usb9201_set_portable_device()
445 partner_state.bc12_role = BC12_CHARGING_PORT; in pi3usb9201_set_charging_mode()
524 static int pi3usb9201_set_role(const struct device *dev, const enum bc12_role role) in pi3usb9201_set_role()
[all …]
Dbc12_handlers.c10 static inline int z_vrfy_bc12_set_role(const struct device *dev, enum bc12_role role) in z_vrfy_bc12_set_role()
/Zephyr-Core-3.5.0/tests/drivers/bc12/src/
Dpd_mode.c41 if (state->bc12_role == BC12_PORTABLE_DEVICE) { in bc12_test_result_cb()
44 } else if (state->bc12_role == BC12_CHARGING_PORT) { in bc12_test_result_cb()
88 zassert_equal(fixture->partner_state.bc12_role, BC12_PORTABLE_DEVICE); in ZTEST_USER_F()
118 zassert_equal(fixture->partner_state.bc12_role, BC12_PORTABLE_DEVICE); in ZTEST_USER_F()
149 zassert_equal(fixture->partner_state.bc12_role, BC12_PORTABLE_DEVICE); in ZTEST_USER_F()
165 zassert_equal(fixture->partner_state.bc12_role, BC12_PORTABLE_DEVICE); in ZTEST_USER_F()
Dcharging_mode.c37 if (state->bc12_role == BC12_PORTABLE_DEVICE) { in bc12_test_result_cb()
40 } else if (state->bc12_role == BC12_CHARGING_PORT) { in bc12_test_result_cb()