summary refs log blame commit diff
path: root/usb_util/src/lib.rs
blob: d793f62901af992ad3085c39bc23a87b23d7c97d (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                               


                                                                         



               
 


                                                                                                 







                                                                                                  
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

mod descriptor;
mod device;
mod error;
mod types;

pub use self::descriptor::{
    parse_usbfs_descriptors, ConfigDescriptorTree, DeviceDescriptorTree, InterfaceDescriptorTree,
};
pub use self::device::{Device, Transfer, TransferStatus};
pub use self::error::{Error, Result};
pub use self::types::{
    control_request_type, ConfigDescriptor, ControlRequestDataPhaseTransferDirection,
    ControlRequestRecipient, ControlRequestType, DeviceDescriptor, EndpointDescriptor,
    EndpointDirection, EndpointType, InterfaceDescriptor, StandardControlRequest, UsbRequestSetup,
    ENDPOINT_DIRECTION_OFFSET,
};