From 09f2a8079f31c12f22131e6c2a56a61690f140d0 Mon Sep 17 00:00:00 2001 From: David Madison Date: Sat, 9 Mar 2019 16:22:49 -0500 Subject: 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 --- cores/arduino/xinput/USB_XInput_Descriptors.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'cores') diff --git a/cores/arduino/xinput/USB_XInput_Descriptors.cpp b/cores/arduino/xinput/USB_XInput_Descriptors.cpp index ef9b9d8..f57c700 100644 --- a/cores/arduino/xinput/USB_XInput_Descriptors.cpp +++ b/cores/arduino/xinput/USB_XInput_Descriptors.cpp @@ -79,7 +79,7 @@ const u8 USB_ConfigDescriptor[] = { 0x08, // bMaxDataSize 0x00, 0x00, // ??? - // Endpoint 1: Control Data Out + // Endpoint 1: Control Surface Send 0x07, // bLength 0x05, // bDescriptorType (ENDPOINT) 0x81, // bEndpointAddress (IN, 1) @@ -87,7 +87,7 @@ const u8 USB_ConfigDescriptor[] = { 0x20, 0x00, // wMaxPacketSize 0x04, // bInterval - // Endpoint 1: Control Data In + // Endpoint 1: Control Surface Receive 0x07, // bLength 0x05, // bDescriptorType (ENDPOINT) 0x02, // bEndpointAddress (OUT, 2) @@ -124,7 +124,7 @@ const u8 USB_ConfigDescriptor[] = { 0x00, // bMaxDataSize 0x00, 0x00, 0x00, 0x00, 0x00, // ??? - // Endpoint 2: Microphone Data Out + // Endpoint 2: Microphone Data Send 0x07, // bLength 0x05, // bDescriptorType (ENDPOINT) 0x83, // bEndpointAddress (IN, 3) @@ -132,7 +132,7 @@ const u8 USB_ConfigDescriptor[] = { 0x20, 0x00, // wMaxPacketSize 0x02, // bInterval - // Endpoint 2: Headset Audio In + // Endpoint 2: Headset Audio Receive 0x07, // bLength 0x05, // bDescriptorType (ENDPOINT) 0x04, // bEndpointAddress (OUT, 4) @@ -140,7 +140,7 @@ const u8 USB_ConfigDescriptor[] = { 0x20, 0x00, // wMaxPacketSize 0x04, // bInterval - // Endpoint 3: Unknown, Out + // Endpoint 3: Unknown, Send 0x07, // bLength 0x05, // bDescriptorType (ENDPOINT) 0x85, // bEndpointAddress (IN, 5) @@ -148,7 +148,7 @@ const u8 USB_ConfigDescriptor[] = { 0x20, 0x00, // wMaxPacketSize 0x40, // bInterval - // Endpoint 3: Unknown, In + // Endpoint 3: Unknown, Receive 0x07, // bLength 0x05, // bDescriptorType (ENDPOINT) 0x05, // bEndpointAddress (OUT, 5) @@ -176,7 +176,7 @@ const u8 USB_ConfigDescriptor[] = { 0x07, // bMaxDataSize 0x00, // ??? - // Endpoint 4: Unknown, Out + // Endpoint 4: Unknown, Send 0x07, // bLength 0x05, // bDescriptorType (ENDPOINT) 0x86, // bEndpointAddress (IN, 6) -- cgit v1.2.3-18-g5258