Mercurial > code > home > repos > light9
comparison stubs/usb/backend/libusb0.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.libusb0 (Python 3) | |
2 # | |
3 # NOTE: This dynamically typed stub was automatically generated by stubgen. | |
4 | |
5 from ctypes import * | |
6 import usb.libloader | |
7 from typing import Any, Optional | |
8 | |
9 class _PackPolicy: ... | |
10 class _usb_descriptor_header(Structure): ... | |
11 class _usb_string_descriptor(Structure): ... | |
12 class _usb_endpoint_descriptor(Structure, _PackPolicy): ... | |
13 class _usb_interface_descriptor(Structure, _PackPolicy): ... | |
14 class _usb_interface(Structure, _PackPolicy): ... | |
15 class _usb_config_descriptor(Structure, _PackPolicy): ... | |
16 class _usb_device_descriptor(Structure, _PackPolicy): ... | |
17 class _usb_device(Structure, _PackPolicy): ... | |
18 class _usb_bus(Structure, _PackPolicy): ... | |
19 | |
20 class _DeviceDescriptor: | |
21 bLength: Any = ... | |
22 bDescriptorType: Any = ... | |
23 bcdUSB: Any = ... | |
24 bDeviceClass: Any = ... | |
25 bDeviceSubClass: Any = ... | |
26 bDeviceProtocol: Any = ... | |
27 bMaxPacketSize0: Any = ... | |
28 idVendor: Any = ... | |
29 idProduct: Any = ... | |
30 bcdDevice: Any = ... | |
31 iManufacturer: Any = ... | |
32 iProduct: Any = ... | |
33 iSerialNumber: Any = ... | |
34 bNumConfigurations: Any = ... | |
35 address: Any = ... | |
36 bus: Any = ... | |
37 port_number: Any = ... | |
38 port_numbers: Any = ... | |
39 speed: Any = ... | |
40 def __init__(self, dev: Any) -> None: ... | |
41 | |
42 class _LibUSB(usb.backend.IBackend): | |
43 def enumerate_devices(self) -> None: ... | |
44 def get_device_descriptor(self, dev: Any): ... | |
45 def get_configuration_descriptor(self, dev: Any, config: Any): ... | |
46 def get_interface_descriptor(self, dev: Any, intf: Any, alt: Any, config: Any): ... | |
47 def get_endpoint_descriptor(self, dev: Any, ep: Any, intf: Any, alt: Any, config: Any): ... | |
48 def open_device(self, dev: Any): ... | |
49 def close_device(self, dev_handle: Any) -> None: ... | |
50 def set_configuration(self, dev_handle: Any, config_value: Any) -> None: ... | |
51 def get_configuration(self, dev_handle: Any): ... | |
52 def set_interface_altsetting(self, dev_handle: Any, intf: Any, altsetting: Any) -> None: ... | |
53 def claim_interface(self, dev_handle: Any, intf: Any) -> None: ... | |
54 def release_interface(self, dev_handle: Any, intf: Any) -> None: ... | |
55 def bulk_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ... | |
56 def bulk_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ... | |
57 def intr_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ... | |
58 def intr_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ... | |
59 def iso_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ... | |
60 def iso_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ... | |
61 def ctrl_transfer(self, dev_handle: Any, bmRequestType: Any, bRequest: Any, wValue: Any, wIndex: Any, data: Any, timeout: Any): ... | |
62 def clear_halt(self, dev_handle: Any, ep: Any) -> None: ... | |
63 def reset_device(self, dev_handle: Any) -> None: ... | |
64 def detach_kernel_driver(self, dev_handle: Any, intf: Any) -> None: ... | |
65 | |
66 def get_backend(find_library: Optional[Any] = ...): ... |