USB Host Shield 2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
HIDUniversal Class Reference

#include <hiduniversal.h>

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

Public Member Functions

 HIDUniversal (USB *p)
 
virtual bool SetReportParser (uint8_t id, HIDReportParser *prs)
 
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 ()
 
virtual void EndpointXtract (uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep)
 
- Public Member Functions inherited from HID
 HID (USB *pusb)
 
const USBGetUsb ()
 
uint8_t SetProtocol (uint8_t iface, uint8_t protocol)
 
uint8_t GetProtocol (uint8_t iface, uint8_t *dataptr)
 
uint8_t GetIdle (uint8_t iface, uint8_t reportID, uint8_t *dataptr)
 
uint8_t SetIdle (uint8_t iface, uint8_t reportID, uint8_t duration)
 
uint8_t GetReportDescr (uint16_t wIndex, USBReadParser *parser=NULL)
 
uint8_t GetHidDescr (uint8_t ep, uint16_t nbytes, uint8_t *dataptr)
 
uint8_t GetReport (uint8_t ep, uint8_t iface, uint8_t report_type, uint8_t report_id, uint16_t nbytes, uint8_t *dataptr)
 
uint8_t SetReport (uint8_t ep, uint8_t iface, uint8_t report_type, uint8_t report_id, uint16_t nbytes, uint8_t *dataptr)
 
- Public Member Functions inherited from USBDeviceConfig
virtual uint8_t ConfigureDevice (uint8_t parent, uint8_t port, bool lowspeed)
 
virtual void ResetHubPort (uint8_t port)
 
virtual boolean VIDPIDOK (uint16_t vid, uint16_t pid)
 
virtual boolean DEVCLASSOK (uint8_t klass)
 

Protected Member Functions

virtual HIDReportParserGetReportParser (uint8_t id)
 
virtual uint8_t OnInitSuccessful ()
 
virtual void ParseHIDData (HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
 
- Protected Member Functions inherited from HID
void PrintEndpointDescriptor (const USB_ENDPOINT_DESCRIPTOR *ep_ptr)
 
void PrintHidDescriptor (const USB_HID_DESCRIPTOR *pDesc)
 

Protected Attributes

bool bHasReportId
 
uint16_t PID
 
uint16_t VID
 
- Protected Attributes inherited from HID
USBpUsb
 
uint8_t bAddress
 

Additional Inherited Members

- Static Protected Attributes inherited from HID
static const uint8_t epInterruptInIndex = 1
 
static const uint8_t epInterruptOutIndex = 2
 
static const uint8_t maxHidInterfaces = 3
 
static const uint8_t maxEpPerInterface = 2
 
static const uint8_t totalEndpoints = (maxHidInterfaces * maxEpPerInterface + 1)
 

Detailed Description

Definition at line 7 of file hiduniversal.h.

Constructor & Destructor Documentation

HIDUniversal::HIDUniversal ( USB p)

Definition at line 3 of file hiduniversal.cpp.

Member Function Documentation

HIDReportParser * HIDUniversal::GetReportParser ( uint8_t  id)
protectedvirtual

Reimplemented from HID.

Definition at line 67 of file hiduniversal.cpp.

virtual uint8_t HIDUniversal::OnInitSuccessful ( )
inlineprotectedvirtual

Reimplemented in PS4USB.

Definition at line 59 of file hiduniversal.h.

virtual void HIDUniversal::ParseHIDData ( HID hid,
bool  is_rpt_id,
uint8_t  len,
uint8_t *  buf 
)
inlineprotectedvirtual

Reimplemented in PS4USB.

Definition at line 63 of file hiduniversal.h.

bool HIDUniversal::SetReportParser ( uint8_t  id,
HIDReportParser prs 
)
virtual

Reimplemented from HID.

Definition at line 56 of file hiduniversal.cpp.

uint8_t HIDUniversal::Init ( uint8_t  parent,
uint8_t  port,
bool  lowspeed 
)
virtual

Reimplemented from USBDeviceConfig.

Definition at line 78 of file hiduniversal.cpp.

uint8_t HIDUniversal::Release ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 323 of file hiduniversal.cpp.

uint8_t HIDUniversal::Poll ( )
virtual

Reimplemented from USBDeviceConfig.

Definition at line 350 of file hiduniversal.cpp.

virtual uint8_t HIDUniversal::GetAddress ( )
inlinevirtual

Reimplemented from USBDeviceConfig.

Definition at line 78 of file hiduniversal.h.

virtual bool HIDUniversal::isReady ( )
inlinevirtual

Definition at line 82 of file hiduniversal.h.

void HIDUniversal::EndpointXtract ( uint8_t  conf,
uint8_t  iface,
uint8_t  alt,
uint8_t  proto,
const USB_ENDPOINT_DESCRIPTOR ep 
)
virtual

Implements UsbConfigXtracter.

Definition at line 277 of file hiduniversal.cpp.

Member Data Documentation

bool HIDUniversal::bHasReportId
protected

Definition at line 52 of file hiduniversal.h.

uint16_t HIDUniversal::PID
protected

Definition at line 54 of file hiduniversal.h.

uint16_t HIDUniversal::VID
protected

Definition at line 54 of file hiduniversal.h.


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