summaryrefslogtreecommitdiffstats
path: root/third_party/rust/winapi-0.2.8/src/usb.rs
blob: 5a5904ec5ea16b87e086fdcd566f5cf4a72386ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright © 2016, bitbegin
// Licensed under the MIT License <LICENSE.md>
//! USB Definitions.
ENUM!{enum USBD_PIPE_TYPE {
    UsbdPipeTypeControl,
    UsbdPipeTypeIsochronous,
    UsbdPipeTypeBulk,
    UsbdPipeTypeInterrupt,
}}

pub type USBD_STATUS = ::LONG;

STRUCT!{struct USBD_ISO_PACKET_DESCRIPTOR {
	Offset: ::ULONG,
	Length: ::ULONG,
	Status: ::USBD_STATUS,
}}
pub type PUSBD_ISO_PACKET_DESCRIPTOR = *mut USBD_ISO_PACKET_DESCRIPTOR;