26 #define EP_MAXPKTSIZE 32
29 #define XBOX_CONTROL_PIPE 0
30 #define XBOX_INPUT_PIPE 1
31 #define XBOX_OUTPUT_PIPE 2
34 #define XBOX_VID 0x045E
35 #define MADCATZ_VID 0x1BAD
36 #define JOYTECH_VID 0x162E
37 #define GAMESTOP_VID 0x0E6F
39 #define XBOX_WIRED_PID 0x028E
40 #define XBOX_WIRELESS_PID 0x028F
41 #define XBOX_WIRELESS_RECEIVER_PID 0x0719
42 #define XBOX_WIRELESS_RECEIVER_THIRD_PARTY_PID 0x0291
43 #define MADCATZ_WIRED_PID 0xF016
44 #define JOYTECH_WIRED_PID 0xBEEF
45 #define GAMESTOP_WIRED_PID 0x0401
46 #define AFTERGLOW_WIRED_PID 0x0213
48 #define XBOX_REPORT_BUFFER_SIZE 14
50 #define XBOX_MAX_ENDPOINTS 3
69 uint8_t
Init(uint8_t parent, uint8_t port,
bool lowspeed);
103 virtual bool VIDPIDOK(uint16_t vid, uint16_t pid) {
180 pFuncOnInit = funcOnInit;
202 void (*pFuncOnInit)(void);
207 uint32_t ButtonState;
208 uint32_t OldButtonState;
209 uint16_t ButtonClickState;
211 uint16_t controllerStatus;
223 void XboxCommand(uint8_t* data, uint16_t nbytes);
#define JOYTECH_WIRED_PID
#define GAMESTOP_WIRED_PID
#define MADCATZ_WIRED_PID
#define AFTERGLOW_WIRED_PID
#define XBOX_MAX_ENDPOINTS
void setLedMode(LEDModeEnum lm)
uint8_t getButtonPress(ButtonEnum b)
void setLedRaw(uint8_t value)
void setLedBlink(LEDEnum l)
virtual uint8_t GetAddress()
void attachOnInit(void(*funcOnInit)(void))
bool getButtonClick(ButtonEnum b)
uint8_t Init(uint8_t parent, uint8_t port, bool lowspeed)
virtual bool VIDPIDOK(uint16_t vid, uint16_t pid)
int16_t getAnalogHat(AnalogHatEnum a)
EpInfo epInfo[XBOX_MAX_ENDPOINTS]
void setRumbleOn(uint8_t lValue, uint8_t rValue)