diff options
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index fce59707b3..78c142bf43 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -779,16 +779,18 @@ enum pd_dual_role_states { /** * Get dual role state * + * @param port Port number from which to get state * @return Current dual-role state, from enum pd_dual_role_states */ -enum pd_dual_role_states pd_get_dual_role(void); +enum pd_dual_role_states pd_get_dual_role(int port); /** * Set dual role state, from among enum pd_dual_role_states * + * @param port Port number of which to set state * @param state New state of dual-role port, selected from * enum pd_dual_role_states */ -void pd_set_dual_role(enum pd_dual_role_states state); +void pd_set_dual_role(int port, enum pd_dual_role_states state); /** * Get role, from among PD_ROLE_SINK and PD_ROLE_SOURCE |