/* STUSB1602 checks the Power Role SWAP status (bit2 0x18  */
Power_Role_Swap_TypeDef STUSB1602_Power_Role_Swap_Status_Get(uint8_t Addr)
/* STUSB1602 checks the Power Role SWAP status (bit2 0x18  */
Power_Role_Swap_TypeDef STUSB1602_Power_Role_Swap_Status_Get(uint8_t Addr)
{
    STUSB1602_CC_CAPABILITY_CTRL_RegTypeDef reg;
    STUSB1602_ReadReg(&reg.d8, Addr, STUSB1602_CC_CAPABILITY_CTRL_REG, 1); 
    return (Power_Role_Swap_TypeDef)(reg.b.PR_SWAP_EN);
}