Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
OVR::Linux::HIDDevice Class Reference

#include <OVR_Linux_HIDDevice.h>

Inheritance diagram for OVR::Linux::HIDDevice:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool GetFeatureReport (UByte *data, UInt32 length)
 HIDDevice (HIDDeviceManager *manager)
 HIDDevice (HIDDeviceManager *manager, int device_handle)
bool HIDInitialize (const String &path)
void HIDShutdown ()
bool OnDeviceNotification (MessageType messageType, HIDDeviceDesc *device_info, bool *error)
void OnEvent (int i, int fd)
UInt64 OnTicks (UInt64 ticksMks)
virtual bool SetFeatureReport (UByte *data, UInt32 length)
virtual ~HIDDevice ()

Private Types

enum  { ReadBufferSize = 96 }

Private Member Functions

void closeDevice (bool wasUnplugged)
void closeDeviceOnIOError ()
bool initInfo ()
bool openDevice (const char *dev_path)
bool setupDevicePluggedInNotification ()

Private Attributes

HIDDeviceDesc DevDesc
int DeviceHandle
UInt16 FeatureReportBufferLength
HIDDeviceManagerHIDManager
bool InMinimalMode
UInt16 InputReportBufferLength
UInt16 OutputReportBufferLength
UByte ReadBuffer [ReadBufferSize]

Friends

class HIDDeviceManager

Detailed Description

Definition at line 29 of file OVR_Linux_HIDDevice.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
ReadBufferSize 

Definition at line 69 of file OVR_Linux_HIDDevice.h.


Constructor & Destructor Documentation

Definition at line 417 of file OVR_Linux_HIDDevice.cpp.

OVR::Linux::HIDDevice::HIDDevice ( HIDDeviceManager manager,
int  device_handle 
)

Definition at line 426 of file OVR_Linux_HIDDevice.cpp.

Reimplemented from OVR::HIDDevice.

Definition at line 432 of file OVR_Linux_HIDDevice.cpp.


Member Function Documentation

void OVR::Linux::HIDDevice::closeDevice ( bool  wasUnplugged) [private]

Definition at line 593 of file OVR_Linux_HIDDevice.cpp.

Definition at line 607 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDevice::GetFeatureReport ( UByte data,
UInt32  length 
) [virtual]

Implements OVR::HIDDevice.

Definition at line 634 of file OVR_Linux_HIDDevice.cpp.

Definition at line 441 of file OVR_Linux_HIDDevice.cpp.

Definition at line 578 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDevice::initInfo ( ) [private]

Definition at line 463 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDevice::OnDeviceNotification ( MessageType  messageType,
HIDDeviceDesc device_info,
bool *  error 
)

Definition at line 674 of file OVR_Linux_HIDDevice.cpp.

void OVR::Linux::HIDDevice::OnEvent ( int  i,
int  fd 
) [virtual]
UInt64 OVR::Linux::HIDDevice::OnTicks ( UInt64  ticksMks) [virtual]

Reimplemented from OVR::Linux::DeviceManagerThread::Notifier.

Definition at line 644 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDevice::openDevice ( const char *  dev_path) [private]

Definition at line 537 of file OVR_Linux_HIDDevice.cpp.

bool OVR::Linux::HIDDevice::SetFeatureReport ( UByte data,
UInt32  length 
) [virtual]

Implements OVR::HIDDevice.

Definition at line 614 of file OVR_Linux_HIDDevice.cpp.


Friends And Related Function Documentation

friend class HIDDeviceManager [friend]

Definition at line 32 of file OVR_Linux_HIDDevice.h.


Member Data Documentation

Definition at line 67 of file OVR_Linux_HIDDevice.h.

Definition at line 66 of file OVR_Linux_HIDDevice.h.

Definition at line 74 of file OVR_Linux_HIDDevice.h.

Definition at line 65 of file OVR_Linux_HIDDevice.h.

Definition at line 64 of file OVR_Linux_HIDDevice.h.

Definition at line 72 of file OVR_Linux_HIDDevice.h.

Definition at line 73 of file OVR_Linux_HIDDevice.h.

Definition at line 70 of file OVR_Linux_HIDDevice.h.


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


oculus_sdk
Author(s):
autogenerated on Mon Oct 6 2014 03:01:21