sw_err_reg
union sw_err_reg sw_err;
union sw_err_reg err = {};
err.bits[i] = readq(reg + offsetof(union sw_err_reg, bits[i]));