1 // 2 // Copyright (c) 2010-2019 Antmicro 3 // 4 // This file is licensed under the MIT License. 5 // Full license text is available in 'licenses/MIT.txt'. 6 // 7 8 using Antmicro.Renode.Utilities.Packets; 9 10 namespace Antmicro.Renode.Extensions.Utilities.USBIP 11 { 12 public struct InterfaceDescriptor 13 { 14 [PacketField] 15 public byte InterfaceClass; 16 [PacketField] 17 public byte InterfaceSubClass; 18 [PacketField] 19 public byte InterfaceProtocol; 20 [PacketField] 21 public byte Padding; 22 ToStringAntmicro.Renode.Extensions.Utilities.USBIP.InterfaceDescriptor23 public override string ToString() 24 { 25 return $" InterfaceClass = {InterfaceClass}, InterfaceSubClass = {InterfaceSubClass}, InterfaceProtocol = {InterfaceProtocol}, Padding = {Padding}"; 26 } 27 } 28 } 29