/* DPM callback used to know user choice about Data Role Swap.  */
USBPD_StatusTypeDef USBPD_DPM_EvaluateDataRoleSwap(uint8_t PortNum)
/* DPM callback used to know user choice about Data Role Swap.  */
USBPD_StatusTypeDef USBPD_DPM_EvaluateDataRoleSwap(uint8_t PortNum)
{
  USBPD_StatusTypeDef status = USBPD_REJECT;
  if (USBPD_TRUE == DPM_USER_Settings[PortNum].PE_DataSwap)
  {
    STUSB16xx_HW_IF_DataRoleSwap(PortNum);
    status = USBPD_ACCEPT;
  }
  return status;
}