BATINFO_REG
if ((error = cwfg_read(sc, BATINFO_REG(n), &val)) != 0)
if ((error = cwfg_write(sc, BATINFO_REG(n), val)) != 0)