/* Power role swap: Rd resitor on the CC line. 
It requests Rd assertion on CC line as step of power role swap USB PD transaction  */
USBPD_StatusTypeDef USBPD_HW_IF_PRS_Assert_Rd(uint8_t PortNum, USBPD_PortPowerRole_TypeDef CurrentRole)
/* Power role swap: Rd resitor on the CC line. 
It requests Rd assertion on CC line as step of power role swap USB PD transaction  */
USBPD_StatusTypeDef USBPD_HW_IF_PRS_Assert_Rd(uint8_t PortNum, USBPD_PortPowerRole_TypeDef CurrentRole)
{
  CAD_HW_HandleTypeDef *_handle = &CAD_HW_Handles[PortNum];
  if ((USBPD_FALSE == _handle->settings->CAD_RoleToggle) && (CurrentRole != USBPD_PORTPOWERROLE_SRC))
  {
    return USBPD_ERROR;
  }
  return (USBPD_StatusTypeDef)STUSB1602_Type_C_Command(STUSB1602_I2C_Add(PortNum), PD_PR_SWAP_RD_ASSERT_REQ);
}