| Tipro API Communicate with Tipro devices

TiproHidApi_IntFn.h
1 // TiproHidApi_IntFn.h :
3
4 #if !defined(AFX_TIPROHID_INTFN_H__D7FE7D00_4776_473B_B5C3_499AB033B3A3__INCLUDED_)
5 #define AFX_TIPROHID_INTFN_H__D7FE7D00_4776_473B_B5C3_499AB033B3A3__INCLUDED_
6
7 #include <string.h>
8 #include "TiproHidDevice.h" //20190715
9
10 // internaly used functions
11 int FindHIDByVID(USHORT usVID /*20190710, CTiproHid *pFoundHIDs=NULL*/);
12 // support functions (not exported)
13 int DetectTiproDevice(int nIx/*20190710, CTiproHid *hidTiproDevice*/);
14 int SendCommandToConnectedDevice(TiproHidDevice *device, const unsigned char* ucData, const unsigned int nLen);
15 //int SendCommandToConnectedDeviceEx(const unsigned char* ucData, const unsigned int nLen);
16 int SendCommandToConnectedDeviceEx(TiproHidDevice *device, const UCHAR nCommand, const UCHAR nDest, const UCHAR *pParameters, const int nLen, UCHAR *pResponse, int *nResponseLen);
17 int SendHandsetStatusToSystem (TiproHidDevice *device, int nAddress);
18 int ETErrCode2APIErr(/*20190710 CTiproHid::ETErrCode ETErrCode*/);
19
20 #if 0 //FW_LEVEL_3
21 int SendLevel3Data(const UCHAR *pData, const int nLen);
22 #endif
23
24 //int DetectTiproTelDevice(int nIx, CTiproTelephonyHid *hidTiproDevice);
25 int FindHIDTelByVID(USHORT usVID, int *pFoundHIDs /*20190710 =NULL*/);
26 // search through global vector
27 bool IsDeviceInVector (/*20190710 CTiproTelephonyHid *hidTiproDevice*/);
28
29 //tomaz20170404 it selects device from array of previously detected devices by DetectTiproDevices
30 int SelectTiproDevice(int nIx/*20190710, CTiproHid *hidTiproDevice*/);
31
32
33 #endif
TiproHidDevice.h
Represents Tipro device.
TiproHidDevice
Definition: TiproHidDevice.h:29