/* It checks if VBus is present or not.  */
USBPD_FunctionalState HW_IF_Check_VBus(uint8_t PortNum)
/* It checks if VBus is present or not.  */
USBPD_FunctionalState HW_IF_Check_VBus(uint8_t PortNum)
{
  return ((STUSB1602_VBUS_Presence_Get(STUSB1602_I2C_Add(PortNum)) == VBUS_above_UVLO_threshold) ? USBPD_ENABLE : USBPD_DISABLE);
}