Skip to content

Commit 09f2a80

Browse files
committed
Change endpoint comments to use send/recv
Much better than in/out, since using the controller's perspective meant the inverted "in/out" was confusing
1 parent 2392695 commit 09f2a80

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cores/arduino/xinput/USB_XInput_Descriptors.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ const u8 USB_ConfigDescriptor[] = {
7979
0x08, // bMaxDataSize
8080
0x00, 0x00, // ???
8181

82-
// Endpoint 1: Control Data Out
82+
// Endpoint 1: Control Surface Send
8383
0x07, // bLength
8484
0x05, // bDescriptorType (ENDPOINT)
8585
0x81, // bEndpointAddress (IN, 1)
8686
0x03, // bmAttributes
8787
0x20, 0x00, // wMaxPacketSize
8888
0x04, // bInterval
8989

90-
// Endpoint 1: Control Data In
90+
// Endpoint 1: Control Surface Receive
9191
0x07, // bLength
9292
0x05, // bDescriptorType (ENDPOINT)
9393
0x02, // bEndpointAddress (OUT, 2)
@@ -124,31 +124,31 @@ const u8 USB_ConfigDescriptor[] = {
124124
0x00, // bMaxDataSize
125125
0x00, 0x00, 0x00, 0x00, 0x00, // ???
126126

127-
// Endpoint 2: Microphone Data Out
127+
// Endpoint 2: Microphone Data Send
128128
0x07, // bLength
129129
0x05, // bDescriptorType (ENDPOINT)
130130
0x83, // bEndpointAddress (IN, 3)
131131
0x03, // bmAttributes
132132
0x20, 0x00, // wMaxPacketSize
133133
0x02, // bInterval
134134

135-
// Endpoint 2: Headset Audio In
135+
// Endpoint 2: Headset Audio Receive
136136
0x07, // bLength
137137
0x05, // bDescriptorType (ENDPOINT)
138138
0x04, // bEndpointAddress (OUT, 4)
139139
0x03, // bmAttributes
140140
0x20, 0x00, // wMaxPacketSize
141141
0x04, // bInterval
142142

143-
// Endpoint 3: Unknown, Out
143+
// Endpoint 3: Unknown, Send
144144
0x07, // bLength
145145
0x05, // bDescriptorType (ENDPOINT)
146146
0x85, // bEndpointAddress (IN, 5)
147147
0x03, // bmAttributes
148148
0x20, 0x00, // wMaxPacketSize
149149
0x40, // bInterval
150150

151-
// Endpoint 3: Unknown, In
151+
// Endpoint 3: Unknown, Receive
152152
0x07, // bLength
153153
0x05, // bDescriptorType (ENDPOINT)
154154
0x05, // bEndpointAddress (OUT, 5)
@@ -176,7 +176,7 @@ const u8 USB_ConfigDescriptor[] = {
176176
0x07, // bMaxDataSize
177177
0x00, // ???
178178

179-
// Endpoint 4: Unknown, Out
179+
// Endpoint 4: Unknown, Send
180180
0x07, // bLength
181181
0x05, // bDescriptorType (ENDPOINT)
182182
0x86, // bEndpointAddress (IN, 6)

0 commit comments

Comments
 (0)