/* STUSB1602 sets the VCONN switch Current Limitation on CC (bit3-0 0x1E  */
STUSB1602_StatusTypeDef STUSB1602_VCONN_Switch_Current_Limit_Set(uint8_t Addr, VCONN_Switch_Current_Limit_TypeDef curr_lim)
/* STUSB1602 sets the VCONN switch Current Limitation on CC (bit3-0 0x1E  */
STUSB1602_StatusTypeDef STUSB1602_VCONN_Switch_Current_Limit_Set(uint8_t Addr, VCONN_Switch_Current_Limit_TypeDef curr_lim)
{
    STUSB1602_StatusTypeDef status = STUSB1602_OK;
    STUSB1602_CC_VCONN_SWITCH_CTRL_RegTypeDef reg; 
    STUSB1602_ReadReg(&reg.d8, Addr, STUSB1602_CC_VCONN_SWITCH_CTRL_REG, 1); 
    reg.b.CC_VCONN_SWITCH_ILIM = curr_lim;
    status = STUSB1602_WriteReg(&reg.d8, Addr, STUSB1602_CC_VCONN_SWITCH_CTRL_REG, 1);
    return status;
}