summaryrefslogtreecommitdiffstats
path: root/vendor/windows-sys-0.28.0/src/Windows/Devices/Usb/mod.rs
blob: c07f72afe6d0b3ee366c4890bbf2d06467fdc747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
#[link(name = "windows")]
extern "system" {}
pub type UsbBulkInEndpointDescriptor = *mut ::core::ffi::c_void;
pub type UsbBulkInPipe = *mut ::core::ffi::c_void;
pub type UsbBulkOutEndpointDescriptor = *mut ::core::ffi::c_void;
pub type UsbBulkOutPipe = *mut ::core::ffi::c_void;
pub type UsbConfiguration = *mut ::core::ffi::c_void;
pub type UsbConfigurationDescriptor = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct UsbControlRecipient(pub i32);
impl UsbControlRecipient {
    pub const Device: Self = Self(0i32);
    pub const SpecifiedInterface: Self = Self(1i32);
    pub const Endpoint: Self = Self(2i32);
    pub const Other: Self = Self(3i32);
    pub const DefaultInterface: Self = Self(4i32);
}
impl ::core::marker::Copy for UsbControlRecipient {}
impl ::core::clone::Clone for UsbControlRecipient {
    fn clone(&self) -> Self {
        *self
    }
}
pub type UsbControlRequestType = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct UsbControlTransferType(pub i32);
impl UsbControlTransferType {
    pub const Standard: Self = Self(0i32);
    pub const Class: Self = Self(1i32);
    pub const Vendor: Self = Self(2i32);
}
impl ::core::marker::Copy for UsbControlTransferType {}
impl ::core::clone::Clone for UsbControlTransferType {
    fn clone(&self) -> Self {
        *self
    }
}
pub type UsbDescriptor = *mut ::core::ffi::c_void;
pub type UsbDevice = *mut ::core::ffi::c_void;
pub type UsbDeviceClass = *mut ::core::ffi::c_void;
pub type UsbDeviceClasses = *mut ::core::ffi::c_void;
pub type UsbDeviceDescriptor = *mut ::core::ffi::c_void;
pub type UsbEndpointDescriptor = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct UsbEndpointType(pub i32);
impl UsbEndpointType {
    pub const Control: Self = Self(0i32);
    pub const Isochronous: Self = Self(1i32);
    pub const Bulk: Self = Self(2i32);
    pub const Interrupt: Self = Self(3i32);
}
impl ::core::marker::Copy for UsbEndpointType {}
impl ::core::clone::Clone for UsbEndpointType {
    fn clone(&self) -> Self {
        *self
    }
}
pub type UsbInterface = *mut ::core::ffi::c_void;
pub type UsbInterfaceDescriptor = *mut ::core::ffi::c_void;
pub type UsbInterfaceSetting = *mut ::core::ffi::c_void;
pub type UsbInterruptInEndpointDescriptor = *mut ::core::ffi::c_void;
pub type UsbInterruptInEventArgs = *mut ::core::ffi::c_void;
pub type UsbInterruptInPipe = *mut ::core::ffi::c_void;
pub type UsbInterruptOutEndpointDescriptor = *mut ::core::ffi::c_void;
pub type UsbInterruptOutPipe = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct UsbReadOptions(pub u32);
impl UsbReadOptions {
    pub const None: Self = Self(0u32);
    pub const AutoClearStall: Self = Self(1u32);
    pub const OverrideAutomaticBufferManagement: Self = Self(2u32);
    pub const IgnoreShortPacket: Self = Self(4u32);
    pub const AllowPartialReads: Self = Self(8u32);
}
impl ::core::marker::Copy for UsbReadOptions {}
impl ::core::clone::Clone for UsbReadOptions {
    fn clone(&self) -> Self {
        *self
    }
}
pub type UsbSetupPacket = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct UsbTransferDirection(pub i32);
impl UsbTransferDirection {
    pub const Out: Self = Self(0i32);
    pub const In: Self = Self(1i32);
}
impl ::core::marker::Copy for UsbTransferDirection {}
impl ::core::clone::Clone for UsbTransferDirection {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct UsbWriteOptions(pub u32);
impl UsbWriteOptions {
    pub const None: Self = Self(0u32);
    pub const AutoClearStall: Self = Self(1u32);
    pub const ShortPacketTerminate: Self = Self(2u32);
}
impl ::core::marker::Copy for UsbWriteOptions {}
impl ::core::clone::Clone for UsbWriteOptions {
    fn clone(&self) -> Self {
        *self
    }
}