SOC_HI_REG
if ((error = cwfg_read(sc, SOC_HI_REG, &soc)) != 0)
if ((error = cwfg_read(sc, SOC_HI_REG, &val)) != 0)