aboutsummaryrefslogtreecommitdiff
path: root/vendor/winapi/src/shared/winusbio.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-01-08 00:21:28 +0300
committerValentin Popov <valentin@popov.link>2024-01-08 00:21:28 +0300
commit1b6a04ca5504955c571d1c97504fb45ea0befee4 (patch)
tree7579f518b23313e8a9748a88ab6173d5e030b227 /vendor/winapi/src/shared/winusbio.rs
parent5ecd8cf2cba827454317368b68571df0d13d7842 (diff)
downloadfparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.tar.xz
fparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.zip
Initial vendor packages
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'vendor/winapi/src/shared/winusbio.rs')
-rw-r--r--vendor/winapi/src/shared/winusbio.rs38
1 files changed, 38 insertions, 0 deletions
diff --git a/vendor/winapi/src/shared/winusbio.rs b/vendor/winapi/src/shared/winusbio.rs
new file mode 100644
index 0000000..8006943
--- /dev/null
+++ b/vendor/winapi/src/shared/winusbio.rs
@@ -0,0 +1,38 @@
+// Licensed under the Apache License, Version 2.0
+// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
+// All files in the project carrying such notice may not be copied, modified, or distributed
+// except according to those terms.
+//! Public header for WINUSB
+use shared::minwindef::{UCHAR, ULONG, USHORT};
+use shared::usb::USBD_PIPE_TYPE;
+pub const SHORT_PACKET_TERMINATE: ULONG = 0x01;
+pub const AUTO_CLEAR_STALL: ULONG = 0x02;
+pub const PIPE_TRANSFER_TIMEOUT: ULONG = 0x03;
+pub const IGNORE_SHORT_PACKETS: ULONG = 0x04;
+pub const ALLOW_PARTIAL_READS: ULONG = 0x05;
+pub const AUTO_FLUSH: ULONG = 0x06;
+pub const RAW_IO: ULONG = 0x07;
+pub const MAXIMUM_TRANSFER_SIZE: ULONG = 0x08;
+pub const RESET_PIPE_ON_RESUME: ULONG = 0x09;
+pub const DEVICE_SPEED: ULONG = 0x01;
+pub const LowSpeed: ULONG = 0x01;
+pub const FullSpeed: ULONG = 0x02;
+pub const HighSpeed: ULONG = 0x03;
+DEFINE_GUID!{WinUSB_TestGuid,
+ 0xda812bff, 0x12c3, 0x46a2, 0x8e, 0x2b, 0xdb, 0xd3, 0xb7, 0x83, 0x4c, 0x43}
+STRUCT!{struct WINUSB_PIPE_INFORMATION {
+ PipeType: USBD_PIPE_TYPE,
+ PipeId: UCHAR,
+ MaximumPacketSize: USHORT,
+ Interval: UCHAR,
+}}
+pub type PWINUSB_PIPE_INFORMATION = *mut WINUSB_PIPE_INFORMATION;
+STRUCT!{struct WINUSB_PIPE_INFORMATION_EX {
+ PipeType: USBD_PIPE_TYPE,
+ PipeId: UCHAR,
+ MaximumPacketSize: USHORT,
+ Interval: UCHAR,
+ MaximumBytesPerInterval: ULONG,
+}}
+pub type PWINUSB_PIPE_INFORMATION_EX = *mut WINUSB_PIPE_INFORMATION_EX;