SDL
2.0
|
Public Member Functions | |
CHIDDevice (int nDeviceID, hid_device_info *pInfo) | |
~CHIDDevice () | |
int | IncrementRefCount () |
int | DecrementRefCount () |
int | GetId () |
const hid_device_info * | GetDeviceInfo () |
hid_device * | GetDevice () |
void | ExceptionCheck (JNIEnv *env, const char *pszMethodName) |
bool | BOpen () |
void | SetOpenPending () |
void | SetOpenResult (bool bResult) |
void | ProcessInput (const uint8_t *pBuf, size_t nBufSize) |
int | GetInput (unsigned char *data, size_t length) |
int | SendOutputReport (const unsigned char *pData, size_t nDataLen) |
int | SendFeatureReport (const unsigned char *pData, size_t nDataLen) |
void | ProcessFeatureReport (const uint8_t *pBuf, size_t nBufSize) |
int | GetFeatureReport (unsigned char *pData, size_t nDataLen) |
void | Close (bool bDeleteDevice) |
Data Fields | |
hid_device_ref< CHIDDevice > | next |
Private Attributes | |
pthread_mutex_t | m_refCountLock = PTHREAD_MUTEX_INITIALIZER |
int | m_nRefCount = 0 |
int | m_nId = 0 |
hid_device_info * | m_pInfo = nullptr |
hid_device * | m_pDevice = nullptr |
bool | m_bIsBLESteamController = false |
pthread_mutex_t | m_dataLock = PTHREAD_MUTEX_INITIALIZER |
hid_buffer_pool | m_vecData |
pthread_mutex_t | m_cvLock = PTHREAD_MUTEX_INITIALIZER |
pthread_cond_t | m_cv = PTHREAD_COND_INITIALIZER |
bool | m_bIsWaitingForOpen = false |
bool | m_bOpenResult = false |
bool | m_bIsWaitingForFeatureReport = false |
int | m_nFeatureReportError = 0 |
hid_buffer | m_featureReport |
|
inline |
Definition at line 351 of file hid.cpp.
References hid_device::m_nId, hid_device_info::product_id, and hid_device_info::vendor_id.
Referenced by HIDDeviceConnected().
|
inline |
|
inline |
Definition at line 432 of file hid.cpp.
References g_HIDDeviceManagerCallbackHandler, g_JVM, g_midHIDDeviceManagerOpen, g_ThreadKey, get_timespec_ms(), LOGD, LOGV, hid_device::m_nId, and NULL.
Referenced by hid_open_path().
|
inline |
Definition at line 653 of file hid.cpp.
References g_HIDDeviceManagerCallbackHandler, g_JVM, g_midHIDDeviceManagerClose, g_ThreadKey, hid_device::m_nId, and NULL.
Referenced by hid_close(), and HIDDeviceDisconnected().
|
inline |
|
inline |
Definition at line 400 of file hid.cpp.
Referenced by hid_open_path().
|
inline |
Definition at line 395 of file hid.cpp.
Referenced by hid_get_manufacturer_string(), hid_get_product_string(), and hid_get_serial_number_string().
|
inline |
Definition at line 583 of file hid.cpp.
References g_HIDDeviceManagerCallbackHandler, g_JVM, g_midHIDDeviceManagerGetFeatureReport, g_ThreadKey, get_timespec_ms(), LOGV, hid_device::m_nId, memcpy, NewByteArray(), and NULL.
Referenced by hid_get_feature_report().
|
inline |
|
inline |
Definition at line 509 of file hid.cpp.
References hid_buffer::data(), memcpy, and hid_buffer::size().
Referenced by hid_read_timeout().
Definition at line 570 of file hid.cpp.
Referenced by HIDDeviceFeatureReport().
Definition at line 497 of file hid.cpp.
Referenced by HIDDeviceInputReport().
|
inline |
Definition at line 556 of file hid.cpp.
References g_HIDDeviceManagerCallbackHandler, g_JVM, g_midHIDDeviceManagerSendFeatureReport, g_ThreadKey, hid_device::m_nId, NewByteArray(), and NULL.
Referenced by hid_send_feature_report().
|
inline |
Definition at line 541 of file hid.cpp.
References g_HIDDeviceManagerCallbackHandler, g_JVM, g_midHIDDeviceManagerSendOutputReport, g_ThreadKey, hid_device::m_nId, NewByteArray(), and NULL.
Referenced by hid_write().
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
hid_device_ref<CHIDDevice> CHIDDevice::next |
Definition at line 701 of file hid.cpp.
Referenced by FindDevice(), hid_enumerate(), hid_open_path(), HIDDeviceConnected(), and HIDDeviceDisconnected().