summaryrefslogtreecommitdiff
path: root/include/usb_pd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r--include/usb_pd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 89229079a4..e8f9168aa7 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -185,6 +185,13 @@ void pd_request_source_voltage(int mv);
*/
int pd_board_checks(void);
+/**
+ * Query if power negotiation is allowed.
+ *
+ * @return true if negotation is allowed, false otherwise.
+ */
+int pd_power_negotiation_allowed(void);
+
/*
* Handle Vendor Defined Message with our vendor ID.
*