USB_Host_Shield_2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
XBOXUSB Class Reference

#include <XBOXUSB.h>

Inheritance diagram for XBOXUSB:
Inheritance graph
[legend]
Collaboration diagram for XBOXUSB:
Collaboration graph
[legend]

Public Member Functions

 XBOXUSB (USB *pUsb)
 
virtual uint8_t Init (uint8_t parent, uint8_t port, bool lowspeed)
 
virtual uint8_t Release ()
 
virtual uint8_t Poll ()
 
virtual uint8_t GetAddress ()
 
virtual bool isReady ()
 
uint8_t getButton (Button b)
 
int16_t getAnalogHat (AnalogHat a)
 
void setAllOff ()
 
void setRumbleOff ()
 
void setRumbleOn (uint8_t lValue, uint8_t rValue)
 
void setLedOff ()
 
void setLedOn (LED l)
 
void setLedBlink (LED l)
 
void setLedMode (LEDMode lm)
 

Public Attributes

bool Xbox360Connected
 
bool buttonChanged
 
bool buttonPressed
 
bool buttonReleased
 

Protected Attributes

USBpUsb
 
uint8_t bAddress
 
EpInfo epInfo [XBOX_MAX_ENDPOINTS]
 

Constructor & Destructor Documentation

XBOXUSB::XBOXUSB ( USB pUsb)

Member Function Documentation

virtual uint8_t XBOXUSB::GetAddress ( )
inlinevirtual

Implements USBDeviceConfig.

int16_t XBOXUSB::getAnalogHat ( AnalogHat  a)
uint8_t XBOXUSB::getButton ( Button  b)
uint8_t XBOXUSB::Init ( uint8_t  parent,
uint8_t  port,
bool  lowspeed 
)
virtual

Implements USBDeviceConfig.

virtual bool XBOXUSB::isReady ( )
inlinevirtual
uint8_t XBOXUSB::Poll ( )
virtual

Implements USBDeviceConfig.

uint8_t XBOXUSB::Release ( )
virtual

Implements USBDeviceConfig.

void XBOXUSB::setAllOff ( )
inline
void XBOXUSB::setLedBlink ( LED  l)
void XBOXUSB::setLedMode ( LEDMode  lm)
void XBOXUSB::setLedOff ( )
void XBOXUSB::setLedOn ( LED  l)
void XBOXUSB::setRumbleOff ( )
inline
void XBOXUSB::setRumbleOn ( uint8_t  lValue,
uint8_t  rValue 
)

Member Data Documentation

uint8_t XBOXUSB::bAddress
protected
bool XBOXUSB::buttonChanged
bool XBOXUSB::buttonPressed
bool XBOXUSB::buttonReleased
EpInfo XBOXUSB::epInfo[XBOX_MAX_ENDPOINTS]
protected
USB* XBOXUSB::pUsb
protected
bool XBOXUSB::Xbox360Connected

The documentation for this class was generated from the following files: