Welcome to mirror list, hosted at ThFree Co, Russian Federation.

libusb_control_setup.cs « Internal « Transfer « MonoLibUsb « LibWinUsb - github.com/ClusterM/clovershell-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1066eb3f6ed8ff052ed449d434a147dc10a70785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System.Runtime.InteropServices;
using LibUsbDotNet.Main;

namespace MonoLibUsb.Transfer.Internal
{
    [StructLayout(LayoutKind.Sequential)]
    internal class libusb_control_setup
    {

        /** Request type. Bits 0:4 determine recipient, see
         * \ref libusb_request_recipient. Bits 5:6 determine type, see
         * \ref libusb_request_type. Bit 7 determines data transfer direction, see
         * \ref libusb_endpoint_direction.
         */
        public readonly byte bmRequestType;

        /** Request. If the type bits of bmRequestType are equal to
         * \ref libusb_request_type::LIBUSB_REQUEST_TYPE_STANDARD
         * "LIBUSB_REQUEST_TYPE_STANDARD" then this field refers to
         * \ref libusb_standard_request. For other cases, use of this field is
         * application-specific. */
        public readonly byte bRequest;

        /** Value. Varies according to request */
        public readonly short wValue;

        /** Index. Varies according to request, typically used to pass an index
         * or offset */
        public readonly short wIndex;

        /** Number of bytes to transfer */
        public readonly short wLength;

    }
}