(self, endpoint)
return USBEndpoint(self.__alt_setting.endpoint[endpoint])
Returns an USBEndpoint instance.
Returns an USBEndpoint instance.
Returns an USBEndpoint instance .
def __getitem__(self, endpoint):
        """
        Returns an USBEndpoint instance.
        """
        if not isinstance(endpoint, int):
            raise TypeError('endpoint parameter must be an integer')
        if not (0 <= endpoint < self.getNumEndpoints()):
            raise ValueError('No such endpoint: %r' % (endpoint, ))
        return USBEndpoint(self.__alt_setting.endpoint[endpoint])
def __getitem__ ( self , endpoint ) : if not isinstance ( endpoint , int ) : raise TypeError ( 'endpoint parameter must be an integer' ) if not ( 0 <= endpoint < self . getNumEndpoints ( ) ) : raise ValueError ( 'No such endpoint: %r' % ( endpoint , ) ) return USBEndpoint ( self . __alt_setting . endpoint [ endpoint ] )