hw_test_and_clear
hw_test_and_clear(ci, OP_ENDPTSETUPSTAT, BIT(0)))
return hw_test_and_clear(ci, OP_ENDPTCOMPLETE, BIT(n));