diff options
Diffstat (limited to 'include/usb_pd_dpm_sm.h')
-rw-r--r-- | include/usb_pd_dpm_sm.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/usb_pd_dpm_sm.h b/include/usb_pd_dpm_sm.h index 81ab4bdf16..df84ae5e49 100644 --- a/include/usb_pd_dpm_sm.h +++ b/include/usb_pd_dpm_sm.h @@ -84,6 +84,21 @@ void dpm_vdm_naked(int port, enum tcpci_msg_type type, uint16_t svid, uint8_t vdm_cmd, uint32_t vdm_header); /* + * Populates the information for the last reply received for a VDM REQ + * message sent by the AP. + * + * @param[in] port USB-C port number + * @param[out] type Transmit type (SOP, SOP') for request + * @param[out] size The number of uint32_t fields filled in + * @param[out] buf Buffer for VDM header and VDOs + * @return EC_RES_SUCCESS if reply is ready + * EC_RES_BUSY if command is in progress + * EC_RES_UNAVAILABLE if no reply is present + * EC_RES_INVALID_COMMAND if feature not enabled + */ +enum ec_status dpm_copy_vdm_reply(int port, uint8_t *type, uint8_t *size, + uint32_t *buf); +/* * Determines the current allocation for the connection, past the basic * CONFIG_USB_PD_PULLUP value set by the TC (generally 1.5 A) * |