(self, endpoint)
return result
Get device's max packet size for given endpoint.

        Warning: this function will not always give you the expected result.
        See https://libusb.org/ticket/77 . You should instead consult the
        endpoint descriptor of current configuration and alternate setting.
Get device's max packet size for given endpoint.
Get device s max packet size for given endpoint .
def getMaxPacketSize(self, endpoint):
        """
        Get device's max packet size for given endpoint.

        Warning: this function will not always give you the expected result.
        See https://libusb.org/ticket/77 . You should instead consult the
        endpoint descriptor of current configuration and alternate setting.
        """
        result = libusb1.libusb_get_max_packet_size(self.device_p, endpoint)
        if result < 0:
            raise libusb1.USBError(result)
        return result
def getMaxPacketSize ( self , endpoint ) : result = libusb1 . libusb_get_max_packet_size ( self . device_p , endpoint ) if result < 0 : raise libusb1 . USBError ( result ) return result