USB_EP_ATTR_MASK
if((ed->attributes & USB_EP_ATTR_MASK) == USB_EP_ATTR_BULK){
if((ed->attributes & USB_EP_ATTR_MASK) == USB_EP_ATTR_INTERRUPT)