The USB 2.0 specification from usb.org discuses endpoints.