Struct containing the HidPipeTransportEnumeration information.
More...
#include <HidPipeTransportEnumeration.h>
Struct containing the HidPipeTransportEnumeration information.
HidPipeTransportEnumeration is a singleton class intended to be run in its own thread. Singleton class.
Adds a HidPipeTransport to the internal list. On failure, errno is set.
- EOUTOFMEMORY - Memory allocation failed.
- Parameters
-
self | Pointer to the struct itself. |
transport | Pointer to the HidPipeTransport to add. |
- Returns
- Returns a boolean value.
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
-
self | Pointer to the struct itself. |
transport | Pointer to the HidPipeTransport. |
vid | The vendor id of the device to search for. |
pid | The 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.
Checks if there is anything in the internal list of HidPipeTransports.
- Parameters
-
self | Pointer to the struct itself. |
- Returns
- Returns true if the list is empty.
The documentation for this struct was generated from the following file: