peripherals  1.4.2
RoadNarrows Robotics Hardware Peripherals Package

Macros

#define MICROSOFT_VENDOR_ID   0x045e
 
#define XBOX360_WIRED_PROD_ID   0x028e
 
#define XBOX360_TETHERED_PROD_ID   0x028f
 
#define XBOX360_WIRELESS_PROD_ID   0x0719
 
#define XBOX360_WIRELESS_WIN_PROD_ID   0x0291
 
#define XBOX360_NO_PROD_ID   0x0000
 
#define XBOX360_READ_ENDPOINT   0x81
 
#define XBOX360_WRITE_ENDPOINT   0x01
 
#define XBOX360_NUM_OF_INTERFACES   4
 
#define XBOX_LIBUSB_DEBUG_OFF   0
 libusb logging off More...
 
#define XBOX_LIBUSB_DEBUG_ERROR   1
 log libusb errors More...
 
#define XBOX_LIBUSB_DEBUG_WARN   2
 log libusb warnings and errors More...
 
#define XBOX_LIBUSB_DEBUG_INFO   3
 log libusb info, warnings and errors More...
 
#define XBOX_LIBUSB_DEBUG_DFT   XBOX_LIBUSB_DEBUG_OFF
 default libusb logging More...
 

Detailed Description

Xbox USB protocol interface.

Macro Definition Documentation

#define MICROSOFT_VENDOR_ID   0x045e

USB Microsoft Vendor ID

Definition at line 216 of file HIDXbox360.h.

Referenced by rnr::HIDXbox360::openXbox().

#define XBOX360_NO_PROD_ID   0x0000

no product id

Definition at line 229 of file HIDXbox360.h.

Referenced by rnr::HIDXbox360::close(), rnr::HIDXbox360::HIDXbox360(), and rnr::HIDXbox360::openXbox().

#define XBOX360_NUM_OF_INTERFACES   4

USB typical number of interfaces for a microsoft device intended for Xbox

Definition at line 238 of file HIDXbox360.h.

Referenced by rnr::HIDXbox360::claimXboxInterfaces(), and rnr::HIDXbox360::close().

#define XBOX360_READ_ENDPOINT   0x81

USB endpoint where current controller state is read from

Definition at line 232 of file HIDXbox360.h.

Referenced by rnr::HIDXbox360::initTransferPkts().

#define XBOX360_TETHERED_PROD_ID   0x028f

USB product ID for wireless Xbox controoler tethered via a charging cable

Definition at line 222 of file HIDXbox360.h.

Referenced by rnr::HIDXbox360::claimXboxInterfaces(), and rnr::HIDXbox360::openXbox().

#define XBOX360_WRITE_ENDPOINT   0x01

USB endpoint where controller state is modified

Definition at line 235 of file HIDXbox360.h.

Referenced by rnr::HIDXbox360::initTransferPkts().

#define XBOX_LIBUSB_DEBUG_DFT   XBOX_LIBUSB_DEBUG_OFF

default libusb logging

Definition at line 245 of file HIDXbox360.h.

#define XBOX_LIBUSB_DEBUG_ERROR   1

log libusb errors

Definition at line 242 of file HIDXbox360.h.

#define XBOX_LIBUSB_DEBUG_INFO   3

log libusb info, warnings and errors

Definition at line 244 of file HIDXbox360.h.

#define XBOX_LIBUSB_DEBUG_OFF   0

libusb logging off

USB debug level for libusb (values: 0:off, 1:error, 2:warning, 3:info)

Definition at line 241 of file HIDXbox360.h.

#define XBOX_LIBUSB_DEBUG_WARN   2

log libusb warnings and errors

Definition at line 243 of file HIDXbox360.h.

Referenced by testXboxInput(), testXboxLED(), testXboxRumble(), and testXboxSanity().