2020-04-22 08:48 PM
2020-05-15 12:05 AM
Dear Alex
By adding that code, when OCP happens at source side, what kind of Alert would be received by the port partner?
=> An alert message is sent from SRC to SNK (through USBPD_DPM_RequestAlert(_instance, alert);). Depending on the content of this alert, SINK can decide to send GET__xxxx_STATUS message (battery, PPS,....)
My understanding for OCP handling is as following:
1)When CL happens, OMF bit in PPSSDB would be set. The port partner would be notified through PPS_Status.
=> PPS_STATUS is sent only if requested by SINK with GET_PPS_STATUS (decision of SINK to send this message)
2)When vPpsShutdown happen, Source should send HardReset to its port partner.
Is this correct?, BTW, Are OMF flag setting and HardReset sending mandatory or optional ?
=> vPpsShutdown is optional according to the specification ("drop below vPpsShutdown the Source May send Hard Reset")
=> OMF is used only in PPS_STATUS but as supported by source, if Source receives a GET_PPS_STATUS, it shall manage the OMF bit
Regards,
Yohann