libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
usb.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include<libtransistor/cpp/types.hpp>
10 
11 namespace trn {
12 namespace service {
13 namespace usb {
14 
15 enum class DescriptorType {
16  INTERFACE = 0x4,
17  ENDPOINT = 0x5,
18 };
19 
20 enum class EndpointDirection {
21  OUT = 0x00,
22  IN = 0x80,
23 };
24 
25 enum class TransferType {
26  CONTROL = 0x0,
27  ISOCHRONOUS = 0x1,
28  BULK = 0x2,
29  INTERRUPT = 0x3,
30 };
31 
32 }
33 }
34 }
USB Services.