Home | Trees | Indices | Help |
|
---|
|
|
|||
| __new__(T, S, ...) | ||
|
bulkRead(endpoint,
size,
timeout=100) Performs a bulk read request to the endpoint specified. |
||
|
bulkWrite(endpoint,
buffer,
timeout=100) Performs a bulk write request to the endpoint specified. |
||
|
claimInterface(interface) Claims the interface with the Operating System. |
||
|
clearHalt(endpoint) Clears any halt status on the specified endpoint. |
||
|
controlMsg(requestType,
request,
buffer,
value=0,
index=0,
timeout=100) Performs a control request to the default control pipe on a device. |
||
|
getDescriptor(...) getDescriptor(type, index, len, endpoint = -1) -> descriptor Retrieves a descriptor from the device identified by the type and index of the descriptor. |
||
|
getString(...) getString(index, len, langid = -1) -> string Retrieves the string descriptor specified by index and langid from a device. |
||
|
interruptRead(endpoint,
size,
timeout=100) Performs a interrupt read request to the endpoint specified. |
||
|
interruptWrite(endpoint,
buffer,
timeout=100) Performs a interrupt write request to the endpoint specified. |
||
|
releaseInterface() Releases an interface previously claimed with claimInterface. |
||
|
reset() Resets the specified device by sending a RESET down the port it is connected to. |
||
|
resetEndpoint(endpoint) Resets all state (like toggles) for the specified endpoint. |
||
|
setAltInterface(alternate) Sets the active alternate setting of the current interface. |
||
|
setConfiguration(configuration) Sets the active configuration of a device. |
||
Inherited from |
|
|||
Inherited from |
|
|
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.
|
Claims the interface with the Operating System. Arguments: interface: interface number or an Interface object.
|
Clears any halt status on the specified endpoint. Arguments: endpoint: endpoint number.
|
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.
|
getDescriptor(type, index, len, endpoint = -1) -> descriptor 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. |
getString(index, len, langid = -1) -> string 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.
|
|
|
Resets all state (like toggles) for the specified endpoint. Arguments: endpoint: endpoint number.
|
Sets the active alternate setting of the current interface. Arguments: alternate: an alternate setting number or an Interface object.
|
Sets the active configuration of a device. Arguments: configuration: a configuration value or a Configuration object.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Wed Nov 8 17:34:13 2006 | http://epydoc.sourceforge.net |