/* STUSB1602 checks the CURRENT_ADVERTISED status on CC (bit7-6 0x18  */
Current_Capability_Advertised_TypeDef STUSB1602_Current_Advertised_Get(uint8_t Addr)
/* STUSB1602 checks the CURRENT_ADVERTISED status on CC (bit7-6 0x18  */
Current_Capability_Advertised_TypeDef STUSB1602_Current_Advertised_Get(uint8_t Addr)
{
    STUSB1602_CC_CAPABILITY_CTRL_RegTypeDef reg;
    STUSB1602_ReadReg(&reg.d8, Addr, STUSB1602_CC_CAPABILITY_CTRL_REG, 1); 
    return (Current_Capability_Advertised_TypeDef)(reg.b.CC_CURRENT_ADVERTISED);
}