Header for libtiepie. More...
#include <stdint.h>
Go to the source code of this file.
Defines | |
#define | CM_INTERNAL 0 |
Internal clock source. | |
#define | CM_EXTERNAL 1 |
External clock source. | |
#define | CTN_COUPLING_COUNT 5 |
Number of couplings. | |
#define | CTB_DCV 0 |
Volt DC. | |
#define | CTB_ACV 1 |
Volt AC. | |
#define | CTB_DCA 2 |
Ampere DC. | |
#define | CTB_ACA 3 |
Ampere AC. | |
#define | CTB_OHM 4 |
Ohm. | |
#define | CT_UNKNOWN 0x0000000000000000 |
Invalid coupling type. | |
#define | CT_DCV ( 1 << CTB_DCV ) |
Volt DC. | |
#define | CT_ACV ( 1 << CTB_ACV ) |
Volt AC. | |
#define | CT_DCA ( 1 << CTB_DCA ) |
Ampere DC. | |
#define | CT_ACA ( 1 << CTB_ACA ) |
Ampere AC. | |
#define | CT_OHM ( 1 << CTB_OHM ) |
Ohm. | |
#define | CTM_V ( CT_DCV | CT_ACV ) |
Volt. | |
#define | CTM_A ( CT_DCA | CT_ACA ) |
Ampere. | |
#define | CTM_OHM ( CT_OHM ) |
Ohm. | |
#define | FM_UNKNOWN 0x00000000 |
#define | FM_DDS 0x00000001 |
#define | FM_LINEAR 0x00000002 |
#define | MMN_MEASUREMODE_COUNT 2 |
Number of measure modes. | |
#define | MM_BLOCK 0 |
#define | MM_STREAM 1 |
#define | STN_TYPE_COUNT 6 |
Number of types. | |
#define | ST_UNKNOWN 0x0000000000000000 |
#define | ST_SINE 0x0000000000000001 |
#define | ST_TRIANGLE 0x0000000000000002 |
#define | ST_SQUARE 0x0000000000000004 |
#define | ST_DC 0x0000000000000008 |
#define | ST_NOISE 0x0000000000000010 |
#define | ST_ARBITRARY 0x0000000000000020 |
#define | TKN_KIND_COUNT 4 |
Number of kinds. | |
#define | TK_UNKNOWN 0x0000000000000000 |
#define | TK_RISING 0x0000000000000001 |
#define | TK_FALLING 0x0000000000000002 |
#define | TK_INWINDOW 0x0000000000000004 |
#define | TK_OUTWINDOW 0x0000000000000008 |
#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 | 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 | ID_HS3 0x2001 |
Handyscope HS3. | |
#define | ID_HS4 0x2002 |
Handyscope HS4. | |
#define | ID_HS4D 0x2003 |
Handyscope HS4 DIFF. | |
Typedefs | |
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 | |
Functions | |
void | UpdateDeviceLists () |
TpDeviceHandle_t | OpenGenerator (uint32_t dwId) |
uint32_t | GetGeneratorCount () |
TpDeviceHandle_t | OpenOscilloscope (uint32_t dwId) |
uint32_t | GetOscilloscopeCount () |
void | CloseDevice (TpDeviceHandle_t hDevice) |
TpVersion_t | GetVersion () |
LibTiePieStatus_t | GetLastStatus () |
TpDate_t | GetCalibrationDate (TpDeviceHandle_t hDevice) |
uint32_t | GetSerialNumber (TpDeviceHandle_t hDevice) |
uint16_t | ScpGetChannelCount (TpDeviceHandle_t hDevice) |
bool8_t | ScpChGetAutoRanging (TpDeviceHandle_t hDevice, uint16_t wCh) |
bool8_t | ScpChSetAutoRanging (TpDeviceHandle_t hDevice, uint16_t wCh, bool8_t bEnable) |
uint64_t | ScpChGetCouplings (TpDeviceHandle_t hDevice, uint16_t wCh) |
uint64_t | ScpChGetCoupling (TpDeviceHandle_t hDevice, uint16_t wCh) |
uint64_t | ScpChSetCoupling (TpDeviceHandle_t hDevice, uint16_t wCh, uint64_t qwCoupling) |
bool8_t | ScpChGetEnabled (TpDeviceHandle_t hDevice, uint16_t wCh) |
bool8_t | ScpChSetEnabled (TpDeviceHandle_t hDevice, uint16_t wCh, bool8_t bEnable) |
double | ScpChGetProbeGain (TpDeviceHandle_t hDevice, uint16_t wCh) |
double | ScpChSetProbeGain (TpDeviceHandle_t hDevice, uint16_t wCh, double dProbeGain) |
uint32_t | ScpChGetRanges (TpDeviceHandle_t hDevice, uint16_t wCh, double *pList, uint32_t dwLength) |
double | ScpChGetRange (TpDeviceHandle_t hDevice, uint16_t wCh) |
double | ScpChSetRange (TpDeviceHandle_t hDevice, uint16_t wCh, double dRange) |
void | ScpStart (TpDeviceHandle_t hDevice, int64_t iMeasurmentCount) |
void | ScpStop (TpDeviceHandle_t hDevice, int64_t iMeasurmentCount) |
void | ScpForceTrigger (TpDeviceHandle_t hDevice) |
bool8_t | ScpIsReady (TpDeviceHandle_t hDevice) |
bool8_t | ScpIsRunning (TpDeviceHandle_t hDevice) |
bool8_t | ScpIsTriggered (TpDeviceHandle_t hDevice) |
uint32_t | ScpGetMeasureMode (TpDeviceHandle_t hDevice) |
uint32_t | ScpSetMeasureMode (TpDeviceHandle_t hDevice, uint32_t dwMeasureMode) |
double | ScpChGetDataValueMin (TpDeviceHandle_t hDevice, uint16_t wCh) |
double | ScpChGetDataValueMax (TpDeviceHandle_t hDevice, uint16_t wCh) |
uint64_t | ScpChGetData (TpDeviceHandle_t hDevice, uint16_t wCh, float *pBuffer, uint64_t qwSampleCount) |
uint64_t | ScpChGetDataRaw8 (TpDeviceHandle_t hDevice, uint16_t wCh, uint8_t *pBuffer, uint64_t qwSampleCount) |
uint64_t | ScpChGetDataRaw16 (TpDeviceHandle_t hDevice, uint16_t wCh, uint16_t *pBuffer, uint64_t qwSampleCount) |
uint32_t | ScpGetResolutions (TpDeviceHandle_t hDevice, uint8_t *pList, uint32_t dwLength) |
uint8_t | ScpGetResolution (TpDeviceHandle_t hDevice) |
uint8_t | ScpSetResolution (TpDeviceHandle_t hDevice, uint8_t byResolution) |
uint32_t | ScpGetClockSource (TpDeviceHandle_t hDevice) |
uint32_t | ScpSetClockSource (TpDeviceHandle_t hDevice, uint32_t dwClockSource) |
uint64_t | ScpGetPreSampleCount (TpDeviceHandle_t hDevice) |
uint64_t | ScpSetPreSampleCount (TpDeviceHandle_t hDevice, uint64_t qwPreSampleCount) |
uint64_t | ScpGetRecordLengthMax (TpDeviceHandle_t hDevice) |
uint64_t | ScpGetRecordLength (TpDeviceHandle_t hDevice) |
uint64_t | ScpSetRecordLength (TpDeviceHandle_t hDevice, uint64_t qwRecordLength) |
double | ScpGetSampleFrequencyMax (TpDeviceHandle_t hDevice) |
double | ScpGetSampleFrequency (TpDeviceHandle_t hDevice) |
double | ScpSetSampleFrequency (TpDeviceHandle_t hDevice, double dSampleFrequency) |
double | ScpGetTriggerTimeOut (TpDeviceHandle_t hDevice) |
double | ScpSetTriggerTimeOut (TpDeviceHandle_t hDevice, double dTimeout) |
uint64_t | ScpGetTriggerSources (TpDeviceHandle_t hDevice) |
uint64_t | ScpGetTriggerSourceOR (TpDeviceHandle_t hDevice) |
uint64_t | ScpSetTriggerSourceOR (TpDeviceHandle_t hDevice, uint64_t qwTriggerSourceMask) |
uint64_t | ScpGetTriggerSourceAND (TpDeviceHandle_t hDevice) |
uint64_t | ScpSetTriggerSourceAND (TpDeviceHandle_t hDevice, uint64_t qwTriggerSourceMask) |
uint64_t | ScpGetTriggerKinds (TpDeviceHandle_t hDevice, uint64_t qwTriggerSourceMask) |
uint64_t | ScpGetTriggerKind (TpDeviceHandle_t hDevice, uint64_t qwTriggerSource) |
uint64_t | ScpSetTriggerKind (TpDeviceHandle_t hDevice, uint64_t qwTriggerSource, uint64_t qwTriggerKind) |
double | ScpGetTriggerLevel (TpDeviceHandle_t hDevice, uint64_t qwTriggerSource) |
double | ScpSetTriggerLevel (TpDeviceHandle_t hDevice, uint64_t qwTriggerSource, double dLevel) |
double | ScpGetTriggerHysteresis (TpDeviceHandle_t hDevice, uint64_t qwTriggerSource) |
double | ScpSetTriggerHysteresis (TpDeviceHandle_t hDevice, uint64_t qwTriggerSource, double dHysteresis) |
uint64_t | ScpChGetTriggerKinds (TpDeviceHandle_t hDevice, uint16_t wCh) |
uint64_t | ScpChGetTriggerKind (TpDeviceHandle_t hDevice, uint16_t wCh) |
uint64_t | ScpChSetTriggerKind (TpDeviceHandle_t hDevice, uint16_t wCh, uint64_t qwTriggerKind) |
double | ScpChGetTriggerLevel (TpDeviceHandle_t hDevice, uint16_t wCh) |
double | ScpChSetTriggerLevel (TpDeviceHandle_t hDevice, uint16_t wCh, double dLevel) |
double | ScpChGetTriggerHysteresis (TpDeviceHandle_t hDevice, uint16_t wCh) |
double | ScpChSetTriggerHysteresis (TpDeviceHandle_t hDevice, uint16_t wCh, double dHysteresis) |
bool8_t | GenGetOutputOn (TpDeviceHandle_t hDevice) |
bool8_t | GenSetOutputOn (TpDeviceHandle_t hDevice, bool8_t bOutputOn) |
void | GenStart (TpDeviceHandle_t hDevice, int64_t iBurstCount) |
void | GenStop (TpDeviceHandle_t hDevice) |
uint32_t | GenGetMode (TpDeviceHandle_t hDevice) |
uint32_t | GenSetMode (TpDeviceHandle_t hDevice, uint32_t dwMode) |
uint32_t | GenGetSignalTypes (TpDeviceHandle_t hDevice) |
uint32_t | GenGetSignalType (TpDeviceHandle_t hDevice) |
uint32_t | GenSetSignalType (TpDeviceHandle_t hDevice, uint32_t dwSignalType) |
double | GenGetAmplitudeMax (TpDeviceHandle_t hDevice) |
double | GenGetAmplitude (TpDeviceHandle_t hDevice) |
double | GenSetAmplitude (TpDeviceHandle_t hDevice, double dAmplitude) |
double | GenGetFrequencyMin (TpDeviceHandle_t hDevice) |
double | GenGetFrequencyMax (TpDeviceHandle_t hDevice) |
double | GenGetFrequency (TpDeviceHandle_t hDevice) |
double | GenSetFrequency (TpDeviceHandle_t hDevice, double dFrequency) |
double | GenGetOffsetMin (TpDeviceHandle_t hDevice) |
double | GenGetOffsetMax (TpDeviceHandle_t hDevice) |
double | GenGetOffset (TpDeviceHandle_t hDevice) |
double | GenSetOffset (TpDeviceHandle_t hDevice, double dOffset) |
double | GenGetSymmetry (TpDeviceHandle_t hDevice) |
double | GenSetSymmetry (TpDeviceHandle_t hDevice, double dSymmetry) |
uint64_t | GenGetTriggerSources (TpDeviceHandle_t hDevice) |
uint64_t | GenGetTriggerSourceAND (TpDeviceHandle_t hDevice) |
uint64_t | GenSetTriggerSourceAND (TpDeviceHandle_t hDevice, uint64_t qwTriggerSourceMask) |
uint64_t | GenGetTriggerSourceOR (TpDeviceHandle_t hDevice) |
uint64_t | GenSetTriggerSourceOR (TpDeviceHandle_t hDevice, uint64_t qwTriggerSourceMask) |
uint64_t | GenGetDataSizeMax (TpDeviceHandle_t hDevice) |
uint64_t | GenGetDataSize (TpDeviceHandle_t hDevice) |
void | GenFillMemory (TpDeviceHandle_t hDevice, float *pBuffer, uint64_t qwSampleCount) |
void | GenFillMemoryRaw16 (TpDeviceHandle_t hDevice, uint16_t *pBuffer, uint64_t qwSampleCount) |
Header for libtiepie.
Definition in file libtiepie.h.