summaryrefslogtreecommitdiff
path: root/include/usb_pd_tcpm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r--include/usb_pd_tcpm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h
index 6b1180cafd..4e1b04249e 100644
--- a/include/usb_pd_tcpm.h
+++ b/include/usb_pd_tcpm.h
@@ -57,6 +57,14 @@ struct tcpc_config_t {
};
/**
+ * Returns the PD_STATUS_TCPC_ALERT_* mask corresponding to the TCPC ports
+ * that are currently asserting ALERT.
+ *
+ * @return PD_STATUS_TCPC_ALERT_* mask.
+ */
+uint16_t tcpc_get_alert_status(void);
+
+/**
* Initialize TCPM driver and wait for TCPC readiness.
*
* @param port Type-C port number