sr_test_cond_timeout
sr_test_cond_timeout((sr_read_reg(sr, ERRCONFIG_V1) &
sr_test_cond_timeout((sr_read_reg(sr, IRQSTATUS) &