Performs a bulk read request to the endpoint specified. Arguments: endpoint: endpoint number. size: number of bytes to read. timeout: operation timeout in miliseconds. (default: 100) Returns a tuple with the data read.
Performs a bulk write request to the endpoint specified. Arguments: endpoint: endpoint number. buffer: sequence data buffer to write. This parameter can be any sequence type timeout: operation timeout in miliseconds. (default: 100) Returns the number of bytes written.
Performs a control request to the default control pipe on a device. Arguments: requestType: specifies the direction of data flow, the type of request, and the recipient. request: specifies the request. buffer: if the transfer is a write transfer, buffer is a sequence with the transfer data, otherwise, buffer is the number of bytes to read. value: specific information to pass to the device. (default: 0) index: specific information to pass to the device. (default: 0) timeout: operation timeout in miliseconds. (default: 100) Returns the number of bytes written.
Retrieves a descriptor from the device identified by the type and index of the descriptor. Arguments: type: descriptor type. index: index of the descriptor. len: descriptor length. endpoint: endpoint number from descriptor is read. If it is omitted, the descriptor is read from default control pipe.
Retrieves the string descriptor specified by index and langid from a device. Arguments: index: index of descriptor in the device. len: number of bytes of the string langid: Language ID. If it is omittedi, will be used the first language.
Performs a interrupt read request to the endpoint specified. Arguments: endpoint: endpoint number. size: number of bytes to read. timeout: operation timeout in miliseconds. (default: 100) Returns a tuple with the data read.
Performs a interrupt write request to the endpoint specified. Arguments: endpoint: endpoint number. buffer: sequence data buffer to write. This parameter can be any sequence type timeout: operation timeout in miliseconds. (default: 100) Returns the number of bytes written.
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
address = <member 'address' of 'usb.Endpoint' objects>
Contains the endpoint address.
interval = <member 'interval' of 'usb.Endpoint' objects>
The maximum latency for polling interrupt endpoints, or the interval for polling isochronous endpoints, or the maximum NAK rate for high-speed bulk OUT or control endpoints.
maxPacketSize = <member 'maxPacketSize' of 'usb.Endpoint' objects>
The maximum number of data bytes the endpoint can transfer in a transaction.
type = <member 'type' of 'usb.Endpoint' objects>
It contains one of the following values, indicating the endpoint transfer type: ENDPOINT_TYPE_CONTROL ENDPOINT_TYPE_ISOCHRONOUS ENDPOINT_TYPE_BULK ENDPOINT_TYPE_INTERRUPT
文章评论(0条评论)
登录后参与讨论