diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/fake_usbc.c | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c index 2ee1791717..36e0d7ca48 100644 --- a/test/fake_usbc.c +++ b/test/fake_usbc.c @@ -142,9 +142,75 @@ void pd_dev_get_rw_hash(int port, uint16_t *dev_id, uint8_t *rw_hash, { } +int pd_comm_is_enabled(int port) +{ + return 0; +} + +bool pd_get_partner_data_swap_capable(int port) +{ + return true; +} + +bool pd_capable(int port) +{ + return true; +} + +#ifndef CONFIG_TEST_USB_PE_SM +enum idh_ptype get_usb_pd_mux_cable_type(int port) +{ + return IDH_PTYPE_UNDEF; +} +#endif + #ifndef CONFIG_USB_TYPEC_DRP_ACC_TRYSRC bool pd_is_disconnected(int port) { return false; } + +void pd_set_dual_role(int port, enum pd_dual_role_states state) +{ +} + +enum tcpc_cc_polarity pd_get_polarity(int port) +{ + return POLARITY_CC1; +} + +bool pd_get_vconn_state(int port) +{ + return false; +} + +bool pd_get_partner_dual_role_power(int port) +{ + return false; +} + +uint8_t pd_get_task_state(int port) +{ + return 0; +} + +enum pd_cc_states pd_get_task_cc_state(int port) +{ + return PD_CC_NONE; +} + +int pd_is_connected(int port) +{ + return true; +} + +bool pd_get_partner_unconstr_power(int port) +{ + return 0; +} + +const char *pd_get_task_state_name(int port) +{ + return NULL; +} #endif /* CONFIG_USB_TYPEC_DRP_ACC_TRYSRC */ |