Solved
Yohann M.Best answer
ST Employee
June 30, 2021
Dear @Mtopa.1
You could refer to AN5418 and mainly the §5.1.4.
Idea is to change the Sink PD0 to accept 20V. For instance, if you want to have a Sink PDO 20V/3A, you should put the value '0x0006412C'.
In our GO demonstration, we provided user macro to help writing PDO:
STM32G081B-EVAL/Demonstrations/DemoUCPD/Inc/usbpd_pdo_defs.h
Yohann
