use the EP_DIR() macro to go from USB_DIR_* to a 0 or 1 value