The STSW-STUSB007 is a software library allowing the USB-C port status to be read from the STUSB4500L. It allows the system to collect some information, such as the port orientation or the available current. Open source software is available to speed-up the process or migrate to different environments. The library includes: STUSB4500L hardware abstractions layers, drivers and code example.
Open source code
NUCLEO-F072RB: STM32 Nucleo-64 development board with the STM32F072RB MCU