The following firmware sequence occurs when a power bank application that uses an EZ-USB™ CCG3PA controller is connected to a battery.
b) If the Type-C port is not connected to anything, CCG3PA configures it as a ‘sink only’ device.
c) If the Type-C port is connected as source, CCG3PA removes VBUS and waits for disconnect. On disconnect, CCG3PA configures it as a ‘sink only’ device.
d) CCG3PA disables the Type-A port to stop the discharging of the battery, and waits until a power adapter is connected on the Type-C port.
See the CCG3PA datasheet for more information.