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
54 #define BMB_DISABLED 0
56 #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 )
76 #define BMM_NONE 0x0000000000000000ULL
77 #define BMM_ALL ( ( 1ULL << BMN_COUNT ) - 1 )
105 #define CK_UNKNOWN 0x0000000000000000
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 )
119 #define CKM_V ( CK_DCV | CK_ACV )
120 #define CKM_A ( CK_DCA | CK_ACA )
121 #define CKM_OHM ( CK_OHM )
123 #define CKM_ASYMMETRICRANGE ( CKM_OHM )
124 #define CKM_SYMMETRICRANGE ( CKM_V | CKM_A )
150 #define CO_SAMPLE ( 1 << COB_SAMPLE )
151 #define CO_10MHZ ( 1 << COB_10MHZ )
167 #define CSB_EXTERNAL 0
168 #define CSB_INTERNAL 1
176 #define CS_EXTERNAL ( 1 << CSB_EXTERNAL )
177 #define CS_INTERNAL ( 1 << CSB_INTERNAL )
193 #define FMB_SIGNALFREQUENCY 0
194 #define FMB_SAMPLEFREQUENCY 1
202 #define FM_UNKNOWN 0x00000000
204 #define FM_SIGNALFREQUENCY ( 1 << FMB_SIGNALFREQUENCY )
205 #define FM_SAMPLEFREQUENCY ( 1 << FMB_SAMPLEFREQUENCY )
213 #define FMM_NONE 0x00000000
214 #define FMM_ALL ( ( 1 << FMN_COUNT ) - 1 )
239 #define MM_UNKNOWN 0x00000000
241 #define MM_STREAM ( 1 << MMB_STREAM )
242 #define MM_BLOCK ( 1 << MMB_BLOCK )
259 #define STB_TRIANGLE 1
263 #define STB_ARBITRARY 5
271 #define ST_UNKNOWN 0x0000000000000000
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 )
286 #define STM_AMPLITUDE ( ST_SINE | ST_TRIANGLE | ST_SQUARE | ST_NOISE | ST_ARBITRARY )
287 #define STM_OFFSET ( ST_SINE | ST_TRIANGLE | ST_SQUARE | ST_DC | ST_NOISE | ST_ARBITRARY )
288 #define STM_FREQUENCY ( ST_SINE | ST_TRIANGLE | ST_SQUARE | ST_ARBITRARY )
289 #define STM_PHASE ( ST_SINE | ST_TRIANGLE | ST_SQUARE | ST_ARBITRARY )
290 #define STM_SYMMETRY ( ST_SINE | ST_TRIANGLE | ST_SQUARE )
306 #define TCB_GREATER 0
316 #define TC_GREATER ( 1 << TCB_GREATER )
317 #define TC_LESS ( 1 << TCB_LESS )
326 #define TCM_ALL ( ( 1 << TCN_COUNT ) - 1 )
337 #define TH_ALLPRESAMPLES 0xffffffffffffffff
354 #define TKB_FALLING 1
355 #define TKB_INWINDOW 2
356 #define TKB_OUTWINDOW 3
358 #define TKB_DROPINWINDOW 5
359 #define TKB_DROPOUTWINDOW 6
360 #define TKB_PULSEWIDTHPOSITIVE 7
361 #define TKB_PULSEWIDTHNEGATIVE 8
370 #define TK_RISING ( 1ULL << TKB_RISING )
371 #define TK_FALLING ( 1ULL << TKB_FALLING )
372 #define TK_INWINDOW ( 1ULL << TKB_INWINDOW )
373 #define TK_OUTWINDOW ( 1ULL << TKB_OUTWINDOW )
374 #define TK_EDGE ( 1ULL << TKB_EDGE )
375 #define TK_DROPINWINDOW ( 1ULL << TKB_DROPINWINDOW )
376 #define TK_DROPOUTWINDOW ( 1ULL << TKB_DROPOUTWINDOW )
377 #define TK_PULSEWIDTHPOSITIVE ( 1ULL << TKB_PULSEWIDTHPOSITIVE )
378 #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 )
401 #define TO_INFINITY -1
417 #define TOEB_GENERATOR_START 0
418 #define TOEB_GENERATOR_STOP 1
419 #define TOEB_GENERATOR_NEWPERIOD 2
427 #define TOE_UNKNOWN 0
428 #define TOE_GENERATOR_START ( 1 << TOEB_GENERATOR_START )
429 #define TOE_GENERATOR_STOP ( 1 << TOEB_GENERATOR_STOP )
430 #define TOE_GENERATOR_NEWPERIOD ( 1 << TOEB_GENERATOR_NEWPERIOD )
438 #define TOEM_NONE 0x0000000000000000ULL
439 #define TOEM_GENERATOR ( TOE_GENERATOR_START | TOE_GENERATOR_STOP | TOE_GENERATOR_NEWPERIOD )
440 #define TOEM_ALL ( ( 1ULL << TOEN_COUNT ) - 1 )
451 #define TS_NONE 0x0000000000000000ULL
453 #define TS_CH1 0x0000000000000001ULL
454 #define TS_CH2 0x0000000000000002ULL
455 #define TS_CH3 0x0000000000000004ULL
456 #define TS_CH4 0x0000000000000008ULL
457 #define TS_CH5 0x0000000000000010ULL
458 #define TS_CH6 0x0000000000000020ULL
459 #define TS_CH7 0x0000000000000040ULL
460 #define TS_CH8 0x0000000000000080ULL
461 #define TS_CH9 0x0000000000000100ULL
462 #define TS_CH10 0x0000000000000200ULL
463 #define TS_CH11 0x0000000000000400ULL
464 #define TS_CH12 0x0000000000000800ULL
465 #define TS_CH13 0x0000000000001000ULL
466 #define TS_CH14 0x0000000000002000ULL
467 #define TS_CH15 0x0000000000004000ULL
468 #define TS_CH16 0x0000000000008000ULL
469 #define TS_CH17 0x0000000000010000ULL
470 #define TS_CH18 0x0000000000020000ULL
471 #define TS_CH19 0x0000000000040000ULL
472 #define TS_CH20 0x0000000000080000ULL
473 #define TS_CH21 0x0000000000100000ULL
474 #define TS_CH22 0x0000000000200000ULL
475 #define TS_CH23 0x0000000000400000ULL
476 #define TS_CH24 0x0000000000800000ULL
477 #define TS_CH25 0x0000000001000000ULL
478 #define TS_CH26 0x0000000002000000ULL
479 #define TS_CH27 0x0000000004000000ULL
480 #define TS_CH28 0x0000000008000000ULL
481 #define TS_CH29 0x0000000010000000ULL
482 #define TS_CH30 0x0000000020000000ULL
483 #define TS_CH31 0x0000000040000000ULL
484 #define TS_CH32 0x0000000080000000ULL
486 #define TS_GENSTOP 0x0400000000000000ULL
487 #define TS_GENNEW 0x0800000000000000ULL
488 #define TS_GENSTART 0x1000000000000000ULL
489 #define TS_EXT2 0x2000000000000000ULL
490 #define TS_EXTANALOG 0x4000000000000000ULL
491 #define TS_EXT 0x8000000000000000ULL
497 #define TSN_CHANNEL_COUNT 32
504 #define TSM_NONE 0x0000000000000000ULL
505 #define TSM_ALL 0xFFFFFFFFFFFFFFFFULL
506 #define TSM_CHANNELS ( ( 1ULL << TSN_CHANNEL_COUNT ) - 1 )
507 #define TSM_NONCHANNELS ( TSM_ALL - TSM_CHANNELS )
508 #define TSM_GENALL ( TS_GENSTART | TS_GENNEW | TS_GENSTOP )
517 #ifdef INCLUDED_BY_MATLAB
520 typedef void(*TpCallback_t)(
void* pData );
631 #define TPDEVICEHANDLE_INVALID 0
639 #define DEVICETYPE_OSCILLOSCOPE 0x00000001
640 #define DEVICETYPE_GENERATOR 0x00000002
641 #define DEVICETYPE_I2CHOST 0x00000004
649 #define IDKIND_DEVICEID 0x00000001
650 #define IDKIND_INDEX 0x00000002
651 #define IDKIND_SERIALNUMBER 0x00000004
663 #define LIBTIEPIESTATUS_SUCCESS 0
664 #define LIBTIEPIESTATUS_VALUE_CLIPPED 1
665 #define LIBTIEPIESTATUS_VALUE_MODIFIED 2
666 #define LIBTIEPIESTATUS_UNSUCCESSFUL -1
667 #define LIBTIEPIESTATUS_NOT_SUPPORTED -2
668 #define LIBTIEPIESTATUS_INVALID_HANDLE -3
669 #define LIBTIEPIESTATUS_INVALID_VALUE -4
670 #define LIBTIEPIESTATUS_INVALID_CHANNEL -5
671 #define LIBTIEPIESTATUS_INVALID_TRIGGER_SOURCE -6
672 #define LIBTIEPIESTATUS_INVALID_DEVICE_TYPE -7
673 #define LIBTIEPIESTATUS_INVALID_DEVICE_INDEX -8
674 #define LIBTIEPIESTATUS_INVALID_DEVICE_ID -9
675 #define LIBTIEPIESTATUS_INVALID_DEVICE_SERIALNUMBER -10
676 #define LIBTIEPIESTATUS_DEVICE_GONE -11
677 #define LIBTIEPIESTATUS_INTERNAL_ADDRESS -12
678 #define LIBTIEPIESTATUS_NOT_CONTROLLABLE -13
679 #define LIBTIEPIESTATUS_BIT_ERROR -14
680 #define LIBTIEPIESTATUS_NO_ACKNOWLEDGE -15
681 #define LIBTIEPIESTATUS_INVALID_CONTAINED_DEVICE_SERIALNUMBER -16
682 #define LIBTIEPIESTATUS_INVALID_INPUT -17
683 #define LIBTIEPIESTATUS_INVALID_OUTPUT -18
691 #define CONNECTORTYPE_UNKNOWN 0x00000000
693 #define CONNECTORTYPE_BNC 0x00000001
694 #define CONNECTORTYPE_BANANA 0x00000002
695 #define CONNECTORTYPE_POWERPLUG 0x00000004
697 #define CONNECTORTYPE_MASK ( CONNECTORTYPE_BNC | CONNECTORTYPE_BANANA | CONNECTORTYPE_POWERPLUG )
705 #define DATARAWTYPE_UNKNOWN 0x00000000
707 #define DATARAWTYPE_INT8 0x00000001
708 #define DATARAWTYPE_INT16 0x00000002
709 #define DATARAWTYPE_INT32 0x00000004
710 #define DATARAWTYPE_INT64 0x00000008
712 #define DATARAWTYPE_UINT8 0x00000010
713 #define DATARAWTYPE_UINT16 0x00000020
714 #define DATARAWTYPE_UINT32 0x00000040
715 #define DATARAWTYPE_UINT64 0x00000080
717 #define DATARAWTYPE_FLOAT32 0x00000100
718 #define DATARAWTYPE_FLOAT64 0x00000200
726 #define IDM_DEVICEID 0x80000000
727 #define IDM_ALL 0xffffffff
751 #define ID_HS3 ( IDM_DEVICEID | ( 1 << IDB_HS3 ) )
752 #define ID_HS4 ( IDM_DEVICEID | ( 1 << IDB_HS4 ) )
753 #define ID_HS4D ( IDM_DEVICEID | ( 1 << IDB_HS4D ) )
754 #define ID_HS805 ( IDM_DEVICEID | ( 1 << IDB_HS805 ) )
755 #define ID_HP3 ( IDM_DEVICEID | ( 1 << IDB_HP3 ) )
756 #define ID_HS5 ( IDM_DEVICEID | ( 1 << IDB_HS5 ) )
757 #define ID_HL0516 ( IDM_DEVICEID | ( 1 << IDB_HL0516 ) )
758 #define ID_PA1 ( IDM_DEVICEID | ( 1 << IDB_PA1 ) )
759 #define ID_COMBI ( IDM_DEVICEID | ( 1 << IDB_COMBI ) )
767 #define BOOL8_FALSE 0
776 #define LIBTIEPIE_TRISTATE_UNDEFINED 0
777 #define LIBTIEPIE_TRISTATE_FALSE 1
778 #define LIBTIEPIE_TRISTATE_TRUE 2
801 #define TPVERSION_MAJOR( x ) ( x >> 48 )
802 #define TPVERSION_MINOR( x ) ( ( x >> 32 ) & 0xffff )
803 #define TPVERSION_RELEASE( x ) ( ( x >> 16 ) & 0xffff )
804 #define TPVERSION_BUILD( x ) ( x & 0xffff )
806 #define TPDATE_YEAR( x ) ( x >> 16 )
807 #define TPDATE_MONTH( x ) ( ( x >> 8 ) & 0xff )
808 #define TPDATE_DAY( x ) ( x & 0xff )
814 #ifdef HAVE_WINDOWS_H
821 #define WM_LIBTIEPIE ( WM_USER + 1337 )
823 #define WM_LIBTIEPIE_LST_DEVICEADDED ( WM_LIBTIEPIE + 2 )
824 #define WM_LIBTIEPIE_LST_DEVICEREMOVED ( WM_LIBTIEPIE + 3 )
826 #define WM_LIBTIEPIE_DEV_REMOVED ( WM_LIBTIEPIE + 4 )
828 #define WM_LIBTIEPIE_SCP_DATAREADY ( WM_LIBTIEPIE + 0 )
829 #define WM_LIBTIEPIE_SCP_DATAOVERFLOW ( WM_LIBTIEPIE + 1 )
830 #define WM_LIBTIEPIE_SCP_CONNECTIONTESTCOMPLETED ( WM_LIBTIEPIE + 7 )
832 #define WM_LIBTIEPIE_GEN_BURSTCOMPLETED ( WM_LIBTIEPIE + 5 )
833 #define WM_LIBTIEPIE_GEN_CONTROLLABLECHANGED ( WM_LIBTIEPIE + 6 )
887 uint32_t
LibGetConfig( uint8_t* pBuffer , uint32_t dwBufferLength );
977 uint32_t
LstGetDeviceName( uint32_t dwIdKind , uint32_t dwId ,
char* pBuffer , uint32_t dwBufferLength );
998 uint32_t
LstGetDeviceNameShort( uint32_t dwIdKind , uint32_t dwId ,
char* pBuffer , uint32_t dwBufferLength );
1072 TpDeviceHandle_t
LstOpenDevice( uint32_t dwIdKind , uint32_t dwId , uint32_t dwDeviceType );
1110 TpDeviceHandle_t
LstOpenI2CHost( uint32_t dwIdKind , uint32_t dwId );
1134 void LstUpdate( uint32_t dwDeviceIdMask );
1172 uint32_t
LstCbDevGetProductId( uint32_t dwIdKind , uint32_t dwId , uint32_t dwContainedDeviceSerialNumber );
1182 uint32_t
LstCbDevGetVendorId( uint32_t dwIdKind , uint32_t dwId , uint32_t dwContainedDeviceSerialNumber );
1194 uint32_t
LstCbDevGetName( uint32_t dwIdKind , uint32_t dwId , uint32_t dwContainedDeviceSerialNumber ,
char* pBuffer , uint32_t dwBufferLength );
1206 uint32_t
LstCbDevGetNameShort( uint32_t dwIdKind , uint32_t dwId , uint32_t dwContainedDeviceSerialNumber ,
char* pBuffer , uint32_t dwBufferLength );
1216 TpVersion_t
LstCbDevGetDriverVersion( uint32_t dwIdKind , uint32_t dwId , uint32_t dwContainedDeviceSerialNumber );
1246 uint16_t
LstCbScpGetChannelCount( uint32_t dwIdKind , uint32_t dwId , uint32_t dwContainedDeviceSerialNumber );
1292 #ifdef HAVE_WINDOWS_H
1350 void DevClose( TpDeviceHandle_t hDevice );
1461 uint32_t
DevGetType( TpDeviceHandle_t hDevice );
1481 uint32_t
DevGetName( TpDeviceHandle_t hDevice ,
char* pBuffer , uint32_t dwBufferLength );
1501 uint32_t
DevGetNameShort( TpDeviceHandle_t hDevice ,
char* pBuffer , uint32_t dwBufferLength );
1535 #ifdef HAVE_WINDOWS_H
1555 void DevSetMessageRemoved( TpDeviceHandle_t hDevice , HWND hWnd , WPARAM wParam , LPARAM lParam );
1604 bool8_t
DevTrInSetEnabled( TpDeviceHandle_t hDevice , uint16_t wInput , bool8_t bEnable );
1623 uint64_t
DevTrInGetKinds( TpDeviceHandle_t hDevice , uint16_t wInput );
1634 uint64_t
DevTrInGetKind( TpDeviceHandle_t hDevice , uint16_t wInput );
1646 uint64_t
DevTrInSetKind( TpDeviceHandle_t hDevice , uint16_t wInput , uint64_t qwKind );
1665 uint32_t
DevTrInGetName( TpDeviceHandle_t hDevice , uint16_t wInput ,
char* pBuffer , uint32_t dwBufferLength );
1710 bool8_t
DevTrOutSetEnabled( TpDeviceHandle_t hDevice , uint16_t wOutput , bool8_t bEnable );
1752 uint64_t
DevTrOutSetEvent( TpDeviceHandle_t hDevice , uint16_t wOutput , uint64_t qwEvent );
1771 uint32_t
DevTrOutGetName( TpDeviceHandle_t hDevice , uint16_t wOutput ,
char* pBuffer , uint32_t dwBufferLength );
1813 uint32_t
ScpGetSharedChannelGroup( TpDeviceHandle_t hDevice , uint32_t dwGroupIndex , uint16_t* pChannelNumbers , uint32_t dwLength );
1874 uint64_t
ScpChSetCoupling( TpDeviceHandle_t hDevice , uint16_t wCh , uint64_t qwCoupling );
1901 bool8_t
ScpChSetEnabled( TpDeviceHandle_t hDevice , uint16_t wCh , bool8_t bEnable );
1928 double ScpChSetProbeGain( TpDeviceHandle_t hDevice , uint16_t wCh ,
double dProbeGain );
1978 uint32_t
ScpChGetRanges( TpDeviceHandle_t hDevice , uint16_t wCh ,
double* pList , uint32_t dwLength );
1991 uint32_t
ScpChGetRangesEx( TpDeviceHandle_t hDevice , uint16_t wCh , uint64_t qwCoupling ,
double* pList , uint32_t dwLength );
2000 double ScpChGetRange( TpDeviceHandle_t hDevice , uint16_t wCh );
2019 double ScpChSetRange( TpDeviceHandle_t hDevice , uint16_t wCh ,
double dRange );
2051 uint64_t
ScpChTrGetKindsEx( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwMeasureMode );
2062 uint64_t
ScpChTrGetKind( TpDeviceHandle_t hDevice , uint16_t wCh );
2074 uint64_t
ScpChTrSetKind( TpDeviceHandle_t hDevice , uint16_t wCh , uint64_t qwTriggerKind );
2104 double ScpChTrGetLevel( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex );
2115 double ScpChTrSetLevel( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex ,
double dLevel );
2156 double ScpChTrSetHysteresis( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex ,
double dHysteresis );
2199 uint32_t
ScpChTrSetCondition( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwCondition );
2231 double ScpChTrGetTime( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex );
2244 double ScpChTrSetTime( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex ,
double dTime );
2267 #ifdef INCLUDED_BY_MATLAB
2268 uint64_t
ScpGetData( TpDeviceHandle_t hDevice ,
void** pBuffers , uint16_t wChannelCount , uint64_t qwStartIndex , uint64_t qwSampleCount );
2270 uint64_t
ScpGetData( TpDeviceHandle_t hDevice ,
float** pBuffers , uint16_t wChannelCount , uint64_t qwStartIndex , uint64_t qwSampleCount );
2282 uint64_t
ScpGetData1Ch( TpDeviceHandle_t hDevice ,
float* pBufferCh1 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2294 uint64_t
ScpGetData2Ch( TpDeviceHandle_t hDevice ,
float* pBufferCh1 ,
float* pBufferCh2 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2307 uint64_t
ScpGetData3Ch( TpDeviceHandle_t hDevice ,
float *pBufferCh1 ,
float* pBufferCh2 ,
float* pBufferCh3 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2321 uint64_t
ScpGetData4Ch( TpDeviceHandle_t hDevice ,
float* pBufferCh1 ,
float* pBufferCh2 ,
float* pBufferCh3 ,
float* pBufferCh4 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2392 uint64_t
ScpGetDataRaw( TpDeviceHandle_t hDevice ,
void** pBuffers , uint16_t wChannelCount , uint64_t qwStartIndex , uint64_t qwSampleCount );
2403 uint64_t
ScpGetDataRaw1Ch( TpDeviceHandle_t hDevice ,
void* pBufferCh1 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2415 uint64_t
ScpGetDataRaw2Ch( TpDeviceHandle_t hDevice ,
void* pBufferCh1 ,
void* pBufferCh2 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2428 uint64_t
ScpGetDataRaw3Ch( TpDeviceHandle_t hDevice ,
void* pBufferCh1 ,
void* pBufferCh2 ,
void* pBufferCh3 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2442 uint64_t
ScpGetDataRaw4Ch( TpDeviceHandle_t hDevice ,
void* pBufferCh1 ,
void* pBufferCh2 ,
void* pBufferCh3 ,
void* pBufferCh4 , uint64_t qwStartIndex , uint64_t qwSampleCount );
2465 void ScpChGetDataRawValueRange( TpDeviceHandle_t hDevice , uint16_t wCh , int64_t* pMin , int64_t* pZero , int64_t* pMax );
2595 #ifdef HAVE_WINDOWS_H
2679 bool8_t
ScpStart( TpDeviceHandle_t hDevice );
2686 void ScpStop( TpDeviceHandle_t hDevice );
2765 uint32_t
ScpSetMeasureMode( TpDeviceHandle_t hDevice , uint32_t dwMeasureMode );
2784 uint32_t
ScpGetResolutions( TpDeviceHandle_t hDevice , uint8_t *pList , uint32_t dwLength );
2801 uint8_t
ScpSetResolution( TpDeviceHandle_t hDevice , uint8_t byResolution );
2853 uint32_t
ScpSetClockSource( TpDeviceHandle_t hDevice , uint32_t dwClockSource );
2886 uint32_t
ScpSetClockOutput( TpDeviceHandle_t hDevice , uint32_t dwClockOutput );
3020 uint64_t
ScpVerifyRecordLengthEx( TpDeviceHandle_t hDevice , uint64_t qwRecordLength , uint32_t dwMeasureMode , uint8_t byResolution , uint64_t qwActiveChannelMask );
3074 double ScpVerifySampleFrequencyEx( TpDeviceHandle_t hDevice ,
double dSampleFrequency , uint32_t dwMeasureMode , uint8_t byResolution , uint64_t qwActiveChannelMask );
3172 uint64_t
ScpGetTriggerKinds( TpDeviceHandle_t hDevice , uint64_t qwTriggerSourceMask );
3185 uint64_t
ScpGetTriggerKindsEx( TpDeviceHandle_t hDevice , uint64_t qwTriggerSourceMask , uint32_t dwMeasureMode );
3194 uint64_t
ScpGetTriggerKind( TpDeviceHandle_t hDevice , uint64_t qwTriggerSource );
3205 uint64_t
ScpSetTriggerKind( TpDeviceHandle_t hDevice , uint64_t qwTriggerSource , uint64_t qwTriggerKind );
3215 double ScpGetTriggerLevel( TpDeviceHandle_t hDevice , uint64_t qwTriggerSource , uint32_t dwIndex );
3226 double ScpSetTriggerLevel( TpDeviceHandle_t hDevice , uint64_t qwTriggerSource , uint32_t dwIndex ,
double dLevel );
3247 double ScpSetTriggerHysteresis( TpDeviceHandle_t hDevice , uint64_t qwTriggerSource , uint32_t dwIndex ,
double dHysteresis );
3289 uint64_t
ScpChSetTriggerKind( TpDeviceHandle_t hDevice , uint16_t wCh , uint64_t qwTriggerKind );
3312 double ScpChSetTriggerLevel( TpDeviceHandle_t hDevice , uint16_t wCh , uint32_t dwIndex ,
double dLevel );
3408 uint16_t
ScpGetConnectionTestData( TpDeviceHandle_t hDevice , LibTiePieTriState_t* pBuffer , uint16_t wChannelCount );
3484 bool8_t
GenSetOutputOn( TpDeviceHandle_t hDevice , bool8_t bOutputOn );
3491 void GenStart( TpDeviceHandle_t hDevice );
3498 void GenStop( TpDeviceHandle_t hDevice );
3539 uint64_t
GenSetBurstCount( TpDeviceHandle_t hDevice , uint64_t qwBurstCount );
3564 uint64_t
GenSetBurstMode( TpDeviceHandle_t hDevice , uint64_t qwBurstMode );
3597 uint32_t
GenSetSignalType( TpDeviceHandle_t hDevice , uint32_t dwSignalType );
3638 double GenSetAmplitude( TpDeviceHandle_t hDevice ,
double dAmplitude );
3730 void GenGetFrequencyMinMax( TpDeviceHandle_t hDevice , uint32_t dwFrequencyMode ,
double* pMin ,
double* pMax );
3763 double GenSetFrequency( TpDeviceHandle_t hDevice ,
double dFrequency );
3782 double GenVerifyFrequencyEx( TpDeviceHandle_t hDevice ,
double dFrequency , uint32_t dwFrequencyMode );
3857 double GenSetOffset( TpDeviceHandle_t hDevice ,
double dOffset );
3891 double GenSetPhase( TpDeviceHandle_t hDevice ,
double dPhase );
3900 double GenVerifyPhase( TpDeviceHandle_t hDevice ,
double dPhase );
3925 double GenSetSymmetry( TpDeviceHandle_t hDevice ,
double dSymmetry );
3985 void GenSetData( TpDeviceHandle_t hDevice ,
float* pBuffer , uint64_t qwSampleCount );
3995 void GenSetDataRaw( TpDeviceHandle_t hDevice ,
void* pBuffer , uint64_t qwSampleCount );
4061 #ifdef HAVE_WINDOWS_H
4134 uint32_t
GenGetModesEx( TpDeviceHandle_t hDevice , uint32_t dwSignalType );
4143 uint32_t
GenGetMode( TpDeviceHandle_t hDevice );
4153 uint32_t
GenSetMode( TpDeviceHandle_t hDevice , uint32_t dwMode );
4195 uint32_t
GenGetRanges( TpDeviceHandle_t hDevice ,
double* pList , uint32_t dwLength );
4223 double GenSetRange( TpDeviceHandle_t hDevice ,
double dRange );
4307 bool8_t
I2CRead( TpDeviceHandle_t hDevice , uint16_t wAddress ,
void* pBuffer , uint32_t dwSize , bool8_t bStop );
4317 bool8_t
I2CReadByte( TpDeviceHandle_t hDevice , uint16_t wAddress , uint8_t* pValue );
4327 bool8_t
I2CReadWord( TpDeviceHandle_t hDevice , uint16_t wAddress , uint16_t* pValue );
4347 bool8_t
I2CWrite( TpDeviceHandle_t hDevice , uint16_t wAddress ,
void* pBuffer , uint32_t dwSize , bool8_t bStop );
4357 bool8_t
I2CWriteByte( TpDeviceHandle_t hDevice , uint16_t wAddress , uint8_t byValue );
4368 bool8_t
I2CWriteByteByte( TpDeviceHandle_t hDevice , uint16_t wAddress , uint8_t byValue1 , uint8_t byValue2 );
4379 bool8_t
I2CWriteByteWord( TpDeviceHandle_t hDevice , uint16_t wAddress , uint8_t byValue1 , uint16_t wValue2 );
4389 bool8_t
I2CWriteWord( TpDeviceHandle_t hDevice , uint16_t wAddress , uint16_t wValue );
4422 double I2CSetSpeed( TpDeviceHandle_t hDevice ,
double dSpeed );
4431 double I2CVerifySpeed( TpDeviceHandle_t hDevice ,
double dSpeed );
4488 void HlpPointerArraySet( LibTiePiePointerArray_t pArray , uint32_t dwIndex ,
void* pPointer );