STATUS_TEMP_MASK
reg = RD4(sc, STATUS) & STATUS_TEMP_MASK;
sample = sign_extend(reg, fls(STATUS_TEMP_MASK) - 1);