STM32G4 + USB PD + Switching power profiles
I am studying USB PD now with the demo board B-G474E-DPOW1.
I try to program the consumer and need help with switching profiles.
When the cable is connected, the charger displays a list of available profiles.
I can't figure out how to choose the right profile.
- Should the consumer choose one of the suggested source profiles?
- Or does the consumer pass one of its profiles to the source?
- At what time can I send a switch request?
Could you give an example of a function that implements profile switching?
