/* STUSB1602 sets the CURRENT_ADVERTISED on CC (bit7-6 0x18  */
STUSB1602_StatusTypeDef STUSB1602_Current_Advertised_Set(uint8_t Addr, Current_Capability_Advertised_TypeDef curr_cap)
/* STUSB1602 sets the CURRENT_ADVERTISED on CC (bit7-6 0x18  */
STUSB1602_StatusTypeDef STUSB1602_Current_Advertised_Set(uint8_t Addr, Current_Capability_Advertised_TypeDef curr_cap)
{
    STUSB1602_StatusTypeDef status = STUSB1602_OK;  
    STUSB1602_CC_CAPABILITY_CTRL_RegTypeDef reg;  
    STUSB1602_ReadReg(&reg.d8, Addr, STUSB1602_CC_CAPABILITY_CTRL_REG, 1); 
    reg.b.CC_CURRENT_ADVERTISED = curr_cap;
    status =  STUSB1602_WriteReg(&reg.d8, Addr, STUSB1602_CC_CAPABILITY_CTRL_REG, 1);
    return status;
}