| Tipro API Communicate with Tipro devices

TiproTelephony.h
Go to the documentation of this file.
1
17 #ifndef _TIPRO_TIPROHIDAPI_TIPROTELEPHONY_H_
18 #define _TIPRO_TIPROHIDAPI_TIPROTELEPHONY_H_
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 typedef unsigned short USHORT;
25 typedef void * PVOID;
26 typedef unsigned long ULONG;
27
28 typedef int (*tfnCallback)(USHORT, USHORT, USHORT, USHORT, bool);
29 typedef int (*tfnThreadStatus)(USHORT, int, int, int);
30
36 int TiproTelephony_DetectDevices();
37
42 int TiproTelephony_GetNumOfDetectedDevices();
43
65 int TiproTelephony_RegisterCallback(USHORT hidIx, tfnCallback fnKeyCallback, tfnThreadStatus fnKeyStatusCallback);
66
72 int TiproTelephony_Stop(const USHORT nLocalIx);
73
78 int TiproTelephony_StopAll();
79
87 int TiproTelephony_GetDevicePath(USHORT hidIx, PVOID pString, ULONG lBufferLen);
88
96 int TiproTelephony_GetDeviceProductString(USHORT hidIx, PVOID pString, ULONG lBufferLen);
97
105 int TiproTelephony_GetDeviceVidPid(USHORT hidIx, USHORT *nVID, USHORT *nPID);
106
114 int TiproTelephony_GetDeviceManufacturerString(USHORT hidIx, PVOID pString, ULONG lBufferLen);
115
116 #ifdef __cplusplus
117 }
118 #endif
119
120 #endif
TiproTelephony_StopAll
int TiproTelephony_StopAll()
Stops reporting keys of all telephony devices.
TiproTelephony_DetectDevices
int TiproTelephony_DetectDevices()
Scans all USB ports and updates the list of connected telephony devices. This function should be call...
TiproTelephony_GetDeviceProductString
int TiproTelephony_GetDeviceProductString(USHORT hidIx, PVOID pString, ULONG lBufferLen)
Returns telephony device product string.
TiproTelephony_RegisterCallback
int TiproTelephony_RegisterCallback(USHORT hidIx, tfnCallback fnKeyCallback, tfnThreadStatus fnKeyStatusCallback)
Register callback function for returning pressed/released keys and status of the thread.
TiproTelephony_GetNumOfDetectedDevices
int TiproTelephony_GetNumOfDetectedDevices()
Returns number of connected telephony devices.
TiproTelephony_GetDeviceVidPid
int TiproTelephony_GetDeviceVidPid(USHORT hidIx, USHORT *nVID, USHORT *nPID)
Returns telephony device vendor ID and product ID.
TiproTelephony_Stop
int TiproTelephony_Stop(const USHORT nLocalIx)
Stops reporting keys of telephony device.
TiproTelephony_GetDeviceManufacturerString
int TiproTelephony_GetDeviceManufacturerString(USHORT hidIx, PVOID pString, ULONG lBufferLen)
Returns telephony device manufacturer string.
TiproTelephony_GetDevicePath
int TiproTelephony_GetDevicePath(USHORT hidIx, PVOID pString, ULONG lBufferLen)
Returns telephony device path that can be used to access the device directly.