unsigned short USBEndpointDescriptor_GetMaxPacketSize(const USBEndpointDescriptor *endpoint) { return endpoint->wMaxPacketSize; }