![]() |
Tipro API
Communicate with Tipro devices
|
Go to the source code of this file.
Functions | |
| int | TiproTelephony_DetectDevices () |
| Scans all USB ports and updates the list of connected telephony devices. This function should be called before using other telephony commands or when new device is connected to the system. More... | |
| int | TiproTelephony_GetNumOfDetectedDevices () |
| Returns number of connected telephony devices. More... | |
| int | TiproTelephony_RegisterCallback (USHORT hidIx, tfnCallback fnKeyCallback, tfnThreadStatus fnKeyStatusCallback) |
| Register callback function for returning pressed/released keys and status of the thread. More... | |
| int | TiproTelephony_Stop (const USHORT nLocalIx) |
| Stops reporting keys of telephony device. More... | |
| int | TiproTelephony_StopAll () |
| Stops reporting keys of all telephony devices. More... | |
| int | TiproTelephony_GetDevicePath (USHORT hidIx, PVOID pString, ULONG lBufferLen) |
| Returns telephony device path that can be used to access the device directly. More... | |
| int | TiproTelephony_GetDeviceProductString (USHORT hidIx, PVOID pString, ULONG lBufferLen) |
| Returns telephony device product string. More... | |
| int | TiproTelephony_GetDeviceVidPid (USHORT hidIx, USHORT *nVID, USHORT *nPID) |
| Returns telephony device vendor ID and product ID. More... | |
| int | TiproTelephony_GetDeviceManufacturerString (USHORT hidIx, PVOID pString, ULONG lBufferLen) |
| Returns telephony device manufacturer string. More... | |
TiproTelephony
This file includes functions for communication with Tipro HID telephony devices.
You can recive HID telephony events - key presses and releases - by defining a callback function.
Tipro
Copyright 2021
| int TiproTelephony_DetectDevices | ( | ) |
Scans all USB ports and updates the list of connected telephony devices. This function should be called before using other telephony commands or when new device is connected to the system.
| int TiproTelephony_GetDeviceManufacturerString | ( | USHORT | hidIx, |
| PVOID | pString, | ||
| ULONG | lBufferLen | ||
| ) |
Returns telephony device manufacturer string.
| [in] | hidIx | Telephony device index |
| [out] | pString | Pointer to user defined buffer (wchar_t *) where the string will be returned to |
| [in] | lBufferLen | Length of a supplied buffer |
| int TiproTelephony_GetDevicePath | ( | USHORT | hidIx, |
| PVOID | pString, | ||
| ULONG | lBufferLen | ||
| ) |
Returns telephony device path that can be used to access the device directly.
| [in] | hidIx | Telephony device index |
| [out] | pString | Pointer to user defined buffer (char *) where the path will be returned to |
| [in] | lBufferLen | Length of a supplied buffer |
| int TiproTelephony_GetDeviceProductString | ( | USHORT | hidIx, |
| PVOID | pString, | ||
| ULONG | lBufferLen | ||
| ) |
Returns telephony device product string.
| [in] | hidIx | Telephony device index |
| [out] | pString | Pointer to user defined buffer (wchar_t *) where the string will be returned to |
| [in] | lBufferLen | Length of a supplied buffer |
| int TiproTelephony_GetDeviceVidPid | ( | USHORT | hidIx, |
| USHORT * | nVID, | ||
| USHORT * | nPID | ||
| ) |
Returns telephony device vendor ID and product ID.
| [in] | hidIx | Telephony device index |
| [out] | nVID | Vendor ID number |
| [out] | nPID | Product ID number |
| int TiproTelephony_GetNumOfDetectedDevices | ( | ) |
Returns number of connected telephony devices.
| int TiproTelephony_RegisterCallback | ( | USHORT | hidIx, |
| tfnCallback | fnKeyCallback, | ||
| tfnThreadStatus | fnKeyStatusCallback | ||
| ) |
Register callback function for returning pressed/released keys and status of the thread.
| hidIx | Telephony device index |
| fnKeyCallback | Key callback function
|
| fnKeyStatusCallback | Status callback function
|
| int TiproTelephony_Stop | ( | const USHORT | nLocalIx | ) |
Stops reporting keys of telephony device.
| [in] | hidIx | Telephony device index |
| int TiproTelephony_StopAll | ( | ) |
Stops reporting keys of all telephony devices.
1.8.13