Neonode zForce(TM) SDK
Public Attributes | List of all members
HidPipeTransportEnumeration Struct Reference

Struct containing the HidPipeTransportEnumeration information. More...

#include <HidPipeTransportEnumeration.h>

Collaboration diagram for HidPipeTransportEnumeration:
Collaboration graph
[legend]

Public Attributes

zForcezForce
 Pointer to zForce.
 
QueueQueue
 Pointer to queue.
 
void * Private
 Pointer to private data structure.
 
void(* Destructor )(HidPipeTransportEnumeration *self)
 Destroys the HidPipeTransportEnumeration. More...
 
bool(* AddHidPipeTransport )(HidPipeTransportEnumeration *self, HidPipeTransport *transport)
 Adds a HidPipeTransport to the internal list. On failure, errno is set. More...
 
struct hid_device_info *(* Enumerate )(HidPipeTransportEnumeration *self, HidPipeTransport *transport, uint16_t vid, uint16_t pid)
 Calls hid_enumerate in the HidApi. On failure, errno is set. More...
 
bool(* IsTransportListEmpty )(HidPipeTransportEnumeration *self)
 Checks if there is anything in the internal list of HidPipeTransports. More...
 

Detailed Description

Struct containing the HidPipeTransportEnumeration information.

HidPipeTransportEnumeration is a singleton class intended to be run in its own thread. Singleton class.

Member Data Documentation

bool( * HidPipeTransportEnumeration::AddHidPipeTransport) (HidPipeTransportEnumeration *self, HidPipeTransport *transport)

Adds a HidPipeTransport to the internal list. On failure, errno is set.

  • EOUTOFMEMORY - Memory allocation failed.
    Parameters
    selfPointer to the struct itself.
    transportPointer to the HidPipeTransport to add.
    Returns
    Returns a boolean value.
void( * HidPipeTransportEnumeration::Destructor) (HidPipeTransportEnumeration *self)

Destroys the HidPipeTransportEnumeration.

Parameters
selfPointer to the struct itself.
Returns
No return value.
struct hid_device_info*( * HidPipeTransportEnumeration::Enumerate) (HidPipeTransportEnumeration *self, HidPipeTransport *transport, uint16_t vid, uint16_t pid)

Calls hid_enumerate in the HidApi. On failure, errno is set.

  • EOUTOFMEMORY - Memory allocation failed.
  • EMUTEXNOTINITIALIZED - Mutex not initialized.
  • EMUTEXLOCKFAILED - Mutex lock failed.
  • EMUTEXUNLOCKFAILED - Mutex unlock failed.
    Parameters
    selfPointer to the struct itself.
    transportPointer to the HidPipeTransport.
    vidThe vendor id of the device to search for.
    pidThe product id of the device to search for.
    Returns
    Returns a pointer to a linked list of all the present devices with the matching vid and pid.
bool( * HidPipeTransportEnumeration::IsTransportListEmpty) (HidPipeTransportEnumeration *self)

Checks if there is anything in the internal list of HidPipeTransports.

Parameters
selfPointer to the struct itself.
Returns
Returns true if the list is empty.

The documentation for this struct was generated from the following file: