libtiepie
|
Header for libtiepie. More...
#include <tmwtypes.h>
Go to the source code of this file.
Macros | |
#define | CM_INTERNAL 0 |
Internal clock source. | |
#define | CM_EXTERNAL 1 |
External clock source. | |
#define | CKN_COUPLING_COUNT 5 |
Number of couplings. | |
#define | CKB_DCV 0 |
Volt DC. | |
#define | CKB_ACV 1 |
Volt AC. | |
#define | CKB_DCA 2 |
Ampere DC. | |
#define | CKB_ACA 3 |
Ampere AC. | |
#define | CKB_OHM 4 |
Ohm. | |
#define | CK_UNKNOWN 0x0000000000000000 |
Invalid coupling type. | |
#define | CK_DCV ( 1 << CKB_DCV ) |
Volt DC. | |
#define | CK_ACV ( 1 << CKB_ACV ) |
Volt AC. | |
#define | CK_DCA ( 1 << CKB_DCA ) |
Ampere DC. | |
#define | CK_ACA ( 1 << CKB_ACA ) |
Ampere AC. | |
#define | CK_OHM ( 1 << CKB_OHM ) |
Ohm. | |
#define | CKM_V ( CK_DCV | CK_ACV ) |
Volt. | |
#define | CKM_A ( CK_DCA | CK_ACA ) |
Ampere. | |
#define | CKM_OHM ( CK_OHM ) |
Ohm. | |
#define | FMN_GENERATORMODE_COUNT 2 |
Number of generator modes. | |
#define | FMB_SIGNALFREQUENCY 0 |
#define | FMB_SAMPLEFREQUENCY 1 |
#define | FM_UNKNOWN 0x00000000 |
#define | FM_SIGNALFREQUENCY ( 1 << FMB_SIGNALFREQUENCY ) |
#define | FM_SAMPLEFREQUENCY ( 1 << FMB_SAMPLEFREQUENCY ) |
#define | MMN_MEASUREMODE_COUNT 2 |
Number of measure modes. | |
#define | MMB_STREAM 0 |
Stream mode bit number. | |
#define | MMB_BLOCK 1 |
Block mode bit number. | |
#define | MM_UNKNOWN 0x00000000 |
#define | MM_STREAM ( 1 << MMB_STREAM ) |
#define | MM_BLOCK ( 1 << MMB_BLOCK ) |
#define | STN_SIGNALTYPE_COUNT 6 |
Number of types. | |
#define | STB_SINE 0 |
#define | STB_TRIANGLE 1 |
#define | STB_SQUARE 2 |
#define | STB_DC 3 |
#define | STB_NOISE 4 |
#define | STB_ARBITRARY 5 |
#define | ST_UNKNOWN 0x0000000000000000 |
#define | ST_SINE ( 1 << STB_SINE ) |
#define | ST_TRIANGLE ( 1 << STB_TRIANGLE ) |
#define | ST_SQUARE ( 1 << STB_SQUARE ) |
#define | ST_DC ( 1 << STB_DC ) |
#define | ST_NOISE ( 1 << STB_NOISE ) |
#define | ST_ARBITRARY ( 1 << STB_ARBITRARY ) |
#define | STM_AMPLITUDE ( ST_SINE | ST_TRIANGLE | ST_SQUARE | ST_NOISE | ST_ARBITRARY ) |
#define | STM_OFFSET ( ST_SINE | ST_TRIANGLE | ST_SQUARE | ST_DC | ST_NOISE | ST_ARBITRARY ) |
#define | STM_FREQUENCY ( ST_SINE | ST_TRIANGLE | ST_SQUARE | ST_ARBITRARY ) |
#define | STM_PHASE ( ST_SINE | ST_TRIANGLE | ST_SQUARE | ST_ARBITRARY ) |
#define | STM_SYMMETRY ( ST_SINE | ST_TRIANGLE | ST_SQUARE ) |
#define | TH_ALLPRESAMPLES 0xffffffffffffffff |
All presamples. | |
#define | TKN_KIND_COUNT 7 |
Number of kinds. | |
#define | TKB_RISING 0 |
#define | TKB_FALLING 1 |
#define | TKB_INWINDOW 2 |
#define | TKB_OUTWINDOW 3 |
#define | TKB_EDGE 4 |
#define | TKB_DROPINWINDOW 5 |
#define | TKB_DROPOUTWINDOW 6 |
#define | TK_UNKNOWN 0x0000000000000000ULL |
#define | TK_RISING ( 1ULL << TKB_RISING ) |
#define | TK_FALLING ( 1ULL << TKB_FALLING ) |
#define | TK_INWINDOW ( 1ULL << TKB_INWINDOW ) |
#define | TK_OUTWINDOW ( 1ULL << TKB_OUTWINDOW ) |
#define | TK_EDGE ( 1ULL << TKB_EDGE ) |
#define | TK_DROPINWINDOW ( 1ULL << TKB_DROPINWINDOW ) |
#define | TK_DROPOUTWINDOW ( 1ULL << TKB_DROPOUTWINDOW ) |
#define | TKM_NONE 0x0000000000000000ULL |
No trigger kinds. | |
#define | TKM_EDGE ( TK_RISING | TK_FALLING | TK_EDGE ) |
#define | TKM_WINDOW ( TK_INWINDOW | TK_OUTWINDOW | TK_DROPINWINDOW | TK_DROPOUTWINDOW ) |
#define | TKM_ALL ( ( 1ULL << TKN_KIND_COUNT ) - 1 ) |
All trigger kinds. | |
#define | TO_INFINITY -1 |
No time out. | |
#define | TS_NONE 0x0000000000000000ULL |
No trigger source. | |
#define | TS_CH1 0x0000000000000001ULL |
Channel 1. | |
#define | TS_CH2 0x0000000000000002ULL |
Channel 2. | |
#define | TS_CH3 0x0000000000000004ULL |
Channel 3. | |
#define | TS_CH4 0x0000000000000008ULL |
Channel 4. | |
#define | TS_CH5 0x0000000000000010ULL |
Channel 5. | |
#define | TS_CH6 0x0000000000000020ULL |
Channel 6. | |
#define | TS_CH7 0x0000000000000040ULL |
Channel 7. | |
#define | TS_CH8 0x0000000000000080ULL |
Channel 8. | |
#define | TS_CH9 0x0000000000000100ULL |
Channel 9. | |
#define | TS_CH10 0x0000000000000200ULL |
Channel 10. | |
#define | TS_CH11 0x0000000000000400ULL |
Channel 11. | |
#define | TS_CH12 0x0000000000000800ULL |
Channel 12. | |
#define | TS_CH13 0x0000000000001000ULL |
Channel 13. | |
#define | TS_CH14 0x0000000000002000ULL |
Channel 14. | |
#define | TS_CH15 0x0000000000004000ULL |
Channel 15. | |
#define | TS_CH16 0x0000000000008000ULL |
Channel 16. | |
#define | TS_CH17 0x0000000000010000ULL |
Channel 17. | |
#define | TS_CH18 0x0000000000020000ULL |
Channel 18. | |
#define | TS_CH19 0x0000000000040000ULL |
Channel 19. | |
#define | TS_CH20 0x0000000000080000ULL |
Channel 20. | |
#define | TS_CH21 0x0000000000100000ULL |
Channel 21. | |
#define | TS_CH22 0x0000000000200000ULL |
Channel 22. | |
#define | TS_CH23 0x0000000000400000ULL |
Channel 23. | |
#define | TS_CH24 0x0000000000800000ULL |
Channel 24. | |
#define | TS_CH25 0x0000000001000000ULL |
Channel 25. | |
#define | TS_CH26 0x0000000002000000ULL |
Channel 26. | |
#define | TS_CH27 0x0000000004000000ULL |
Channel 27. | |
#define | TS_CH28 0x0000000008000000ULL |
Channel 28. | |
#define | TS_CH29 0x0000000010000000ULL |
Channel 29. | |
#define | TS_CH30 0x0000000020000000ULL |
Channel 30. | |
#define | TS_CH31 0x0000000040000000ULL |
Channel 31. | |
#define | TS_CH32 0x0000000080000000ULL |
Channel 32. | |
#define | TS_GENSTOP 0x0400000000000000ULL |
Generator stop. | |
#define | TS_GENNEW 0x0800000000000000ULL |
Generator new period. | |
#define | TS_GENSTART 0x1000000000000000ULL |
Generator start. | |
#define | TS_EXT2 0x2000000000000000ULL |
External 2 (TTL) | |
#define | TS_EXTANALOG 0x4000000000000000ULL |
External (Analog) | |
#define | TS_EXT 0x8000000000000000ULL |
External (TTL) | |
#define | TSN_CHANNEL_COUNT 32 |
Number of LSBs reserved for channel trigger sources. | |
#define | TSM_NONE 0x0000000000000000ULL |
No trigger sources. | |
#define | TSM_ALL 0xFFFFFFFFFFFFFFFFULL |
All trigger sources. | |
#define | TSM_CHANNELS ( ( 1ULL << TSN_CHANNEL_COUNT ) - 1 ) |
All channel trigger sources. | |
#define | TSM_NONCHANNELS ( TSM_ALL - TSM_CHANNELS ) |
All non-channel trigger sources. | |
#define | TSM_GENALL ( TS_GENSTART | TS_GENNEW | TS_GENSTOP ) |
All generator trigger sources. | |
#define | TPDEVICEHANDLE_INVALID 0 |
#define | DEVICETYPE_OSCILLOSCOPE 0x00000001 |
#define | DEVICETYPE_GENERATOR 0x00000002 |
#define | DEVICETYPE_I2CHOST 0x00000004 |
#define | LIBTIEPIESTATUS_SUCCESS 0 |
#define | LIBTIEPIESTATUS_VALUE_CLIPPED 1 |
#define | LIBTIEPIESTATUS_VALUE_MODIFIED 2 |
#define | LIBTIEPIESTATUS_UNSUCCESSFUL -1 |
#define | LIBTIEPIESTATUS_NOT_SUPPORTED -2 |
#define | LIBTIEPIESTATUS_INVALID_HANDLE -3 |
#define | LIBTIEPIESTATUS_INVALID_VALUE -4 |
#define | LIBTIEPIESTATUS_INVALID_CHANNEL -5 |
#define | LIBTIEPIESTATUS_INVALID_TRIGGER_SOURCE -6 |
#define | LIBTIEPIESTATUS_INVALID_DEVICE_TYPE -7 |
#define | LIBTIEPIESTATUS_INVALID_DEVICE_INDEX -8 |
#define | LIBTIEPIESTATUS_INVALID_DEVICE_ID -9 |
#define | LIBTIEPIESTATUS_INVALID_DEVICE_SERIALNUMBER -10 |
#define | LIBTIEPIESTATUS_DEVICE_GONE -11 |
#define | LIBTIEPIESTATUS_INTERNAL_ADDRESS -12 |
#define | LIBTIEPIESTATUS_NOT_CONTROLLABLE -13 |
#define | CONNECTORTYPE_UNKNOWN 0x00000000 |
#define | CONNECTORTYPE_BNC 0x00000001 |
#define | CONNECTORTYPE_BANANA 0x00000002 |
#define | CONNECTORTYPE_MASK ( CONNECTORTYPE_BNC | CONNECTORTYPE_BANANA ) |
#define | DATARAWTYPE_UNKNOWN 0x00000000 |
#define | DATARAWTYPE_INT8 0x00000001 |
#define | DATARAWTYPE_INT16 0x00000002 |
#define | DATARAWTYPE_INT32 0x00000004 |
#define | DATARAWTYPE_INT64 0x00000008 |
#define | DATARAWTYPE_UINT8 0x00000010 |
#define | DATARAWTYPE_UINT16 0x00000020 |
#define | DATARAWTYPE_UINT32 0x00000040 |
#define | DATARAWTYPE_UINT64 0x00000080 |
#define | IDM_DEVICEID 0x80000000 |
#define | IDM_ALL 0xffffffff |
#define | IDB_HS3 0 |
#define | IDB_HS4 1 |
#define | IDB_HS4D 2 |
#define | IDB_HS805 3 |
#define | IDB_HP3 4 |
#define | IDB_HS5 5 |
#define | IDB_HL0516 6 |
#define | IDB_PA1 7 |
#define | ID_HS3 ( IDM_DEVICEID | ( 1 << IDB_HS3 ) ) |
Handyscope HS3. | |
#define | ID_HS4 ( IDM_DEVICEID | ( 1 << IDB_HS4 ) ) |
Handyscope HS4. | |
#define | ID_HS4D ( IDM_DEVICEID | ( 1 << IDB_HS4D ) ) |
Handyscope HS4 DIFF. | |
#define | ID_HS805 ( IDM_DEVICEID | ( 1 << IDB_HS805 ) ) |
TiePieSCOPE HS805. | |
#define | ID_HP3 ( IDM_DEVICEID | ( 1 << IDB_HP3 ) ) |
Handyprobe HP3. | |
#define | ID_HS5 ( IDM_DEVICEID | ( 1 << IDB_HS5 ) ) |
Handyscope HS5. | |
#define | ID_HL0516 ( IDM_DEVICEID | ( 1 << IDB_HL0516 ) ) |
HL0516. | |
#define | ID_PA1 ( IDM_DEVICEID | ( 1 << IDB_PA1 ) ) |
Power Analyzer PA1. | |
#define | TPVERSION_MAJOR(x) ( x >> 48 ) |
#define | TPVERSION_MINOR(x) ( ( x >> 32 ) & 0xffff ) |
#define | TPVERSION_RELEASE(x) ( ( x >> 16 ) & 0xffff ) |
#define | TPVERSION_BUILD(x) ( x & 0xffff ) |
#define | TPDATE_YEAR(x) ( x >> 16 ) |
#define | TPDATE_MONTH(x) ( ( x >> 8 ) & 0xff ) |
#define | TPDATE_DAY(x) ( x & 0xff ) |
Typedefs | |
typedef INT8_T | int8_t |
typedef INT16_T | int16_t |
typedef INT32_T | int32_t |
typedef INT64_T | int64_t |
typedef UINT8_T | uint8_t |
typedef UINT16_T | uint16_t |
typedef UINT32_T | uint32_t |
typedef UINT64_T | uint64_t |
typedef void(* | TpCallback_t )(void *pData) |
typedef int32_t | LibTiePieStatus_t |
libTiePie status codes | |
typedef uint32_t | TpDeviceHandle_t |
device handle | |
typedef uint64_t | TpVersion_t |
typedef uint32_t | TpDate_t |
typedef uint8_t | bool8_t |
boolean one byte wide |
Header for libtiepie.
Definition in file libtiepie.h.
typedef INT16_T int16_t |
Definition at line 18 of file libtiepie.h.
typedef INT32_T int32_t |
Definition at line 19 of file libtiepie.h.
typedef INT64_T int64_t |
Definition at line 20 of file libtiepie.h.
typedef INT8_T int8_t |
Definition at line 17 of file libtiepie.h.
typedef UINT16_T uint16_t |
Definition at line 23 of file libtiepie.h.
typedef UINT32_T uint32_t |
Definition at line 24 of file libtiepie.h.
typedef UINT64_T uint64_t |
Definition at line 25 of file libtiepie.h.
typedef UINT8_T uint8_t |
Definition at line 22 of file libtiepie.h.