Mercurial > code > home > repos > light9
comparison stubs/usb/backend/openusb.pyi @ 1882:5c1b662c0263
stub updates
Ignore-this: 1c3a7199c6f2b6e85fd40c2d6bd2613c
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Tue, 28 May 2019 06:42:27 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1881:baae0bdfde74 | 1882:5c1b662c0263 |
---|---|
1 # Stubs for usb.backend.openusb (Python 3) | |
2 # | |
3 # NOTE: This dynamically typed stub was automatically generated by stubgen. | |
4 | |
5 from ctypes import * | |
6 import usb.libloader as _objfinalizer | |
7 import usb.libloader | |
8 from typing import Any | |
9 | |
10 class _usb_endpoint_desc(Structure): ... | |
11 class _usb_interface_desc(Structure): ... | |
12 class _usb_config_desc(Structure): ... | |
13 class _usb_device_desc(Structure): ... | |
14 class _openusb_request_result(Structure): ... | |
15 | |
16 class _openusb_ctrl_request(Structure): | |
17 payload: Any = ... | |
18 length: int = ... | |
19 timeout: int = ... | |
20 flags: int = ... | |
21 next: Any = ... | |
22 def __init__(self) -> None: ... | |
23 class _openusb_ctrl_setup(Structure): ... | |
24 | |
25 class _openusb_intr_request(Structure): ... | |
26 class _openusb_bulk_request(Structure): ... | |
27 | |
28 class _openusb_isoc_pkts(Structure): | |
29 class _openusb_isoc_packet(Structure): ... | |
30 | |
31 class _openusb_isoc_request(Structure): ... | |
32 | |
33 class _Context(_objfinalizer.AutoFinalizedObject): | |
34 handle: Any = ... | |
35 def __init__(self) -> None: ... | |
36 | |
37 class _BusIterator(_objfinalizer.AutoFinalizedObject): | |
38 buslist: Any = ... | |
39 num_busids: Any = ... | |
40 def __init__(self) -> None: ... | |
41 def __iter__(self) -> None: ... | |
42 | |
43 class _DevIterator(_objfinalizer.AutoFinalizedObject): | |
44 devlist: Any = ... | |
45 num_devids: Any = ... | |
46 def __init__(self, busid: Any) -> None: ... | |
47 def __iter__(self) -> None: ... | |
48 | |
49 class _OpenUSB(usb.backend.IBackend): | |
50 def enumerate_devices(self) -> None: ... | |
51 def get_device_descriptor(self, dev: Any): ... | |
52 def get_configuration_descriptor(self, dev: Any, config: Any): ... | |
53 def get_interface_descriptor(self, dev: Any, intf: Any, alt: Any, config: Any): ... | |
54 def get_endpoint_descriptor(self, dev: Any, ep: Any, intf: Any, alt: Any, config: Any): ... | |
55 def open_device(self, dev: Any): ... | |
56 def close_device(self, dev_handle: Any) -> None: ... | |
57 def set_configuration(self, dev_handle: Any, config_value: Any) -> None: ... | |
58 def get_configuration(self, dev_handle: Any): ... | |
59 def set_interface_altsetting(self, dev_handle: Any, intf: Any, altsetting: Any) -> None: ... | |
60 def claim_interface(self, dev_handle: Any, intf: Any) -> None: ... | |
61 def release_interface(self, dev_handle: Any, intf: Any) -> None: ... | |
62 def bulk_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ... | |
63 def bulk_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ... | |
64 def intr_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ... | |
65 def intr_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ... | |
66 def ctrl_transfer(self, dev_handle: Any, bmRequestType: Any, bRequest: Any, wValue: Any, wIndex: Any, data: Any, timeout: Any): ... | |
67 def reset_device(self, dev_handle: Any) -> None: ... | |
68 def clear_halt(self, dev_handle: Any, ep: Any) -> None: ... | |
69 | |
70 # Names in __all__ with no definition: | |
71 # get_backendOPENUSB_SUCCESSOPENUSB_PLATFORM_FAILUREOPENUSB_NO_RESOURCESOPENUSB_NO_BANDWIDTHOPENUSB_NOT_SUPPORTEDOPENUSB_HC_HARDWARE_ERROROPENUSB_INVALID_PERMOPENUSB_BUSYOPENUSB_BADARGOPENUSB_NOACCESSOPENUSB_PARSE_ERROROPENUSB_UNKNOWN_DEVICEOPENUSB_INVALID_HANDLEOPENUSB_SYS_FUNC_FAILUREOPENUSB_NULL_LISTOPENUSB_CB_CONTINUEOPENUSB_CB_TERMINATEOPENUSB_IO_STALLOPENUSB_IO_CRC_ERROROPENUSB_IO_DEVICE_HUNGOPENUSB_IO_REQ_TOO_BIGOPENUSB_IO_BIT_STUFFINGOPENUSB_IO_UNEXPECTED_PIDOPENUSB_IO_DATA_OVERRUNOPENUSB_IO_DATA_UNDERRUNOPENUSB_IO_BUFFER_OVERRUNOPENUSB_IO_BUFFER_UNDERRUNOPENUSB_IO_PID_CHECK_FAILUREOPENUSB_IO_DATA_TOGGLE_MISMATCHOPENUSB_IO_TIMEOUTOPENUSB_IO_CANCELED |