9 #if ( defined( __STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L ) || ( defined( __GNUC__ ) && defined( __cplusplus ) )
11 #elif defined( _MSC_VER )
15 #define INCLUDED_BY_MATLAB
18 typedef INT8_T int8_t;
19 typedef INT16_T int16_t;
20 typedef INT32_T int32_t;
21 typedef INT64_T int64_t;
23 typedef UINT8_T uint8_t;
24 typedef UINT16_T uint16_t;
25 typedef UINT32_T uint32_t;
26 typedef UINT64_T uint64_t;
30 #if defined( _WIN32 ) || defined( _WIN64 ) || defined( __WIN32__ ) || defined( __TOS_WIN__ ) || defined( __WINDOWS__ )
31 #ifndef HAVE_WINDOWS_H
32 #define HAVE_WINDOWS_H
56 #define BMB_DISABLED 0
58 #define BMB_GATED_PERIODS 2
66 #define BM_DISABLED ( 1 << BMB_DISABLED )
67 #define BM_COUNT ( 1 << BMB_COUNT )
68 #define BM_GATED_PERIODS ( 1 << BMB_GATED_PERIODS )
75 #define BMM_NONE 0x0000000000000000ULL
76 #define BMM_ALL ( ( 1ULL << BMN_COUNT ) - 1 )
107 #define CK_DCV ( 1 << CKB_DCV )
108 #define CK_ACV ( 1 << CKB_ACV )
109 #define CK_DCA ( 1 << CKB_DCA )
110 #define CK_ACA ( 1 << CKB_ACA )
111 #define CK_OHM ( 1 << CKB_OHM )
118 #define CKM_V ( CK_DCV | CK_ACV )
119 #define CKM_A ( CK_DCA | CK_ACA )
120 #define CKM_OHM ( CK_OHM )
122 #define CKM_ASYMMETRICRANGE ( CKM_OHM )
123 #define CKM_SYMMETRICRANGE ( CKM_V | CKM_A )
150 #define CO_SAMPLE ( 1 << COB_SAMPLE )
151 #define CO_10MHZ ( 1 << COB_10MHZ )
169 #define CSB_EXTERNAL 0
170 #define CSB_INTERNAL 1
176 #define CS_EXTERNAL ( 1 << CSB_EXTERNAL )
177 #define CS_INTERNAL ( 1 << CSB_INTERNAL )
195 #define FMB_SIGNALFREQUENCY 0
196 #define FMB_SAMPLEFREQUENCY 1
202 #define FM_UNKNOWN 0x00000000
204 #define FM_SIGNALFREQUENCY ( 1 << FMB_SIGNALFREQUENCY )
205 #define FM_SAMPLEFREQUENCY ( 1 << FMB_SAMPLEFREQUENCY )
212 #define FMM_NONE 0x00000000
213 #define FMM_ALL ( ( 1 << FMN_COUNT ) - 1 )
241 #define MM_STREAM ( 1 << MMB_STREAM )
242 #define MM_BLOCK ( 1 << MMB_BLOCK )
261 #define STB_TRIANGLE 1
265 #define STB_ARBITRARY 5
273 #define ST_SINE ( 1 << STB_SINE )
274 #define ST_TRIANGLE ( 1 << STB_TRIANGLE )
275 #define ST_SQUARE ( 1 << STB_SQUARE )
276 #define ST_DC ( 1 << STB_DC )
277 #define ST_NOISE ( 1 << STB_NOISE )
278 #define ST_ARBITRARY ( 1 << STB_ARBITRARY )
285 #define STM_AMPLITUDE ( ST_SINE | ST_TRIANGLE | ST_SQUARE | ST_NOISE | ST_ARBITRARY )
286 #define STM_OFFSET ( ST_SINE | ST_TRIANGLE | ST_SQUARE | ST_DC | ST_NOISE | ST_ARBITRARY )
287 #define STM_FREQUENCY ( ST_SINE | ST_TRIANGLE | ST_SQUARE | ST_ARBITRARY )
288 #define STM_PHASE ( ST_SINE | ST_TRIANGLE | ST_SQUARE | ST_ARBITRARY )
289 #define STM_SYMMETRY ( ST_SINE | ST_TRIANGLE | ST_SQUARE )
308 #define TCB_GREATER 0
317 #define TC_GREATER ( 1 << TCB_GREATER )
318 #define TC_LESS ( 1 << TCB_LESS )
326 #define TCM_ALL ( ( 1 << TCN_COUNT ) - 1 )
338 #define TH_ALLPRESAMPLES 0xffffffffffffffff
357 #define TKB_FALLING 1
358 #define TKB_INWINDOW 2
359 #define TKB_OUTWINDOW 3
361 #define TKB_DROPINWINDOW 5
362 #define TKB_DROPOUTWINDOW 6
363 #define TKB_PULSEWIDTHPOSITIVE 7
364 #define TKB_PULSEWIDTHNEGATIVE 8
371 #define TK_RISING ( 1ULL << TKB_RISING )
372 #define TK_FALLING ( 1ULL << TKB_FALLING )
373 #define TK_INWINDOW ( 1ULL << TKB_INWINDOW )
374 #define TK_OUTWINDOW ( 1ULL << TKB_OUTWINDOW )
375 #define TK_EDGE ( 1ULL << TKB_EDGE )
376 #define TK_DROPINWINDOW ( 1ULL << TKB_DROPINWINDOW )
377 #define TK_DROPOUTWINDOW ( 1ULL << TKB_DROPOUTWINDOW )
378 #define TK_PULSEWIDTHPOSITIVE ( 1ULL << TKB_PULSEWIDTHPOSITIVE )
379 #define TK_PULSEWIDTHNEGATIVE ( 1ULL << TKB_PULSEWIDTHNEGATIVE )
387 #define TKM_EDGE ( TK_RISING | TK_FALLING | TK_EDGE )
388 #define TKM_WINDOW ( TK_INWINDOW | TK_OUTWINDOW | TK_DROPINWINDOW | TK_DROPOUTWINDOW )
389 #define TKM_PULSEWIDTH ( TK_PULSEWIDTHPOSITIVE | TK_PULSEWIDTHNEGATIVE )
390 #define TKM_ALL ( ( 1ULL << TKN_COUNT ) - 1 )
402 #define TO_INFINITY -1
420 #define TOEB_GENERATOR_START 0
421 #define TOEB_GENERATOR_STOP 1
422 #define TOEB_GENERATOR_NEWPERIOD 2
428 #define TOE_UNKNOWN 0
429 #define TOE_GENERATOR_START ( 1 << TOEB_GENERATOR_START )
430 #define TOE_GENERATOR_STOP ( 1 << TOEB_GENERATOR_STOP )
431 #define TOE_GENERATOR_NEWPERIOD ( 1 << TOEB_GENERATOR_NEWPERIOD )
439 #define TOEM_GENERATOR ( TOE_GENERATOR_START | TOE_GENERATOR_STOP | TOE_GENERATOR_NEWPERIOD )
440 #define TOEM_ALL ( ( 1ULL << TOEN_COUNT ) - 1 )
452 #define TSN_CHANNEL_COUNT 32
454 #define TS_NONE 0x0000000000000000ULL
456 #define TS_CH1 0x0000000000000001ULL
457 #define TS_CH2 0x0000000000000002ULL
458 #define TS_CH3 0x0000000000000004ULL
459 #define TS_CH4 0x0000000000000008ULL
460 #define TS_CH5 0x0000000000000010ULL
461 #define TS_CH6 0x0000000000000020ULL
462 #define TS_CH7 0x0000000000000040ULL
463 #define TS_CH8 0x0000000000000080ULL
464 #define TS_CH9 0x0000000000000100ULL
465 #define TS_CH10 0x0000000000000200ULL
466 #define TS_CH11 0x0000000000000400ULL
467 #define TS_CH12 0x0000000000000800ULL
468 #define TS_CH13 0x0000000000001000ULL
469 #define TS_CH14 0x0000000000002000ULL
470 #define TS_CH15 0x0000000000004000ULL
471 #define TS_CH16 0x0000000000008000ULL
472 #define TS_CH17 0x0000000000010000ULL
473 #define TS_CH18 0x0000000000020000ULL
474 #define TS_CH19 0x0000000000040000ULL
475 #define TS_CH20 0x0000000000080000ULL
476 #define TS_CH21 0x0000000000100000ULL
477 #define TS_CH22 0x0000000000200000ULL
478 #define TS_CH23 0x0000000000400000ULL
479 #define TS_CH24 0x0000000000800000ULL
480 #define TS_CH25 0x0000000001000000ULL
481 #define TS_CH26 0x0000000002000000ULL
482 #define TS_CH27 0x0000000004000000ULL
483 #define TS_CH28 0x0000000008000000ULL
484 #define TS_CH29 0x0000000010000000ULL
485 #define TS_CH30 0x0000000020000000ULL
486 #define TS_CH31 0x0000000040000000ULL
487 #define TS_CH32 0x0000000080000000ULL
489 #define TS_GENSTOP 0x0400000000000000ULL
490 #define TS_GENNEW 0x0800000000000000ULL
491 #define TS_GENSTART 0x1000000000000000ULL
492 #define TS_EXT2 0x2000000000000000ULL
493 #define TS_EXTANALOG 0x4000000000000000ULL
494 #define TS_EXT 0x8000000000000000ULL
501 #define TSM_NONE 0x0000000000000000ULL
502 #define TSM_ALL 0xFFFFFFFFFFFFFFFFULL
503 #define TSM_CHANNELS ( ( 1ULL << TSN_CHANNEL_COUNT ) - 1 )
504 #define TSM_NONCHANNELS ( TSM_ALL - TSM_CHANNELS )
505 #define TSM_GENALL ( TS_GENSTART | TS_GENNEW | TS_GENSTOP )
529 #ifdef INCLUDED_BY_MATLAB
532 typedef void(*TpCallback_t)(
void* pData );
892 #define TPDEVICEHANDLE_INVALID 0
900 #define DEVICETYPE_OSCILLOSCOPE 0x00000001
901 #define DEVICETYPE_GENERATOR 0x00000002
902 #define DEVICETYPE_I2CHOST 0x00000004
910 #define IDKIND_DEVICEID 0x00000001
911 #define IDKIND_INDEX 0x00000002
912 #define IDKIND_SERIALNUMBER 0x00000004
926 #define LIBTIEPIESTATUS_SUCCESS 0
927 #define LIBTIEPIESTATUS_VALUE_CLIPPED 1
928 #define LIBTIEPIESTATUS_VALUE_MODIFIED 2
929 #define LIBTIEPIESTATUS_UNSUCCESSFUL -1
930 #define LIBTIEPIESTATUS_NOT_SUPPORTED -2
931 #define LIBTIEPIESTATUS_INVALID_HANDLE -3
932 #define LIBTIEPIESTATUS_INVALID_VALUE -4
933 #define LIBTIEPIESTATUS_INVALID_CHANNEL -5
934 #define LIBTIEPIESTATUS_INVALID_TRIGGER_SOURCE -6
935 #define LIBTIEPIESTATUS_INVALID_DEVICE_TYPE -7
936 #define LIBTIEPIESTATUS_INVALID_DEVICE_INDEX -8
937 #define LIBTIEPIESTATUS_INVALID_DEVICE_ID -9
938 #define LIBTIEPIESTATUS_INVALID_DEVICE_SERIALNUMBER -10
939 #define LIBTIEPIESTATUS_DEVICE_GONE -11
940 #define LIBTIEPIESTATUS_INTERNAL_ADDRESS -12
941 #define LIBTIEPIESTATUS_NOT_CONTROLLABLE -13
942 #define LIBTIEPIESTATUS_BIT_ERROR -14
943 #define LIBTIEPIESTATUS_NO_ACKNOWLEDGE -15
944 #define LIBTIEPIESTATUS_INVALID_CONTAINED_DEVICE_SERIALNUMBER -16
945 #define LIBTIEPIESTATUS_INVALID_INPUT -17
946 #define LIBTIEPIESTATUS_INVALID_OUTPUT -18
954 #define CONNECTORTYPE_UNKNOWN 0x00000000
956 #define CONNECTORTYPE_BNC 0x00000001
957 #define CONNECTORTYPE_BANANA 0x00000002
958 #define CONNECTORTYPE_POWERPLUG 0x00000004
960 #define CONNECTORTYPE_MASK ( CONNECTORTYPE_BNC | CONNECTORTYPE_BANANA | CONNECTORTYPE_POWERPLUG )
968 #define DATARAWTYPE_UNKNOWN 0x00000000
970 #define DATARAWTYPE_INT8 0x00000001
971 #define DATARAWTYPE_INT16 0x00000002
972 #define DATARAWTYPE_INT32 0x00000004
973 #define DATARAWTYPE_INT64 0x00000008
975 #define DATARAWTYPE_UINT8 0x00000010
976 #define DATARAWTYPE_UINT16 0x00000020
977 #define DATARAWTYPE_UINT32 0x00000040
978 #define DATARAWTYPE_UINT64 0x00000080
980 #define DATARAWTYPE_FLOAT32 0x00000100
981 #define DATARAWTYPE_FLOAT64 0x00000200
988 #define DATARAWTYPE_MASK_INT ( DATARAWTYPE_INT8 | DATARAWTYPE_INT16 | DATARAWTYPE_INT32 | DATARAWTYPE_INT64 )
989 #define DATARAWTYPE_MASK_UINT ( DATARAWTYPE_UINT8 | DATARAWTYPE_UINT16 | DATARAWTYPE_UINT32 | DATARAWTYPE_UINT64 )
990 #define DATARAWTYPE_MASK_FLOAT ( DATARAWTYPE_FLOAT32 | DATARAWTYPE_FLOAT64 )
991 #define DATARAWTYPE_MASK_FIXED ( DATARAWTYPE_MASK_INT | DATARAWTYPE_MASK_UINT )
1002 #define IDM_DEVICEID 0x80000000
1003 #define IDM_ALL 0xffffffff
1017 #define IDB_HL0516 6
1025 #define ID_HS3 ( IDM_DEVICEID | ( 1 << IDB_HS3 ) )
1026 #define ID_HS4 ( IDM_DEVICEID | ( 1 << IDB_HS4 ) )
1027 #define ID_HS4D ( IDM_DEVICEID | ( 1 << IDB_HS4D ) )
1028 #define ID_HS805 ( IDM_DEVICEID | ( 1 << IDB_HS805 ) )
1029 #define ID_HP3 ( IDM_DEVICEID | ( 1 << IDB_HP3 ) )
1030 #define ID_HS5 ( IDM_DEVICEID | ( 1 << IDB_HS5 ) )
1031 #define ID_HL0516 ( IDM_DEVICEID | ( 1 << IDB_HL0516 ) )
1032 #define ID_PA1 ( IDM_DEVICEID | ( 1 << IDB_PA1 ) )
1033 #define ID_COMBI ( IDM_DEVICEID | ( 1 << IDB_COMBI ) )
1041 #define BOOL8_FALSE 0
1042 #define BOOL8_TRUE 1
1050 #define LIBTIEPIE_TRISTATE_UNDEFINED 0
1051 #define LIBTIEPIE_TRISTATE_FALSE 1
1052 #define LIBTIEPIE_TRISTATE_TRUE 2
1075 #define TPVERSION_MAJOR( x ) ( x >> 48 )
1076 #define TPVERSION_MINOR( x ) ( ( x >> 32 ) & 0xffff )
1077 #define TPVERSION_RELEASE( x ) ( ( x >> 16 ) & 0xffff )
1078 #define TPVERSION_BUILD( x ) ( x & 0xffff )
1080 #define TPDATE_YEAR( x ) ( x >> 16 )
1081 #define TPDATE_MONTH( x ) ( ( x >> 8 ) & 0xff )
1082 #define TPDATE_DAY( x ) ( x & 0xff )
1088 #ifdef HAVE_WINDOWS_H
1095 #define WM_LIBTIEPIE ( WM_USER + 1337 )
1097 #define WM_LIBTIEPIE_LST_DEVICEADDED ( WM_LIBTIEPIE + 2 )
1098 #define WM_LIBTIEPIE_LST_DEVICEREMOVED ( WM_LIBTIEPIE + 3 )
1100 #define WM_LIBTIEPIE_DEV_REMOVED ( WM_LIBTIEPIE + 4 )
1102 #define WM_LIBTIEPIE_SCP_DATAREADY ( WM_LIBTIEPIE + 0 )
1103 #define WM_LIBTIEPIE_SCP_DATAOVERFLOW ( WM_LIBTIEPIE + 1 )
1104 #define WM_LIBTIEPIE_SCP_CONNECTIONTESTCOMPLETED ( WM_LIBTIEPIE + 7 )
1106 #define WM_LIBTIEPIE_GEN_BURSTCOMPLETED ( WM_LIBTIEPIE + 5 )
1107 #define WM_LIBTIEPIE_GEN_CONTROLLABLECHANGED ( WM_LIBTIEPIE + 6 )
1163 uint32_t
LibGetConfig( uint8_t* pBuffer , uint32_t dwBufferLength );
1255 uint32_t
LstGetDeviceName( uint32_t dwIdKind , uint32_t dwId ,
char* pBuffer , uint32_t dwBufferLength );
1278 uint32_t
LstGetDeviceNameShort( uint32_t dwIdKind , uint32_t dwId ,
char* pBuffer , uint32_t dwBufferLength );
1352 TpDeviceHandle_t
LstOpenDevice( uint32_t dwIdKind , uint32_t dwId , uint32_t dwDeviceType );
1390 TpDeviceHandle_t
LstOpenI2CHost( uint32_t dwIdKind , uint32_t dwId );
1414 void LstUpdate( uint32_t dwDeviceIdMask );
1454 uint32_t
LstCbDevGetProductId( uint32_t dwIdKind , uint32_t dwId , uint32_t dwContainedDeviceSerialNumber );
1464 uint32_t
LstCbDevGetVendorId( uint32_t dwIdKind , uint32_t dwId , uint32_t dwContainedDeviceSerialNumber );
1476 uint32_t
LstCbDevGetName( uint32_t dwIdKind , uint32_t dwId , uint32_t dwContainedDeviceSerialNumber ,
char* pBuffer , uint32_t dwBufferLength );
1488 uint32_t
LstCbDevGetNameShort( uint32_t dwIdKind , uint32_t dwId , uint32_t dwContainedDeviceSerialNumber ,
char* pBuffer , uint32_t dwBufferLength );
1498 TpVersion_t
LstCbDevGetDriverVersion( uint32_t dwIdKind , uint32_t dwId , uint32_t dwContainedDeviceSerialNumber );
1528 uint16_t
LstCbScpGetChannelCount( uint32_t dwIdKind , uint32_t dwId , uint32_t dwContainedDeviceSerialNumber );
1574 #ifdef HAVE_WINDOWS_H
1632 void DevClose( TpDeviceHandle_t hDevice );
1743 uint32_t
DevGetType( TpDeviceHandle_t hDevice );
1765 uint32_t
DevGetName( TpDeviceHandle_t hDevice ,
char* pBuffer , uint32_t dwBufferLength );
1787 uint32_t
DevGetNameShort( TpDeviceHandle_t hDevice ,
char* pBuffer , uint32_t dwBufferLength );
1821 #ifdef HAVE_WINDOWS_H
1841 void DevSetMessageRemoved( TpDeviceHandle_t hDevice , HWND hWnd , WPARAM wParam , LPARAM lParam );
1899 bool8_t
DevTrInSetEnabled( TpDeviceHandle_t hDevice , uint16_t wInput , bool8_t bEnable );
1924 uint64_t
DevTrInGetKinds( TpDeviceHandle_t hDevice , uint16_t wInput );
1935 uint64_t
DevTrInGetKind( TpDeviceHandle_t hDevice , uint16_t wInput );
1947 uint64_t
DevTrInSetKind( TpDeviceHandle_t hDevice , uint16_t wInput , uint64_t qwKind );
1970 uint32_t
DevTrInGetName( TpDeviceHandle_t hDevice , uint16_t wInput ,
char* pBuffer , uint32_t dwBufferLength );
2017 bool8_t
DevTrOutSetEnabled( TpDeviceHandle_t hDevice , uint16_t wOutput , bool8_t bEnable );
2060 uint64_t
DevTrOutSetEvent( TpDeviceHandle_t hDevice , uint16_t wOutput , uint64_t qwEvent );
2079 uint32_t
DevTrOutGetName( TpDeviceHandle_t hDevice , uint16_t wOutput ,
char* pBuffer , uint32_t dwBufferLength );
2121 uint32_t
ScpGetSharedChannelGroup( TpDeviceHandle_t hDevice , uint32_t dwGroupIndex , uint16_t* pChannelNumbers , uint32_t dwLength );
2183 uint64_t
ScpChSetCoupling( TpDeviceHandle_t hDevice , uint16_t wCh , uint64_t qwCoupling );
2211 bool8_t
ScpChSetEnabled( TpDeviceHandle_t hDevice , uint16_t wCh , bool8_t bEnable );
2239 double ScpChSetProbeGain( TpDeviceHandle_t hDevice , uint16_t wCh ,
double dProbeGain );
2294 uint32_t
ScpChGetRanges( TpDeviceHandle_t hDevice , uint16_t wCh ,
double* pList , uint32_t dwLength );
2308 uint32_t ScpChGetRangesEx( TpDeviceHandle_t hDevice , uint16_t wCh , uint64_t qwCoupling ,
double* pList , uint32_t dwLength );
2318 double ScpChGetRange( TpDeviceHandle_t hDevice , uint16_t wCh );
2338 double ScpChSetRange( TpDeviceHandle_t hDevice , uint16_t wCh ,
double dRange );
2387 bool8_t
ScpChTrSetEnabled( TpDeviceHandle_t hDevice , uint16_t wCh , bool8_t bEnable );
2424 uint64_t ScpChTrGetKindsEx( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwMeasureMode );
2436 uint64_t
ScpChTrGetKind( TpDeviceHandle_t hDevice , uint16_t wCh );
2448 uint64_t
ScpChTrSetKind( TpDeviceHandle_t hDevice , uint16_t wCh , uint64_t qwTriggerKind );
2489 double ScpChTrGetLevel( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex );
2500 double ScpChTrSetLevel( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex ,
double dLevel );
2552 double ScpChTrSetHysteresis( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex ,
double dHysteresis );
2602 uint32_t
ScpChTrSetCondition( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwCondition );
2649 double ScpChTrGetTime( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex );
2666 double ScpChTrSetTime( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex ,
double dTime );
2683 double ScpChTrVerifyTime( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex ,
double dTime );
2699 double ScpChTrVerifyTimeEx( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex ,
double dTime ,
double dSampleFrequency );
2807 #ifdef INCLUDED_BY_MATLAB
2808 uint64_t
ScpGetData( TpDeviceHandle_t hDevice ,
void** pBuffers , uint16_t wChannelCount , uint64_t qwStartIndex , uint64_t qwSampleCount );
2810 uint64_t
ScpGetData( TpDeviceHandle_t hDevice ,
float** pBuffers , uint16_t wChannelCount , uint64_t qwStartIndex , uint64_t qwSampleCount );
2822 uint64_t
ScpGetData1Ch( TpDeviceHandle_t hDevice ,
float* pBufferCh1 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2834 uint64_t
ScpGetData2Ch( TpDeviceHandle_t hDevice ,
float* pBufferCh1 ,
float* pBufferCh2 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2847 uint64_t
ScpGetData3Ch( TpDeviceHandle_t hDevice ,
float *pBufferCh1 ,
float* pBufferCh2 ,
float* pBufferCh3 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2861 uint64_t
ScpGetData4Ch( TpDeviceHandle_t hDevice ,
float* pBufferCh1 ,
float* pBufferCh2 ,
float* pBufferCh3 ,
float* pBufferCh4 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2930 uint64_t ScpGetDataRaw( TpDeviceHandle_t hDevice ,
void** pBuffers , uint16_t wChannelCount , uint64_t qwStartIndex , uint64_t qwSampleCount );
2941 uint64_t ScpGetDataRaw1Ch( TpDeviceHandle_t hDevice ,
void* pBufferCh1 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2953 uint64_t ScpGetDataRaw2Ch( TpDeviceHandle_t hDevice ,
void* pBufferCh1 ,
void* pBufferCh2 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2966 uint64_t ScpGetDataRaw3Ch( TpDeviceHandle_t hDevice ,
void* pBufferCh1 ,
void* pBufferCh2 ,
void* pBufferCh3 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2980 uint64_t ScpGetDataRaw4Ch( TpDeviceHandle_t hDevice ,
void* pBufferCh1 ,
void* pBufferCh2 ,
void* pBufferCh3 ,
void* pBufferCh4 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2989 uint32_t ScpChGetDataRawType( TpDeviceHandle_t hDevice , uint16_t wCh );
3003 void ScpChGetDataRawValueRange( TpDeviceHandle_t hDevice , uint16_t wCh , int64_t* pMin , int64_t* pZero , int64_t* pMax );
3015 int64_t ScpChGetDataRawValueMax( TpDeviceHandle_t hDevice , uint16_t wCh );
3027 int64_t ScpChGetDataRawValueZero( TpDeviceHandle_t hDevice , uint16_t wCh );
3039 int64_t ScpChGetDataRawValueMin( TpDeviceHandle_t hDevice , uint16_t wCh );
3048 bool8_t ScpChIsRangeMaxReachable( TpDeviceHandle_t hDevice , uint16_t wCh );
3143 #ifdef HAVE_WINDOWS_H
3234 bool8_t
ScpStart( TpDeviceHandle_t hDevice );
3241 void ScpStop( TpDeviceHandle_t hDevice );
3314 uint32_t
ScpSetMeasureMode( TpDeviceHandle_t hDevice , uint32_t dwMeasureMode );
3415 uint32_t
ScpGetResolutions( TpDeviceHandle_t hDevice , uint8_t* pList , uint32_t dwLength );
3432 uint8_t
ScpSetResolution( TpDeviceHandle_t hDevice , uint8_t byResolution );
3450 bool8_t ScpIsResolutionEnhancedEx( TpDeviceHandle_t hDevice , uint8_t byResolution );
3487 uint32_t
ScpSetClockSource( TpDeviceHandle_t hDevice , uint32_t dwClockSource );
3521 uint32_t
ScpSetClockOutput( TpDeviceHandle_t hDevice , uint32_t dwClockOutput );
3599 uint64_t ScpGetTriggerHoldOffCountMaxEx( TpDeviceHandle_t hDevice , uint32_t dwMeasureMode );
3654 uint64_t ScpGetRecordLengthMaxEx( TpDeviceHandle_t hDevice , uint32_t dwMeasureMode , uint8_t byResolution );
3683 uint64_t ScpVerifyRecordLength( TpDeviceHandle_t hDevice , uint64_t qwRecordLength );
3695 uint64_t ScpVerifyRecordLengthEx( TpDeviceHandle_t hDevice , uint64_t qwRecordLength , uint32_t dwMeasureMode , uint8_t byResolution , uint64_t qwActiveChannelMask );
3751 double ScpVerifySampleFrequency( TpDeviceHandle_t hDevice ,
double dSampleFrequency );
3763 double ScpVerifySampleFrequencyEx( TpDeviceHandle_t hDevice ,
double dSampleFrequency , uint32_t dwMeasureMode , uint8_t byResolution , uint64_t qwActiveChannelMask );
3825 double ScpVerifyTriggerTimeOut( TpDeviceHandle_t hDevice ,
double dTimeout );
3848 uint64_t ScpGetTriggerSourcesEx( TpDeviceHandle_t hDevice , uint32_t dwMeasureMode );
3900 uint64_t
ScpGetTriggerKinds( TpDeviceHandle_t hDevice , uint64_t qwTriggerSourceMask );
3915 uint64_t ScpGetTriggerKindsEx( TpDeviceHandle_t hDevice , uint64_t qwTriggerSourceMask , uint32_t dwMeasureMode );
3926 uint64_t
ScpGetTriggerKind( TpDeviceHandle_t hDevice , uint64_t qwTriggerSource );
3937 uint64_t
ScpSetTriggerKind( TpDeviceHandle_t hDevice , uint64_t qwTriggerSource , uint64_t qwTriggerKind );
3948 double ScpGetTriggerLevel( TpDeviceHandle_t hDevice , uint64_t qwTriggerSource , uint32_t dwIndex );
3960 double ScpSetTriggerLevel( TpDeviceHandle_t hDevice , uint64_t qwTriggerSource , uint32_t dwIndex ,
double dLevel );
3983 double ScpSetTriggerHysteresis( TpDeviceHandle_t hDevice , uint64_t qwTriggerSource , uint32_t dwIndex ,
double dHysteresis );
4005 uint64_t ScpChGetTriggerKindsEx( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwMeasureMode );
4027 uint64_t
ScpChSetTriggerKind( TpDeviceHandle_t hDevice , uint16_t wCh , uint64_t qwTriggerKind );
4050 double ScpChSetTriggerLevel( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex ,
double dLevel );
4146 uint16_t
ScpGetConnectionTestData( TpDeviceHandle_t hDevice , LibTiePieTriState_t* pBuffer , uint16_t wChannelCount );
4222 bool8_t
GenSetOutputOn( TpDeviceHandle_t hDevice , bool8_t bOutputOn );
4229 void GenStart( TpDeviceHandle_t hDevice );
4236 void GenStop( TpDeviceHandle_t hDevice );
4278 uint64_t
GenSetBurstCount( TpDeviceHandle_t hDevice , uint64_t qwBurstCount );
4303 uint64_t
GenSetBurstMode( TpDeviceHandle_t hDevice , uint64_t qwBurstMode );
4337 uint32_t
GenSetSignalType( TpDeviceHandle_t hDevice , uint32_t dwSignalType );
4379 double GenSetAmplitude( TpDeviceHandle_t hDevice ,
double dAmplitude );
4390 double GenVerifyAmplitude( TpDeviceHandle_t hDevice ,
double dAmplitude );
4478 void GenGetFrequencyMinMax( TpDeviceHandle_t hDevice , uint32_t dwFrequencyMode ,
double* pMin ,
double* pMax );
4511 double GenSetFrequency( TpDeviceHandle_t hDevice ,
double dFrequency );
4522 double GenVerifyFrequency( TpDeviceHandle_t hDevice ,
double dFrequency );
4532 double GenVerifyFrequencyEx( TpDeviceHandle_t hDevice ,
double dFrequency , uint32_t dwFrequencyMode );
4552 uint32_t GenGetFrequencyModesEx( TpDeviceHandle_t hDevice , uint32_t dwSignalType );
4612 double GenSetOffset( TpDeviceHandle_t hDevice ,
double dOffset );
4623 double GenVerifyOffset( TpDeviceHandle_t hDevice ,
double dOffset );
4651 double GenSetPhase( TpDeviceHandle_t hDevice ,
double dPhase );
4662 double GenVerifyPhase( TpDeviceHandle_t hDevice ,
double dPhase );
4690 double GenSetSymmetry( TpDeviceHandle_t hDevice ,
double dSymmetry );
4701 double GenVerifySymmetry( TpDeviceHandle_t hDevice ,
double dSymmetry );
4746 uint64_t GenVerifyDataLength( TpDeviceHandle_t hDevice , uint64_t qwDataLength );
4766 void GenSetData( TpDeviceHandle_t hDevice ,
float* pBuffer , uint64_t qwSampleCount );
4776 void GenSetDataRaw( TpDeviceHandle_t hDevice ,
void* pBuffer , uint64_t qwSampleCount );
4842 #ifdef HAVE_WINDOWS_H
4916 uint32_t GenGetModesEx( TpDeviceHandle_t hDevice , uint32_t dwSignalType );
4926 uint32_t
GenGetMode( TpDeviceHandle_t hDevice );
4936 uint32_t
GenSetMode( TpDeviceHandle_t hDevice , uint32_t dwMode );
4966 uint32_t
GenGetRanges( TpDeviceHandle_t hDevice ,
double* pList , uint32_t dwLength );
4994 double GenSetRange( TpDeviceHandle_t hDevice ,
double dRange );
5078 bool8_t
I2CRead( TpDeviceHandle_t hDevice , uint16_t wAddress ,
void* pBuffer , uint32_t dwSize , bool8_t bStop );
5088 bool8_t
I2CReadByte( TpDeviceHandle_t hDevice , uint16_t wAddress , uint8_t* pValue );
5098 bool8_t
I2CReadWord( TpDeviceHandle_t hDevice , uint16_t wAddress , uint16_t* pValue );
5118 bool8_t
I2CWrite( TpDeviceHandle_t hDevice , uint16_t wAddress ,
void* pBuffer , uint32_t dwSize , bool8_t bStop );
5128 bool8_t
I2CWriteByte( TpDeviceHandle_t hDevice , uint16_t wAddress , uint8_t byValue );
5139 bool8_t
I2CWriteByteByte( TpDeviceHandle_t hDevice , uint16_t wAddress , uint8_t byValue1 , uint8_t byValue2 );
5150 bool8_t
I2CWriteByteWord( TpDeviceHandle_t hDevice , uint16_t wAddress , uint8_t byValue1 , uint16_t wValue2 );
5160 bool8_t
I2CWriteWord( TpDeviceHandle_t hDevice , uint16_t wAddress , uint16_t wValue );
5193 double I2CSetSpeed( TpDeviceHandle_t hDevice ,
double dSpeed );
5204 double I2CVerifySpeed( TpDeviceHandle_t hDevice ,
double dSpeed );
5263 void HlpPointerArraySet( LibTiePiePointerArray_t pArray , uint32_t dwIndex ,
void* pPointer );