Struct ZIEvent#

struct ZIEvent

This struct holds event data forwarded by the Data Server.

ZIEvent is used to give out events like value changes or errors to the user. Event handling functionality is provided by ziAPISubscribe and ziAPIUnSubscribe as well as ziAPIPollDataEx.

Public Members

uint32_t valueType

Specifies the type of the data held by the ZIEvent, see ZIValueType_enum.

uint32_t count

Number of values available in this event.

uint8_t path[256]

The path to the node from which the event originates.

void *untyped

For convenience. The void field doesn’t have a corresponding data type.

ZIDoubleData *doubleData

when valueType == ZI_VALUE_TYPE_DOUBLE_DATA

ZIDoubleDataTS *doubleDataTS

when valueType == ZI_VALUE_TYPE_DOUBLE_DATA_TS

ZIIntegerData *integerData

when valueType == ZI_VALUE_TYPE_INTEGER_DATA

ZIIntegerDataTS *integerDataTS

when valueType == ZI_VALUE_TYPE_INTEGER_DATA_TS

ZIComplexData *complexData

when valueType == ZI_VALUE_TYPE_COMPLEX_DATA

ZIByteArray *byteArray

when valueType == ZI_VALUE_TYPE_BYTE_ARRAY

ZIByteArrayTS *byteArrayTS

when valueType == ZI_VALUE_TYPE_BYTE_ARRAY_TS

ZICntSample *cntSample

when valueType == ZI_VALUE_TYPE_CNT_SAMPLE

ZITrigSample *trigSample

when valueType == ZI_VALUE_TYPE_TRIG_SAMPLE

ZITreeChangeData *treeChangeData

when valueType == ZI_VALUE_TYPE_TREE_CHANGE_DATA

TreeChange *treeChangeDataOld

when valueType == ZI_VALUE_TYPE_TREE_CHANGE_DATA_OLD

ZIDemodSample *demodSample

when valueType == ZI_VALUE_TYPE_DEMOD_SAMPLE

ZIAuxInSample *auxInSample

when valueType == ZI_VALUE_TYPE_AUXIN_SAMPLE

ZIDIOSample *dioSample

when valueType == ZI_VALUE_TYPE_DIO_SAMPLE

ZIScopeWave *scopeWave

when valueType == ZI_VALUE_TYPE_SCOPE_WAVE

ZIScopeWaveEx *scopeWaveEx

when valueType == ZI_VALUE_TYPE_SCOPE_WAVE_EX

ScopeWave *scopeWaveOld

when valueType == ZI_VALUE_TYPE_SCOPE_WAVE_OLD

ZIPWAWave *pwaWave

when valueType == ZI_VALUE_TYPE_PWA_WAVE

ZISweeperWave *sweeperWave

when valueType == ZI_VALUE_TYPE_SWEEPER_WAVE

ZISpectrumWave *spectrumWave

when valueType == ZI_VALUE_TYPE_SPECTRUM_WAVE

ZIAdvisorWave *advisorWave

when valueType == ZI_VALUE_TYPE_ADVISOR_WAVE

ZIAsyncReply *asyncReply

when valueType == ZI_VALUE_TYPE_ASYNC_REPLY

ZIVectorData *vectorData

when valueType == ZI_VALUE_TYPE_VECTOR_DATA

ZIImpedanceSample *impedanceSample

when valueType == ZI_VALUE_TYPE_IMPEDANCE_SAMPLE

uint64_t alignment

ensure union size is 8 bytes

union ZIEvent::[anonymous] value

Convenience pointer to allow for access to the first entry in Data using the correct type according to ZIEvent.valueType field.

uint8_t data[0x400000]

The raw value data.