1 // Copyright 2019 The Chromium OS Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 mod descriptor; 6 mod device; 7 mod error; 8 mod types; 9 10 pub use self::descriptor::{ 11 parse_usbfs_descriptors, ConfigDescriptorTree, DeviceDescriptorTree, InterfaceDescriptorTree, 12 }; 13 pub use self::device::{Device, Transfer, TransferStatus}; 14 pub use self::error::{Error, Result}; 15 pub use self::types::{ 16 control_request_type, ConfigDescriptor, ControlRequestDataPhaseTransferDirection, 17 ControlRequestRecipient, ControlRequestType, DeviceDescriptor, EndpointDescriptor, 18 EndpointDirection, EndpointType, InterfaceDescriptor, StandardControlRequest, UsbRequestSetup, 19 ENDPOINT_DIRECTION_OFFSET, 20 }; 21