So I've deeply read into the USB-PD system. I've looked at many pinouts of the Type-C port. I've realized: when you can charge the device through this port - how can it power regular USB devices?
I am trying to create a mobile "embedded" device containing both, a power supply and battery. The computer inside has multiple USB 3.2 Gen2 (type-A) ports, so I've decided to route some of them to the outside, accesible to a user. One of them is going to be a USB Type-C port; That's when I thought: "Wait - I can use this port to also charge the device!"
The USB-C pinout is fairly straight forward: Pin 6 and 7 are the USB 2.0 data wires, pin 1 and 12 are ground but how do USB 2(/3.0) devices get their power?
I do realize that there is a handshake process, which is for handling out, which power to supply and accept but what happens in the port when your port supports bidirectional power?
If your device is the power sink and you unplug it, there won't be any power on the CC pins. However if your device is the power well, there should be a constant +5V 1A available, right? Now imagine you plug in a power supply. When and how does the Power direction change? If it doesn't change you might possibly be sending 20V+ with 5A down a (type-A in my case) Motherboard receptacle. Can't be good, right?
I have also read this article but it's too vague: https://www.usb.org/usb-charger-pd