1 // Copyright 2014 The Chromium 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.
5 #include "device/usb/usb_descriptors.h"
9 UsbEndpointDescriptor::UsbEndpointDescriptor()
11 direction(USB_DIRECTION_INBOUND
),
12 maximum_packet_size(0),
13 synchronization_type(USB_SYNCHRONIZATION_NONE
),
14 transfer_type(USB_TRANSFER_CONTROL
),
15 usage_type(USB_USAGE_DATA
),
19 UsbEndpointDescriptor::~UsbEndpointDescriptor() {
22 UsbInterfaceDescriptor::UsbInterfaceDescriptor()
23 : interface_number(0),
26 interface_subclass(0),
27 interface_protocol(0) {
30 UsbInterfaceDescriptor::~UsbInterfaceDescriptor() {
33 UsbConfigDescriptor::UsbConfigDescriptor()
34 : configuration_value(0),
40 UsbConfigDescriptor::~UsbConfigDescriptor() {