diff options
Diffstat (limited to 'LibWinUsb/MonoLibUsb/Transfer/Internal/libusb_iso_packet_descriptor.cs')
-rw-r--r-- | LibWinUsb/MonoLibUsb/Transfer/Internal/libusb_iso_packet_descriptor.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/LibWinUsb/MonoLibUsb/Transfer/Internal/libusb_iso_packet_descriptor.cs b/LibWinUsb/MonoLibUsb/Transfer/Internal/libusb_iso_packet_descriptor.cs new file mode 100644 index 00000000..58a12554 --- /dev/null +++ b/LibWinUsb/MonoLibUsb/Transfer/Internal/libusb_iso_packet_descriptor.cs @@ -0,0 +1,29 @@ +using System.Runtime.InteropServices;
+
+namespace MonoLibUsb.Transfer.Internal
+{
+ /// <remarks>
+ /// This class is never instantiated in .NET. Instead it is used as a template by the <see cref="MonoUsbIsoPacket"/> class.
+ /// </remarks>
+ [StructLayout(LayoutKind.Sequential, Pack = MonoUsbApi.LIBUSB_PACK)]
+ internal class libusb_iso_packet_descriptor
+ {
+ /// <summary>
+ /// Length of data to request in this packet
+ /// </summary>
+ uint length;
+
+ /// <summary>
+ /// Amount of data that was actually transferred
+ /// </summary>
+ uint actual_length;
+
+ /// <summary>
+ /// Status code for this packet
+ /// </summary>
+ MonoUsbTansferStatus status;
+
+ private libusb_iso_packet_descriptor() { }
+
+ }
+}
\ No newline at end of file |