44 enum CALIBRATION_MODE {
84 EXC_RUNTIME_ERROR = 1,
85 EXC_INVALID_PARAMETER = 2,
87 EXC_INVALID_FIRMWARE_VERSION = 4
97 RISING_EDGE_ANALOG = 0,
98 FALLING_EDGE_ANALOG = 1,
100 HIGH_LEVEL_ANALOG = 3
110 RISING_EDGE_DIGITAL = 0,
111 FALLING_EDGE_DIGITAL = 1,
112 LOW_LEVEL_DIGITAL = 2,
113 HIGH_LEVEL_DIGITAL = 3,
114 ANY_EDGE_DIGITAL = 4,
115 NO_TRIGGER_DIGITAL = 5,
127 DIGITAL_OR_ANALOG = 3,
128 DIGITAL_AND_ANALOG = 4,
129 DIGITAL_XOR_ANALOG = 5,
130 N_DIGITAL_OR_ANALOG = 6,
131 N_DIGITAL_AND_ANALOG = 7,
132 N_DIGITAL_XOR_ANALOG = 8,
143 CHANNEL_1_OR_CHANNEL_2 = 2,
144 CHANNEL_1_AND_CHANNEL_2 = 3,
145 CHANNEL_1_XOR_CHANNEL_2 = 4,
147 CHANNEL_1_OR_SRC_LOGIC_ANALYZER = 6,
148 CHANNEL_2_OR_SRC_LOGIC_ANALYZER = 7,
149 CHANNEL_1_OR_CHANNEL_2_OR_SRC_LOGIC_ANALYZER = 8,
175 FALLING_EDGE_OUT = 5,
207 SELECT_TRIGGER_I_SAME_CHAN = 1,
225 std::vector<M2K_TRIGGER_MODE>
mode;
249 std::vector<iio_channel*> channels_in;
250 std::vector<iio_channel*> channels_out;
251 std::vector<iio_device*> devices;
252 std::vector<iio_buffer*> buffers_rx;
253 std::vector<iio_buffer*> buffers_tx;
254 iio_context* context;
M2K_TRIGGER_STATUS_ANALOG_OUT
The status value determines the action that the output interface will take when the trigger condition...
Definition: enums.hpp:182
M2K_TRIGGER_SOURCE_OUT
Selects the source trigger for the output interfaces.
Definition: enums.hpp:158
double dac_b_gain
DAC calibration gain - channel 2.
Definition: enums.hpp:65
Calibration parameters of m2k.
Definition: enums.hpp:57
std::string serial
Serial number.
Definition: enums.hpp:240
std::string uri
IIO context URI.
Definition: enums.hpp:241
double adc_gain_ch_2
ADC calibration gain - channel 2.
Definition: enums.hpp:61
int adc_offset_ch_2
ADC calibration offset - channel 2.
Definition: enums.hpp:59
M2K_TRIGGER_SOURCE_ANALOG trigger_source
Triggering source.
Definition: enums.hpp:226
char git_tag[8]
git tag
Definition: enums.hpp:264
SRC_DIGITAL_IN - trigger events on the DigitalIn interface trigger the AnalogIn interface.
Definition: enums.hpp:146
M2K_TRIGGER_SOURCE_DIGITAL
Select the source for the digital trigger.
Definition: enums.hpp:193
std::string product
Product name extracted from IIO context.
Definition: enums.hpp:239
M2K_TRIGGER_CONDITION_DIGITAL
Condition of triggering.
Definition: enums.hpp:109
M2K_TRIGGER_CONDITION_OUT
Trigger condition when the source for M2K_TRIGGER_SOURCE_OUT is TRIGGER_TI.
Definition: enums.hpp:169
std::string manufacturer
Manufacturer extracted from IIO context.
Definition: enums.hpp:238
CHANNEL_2 - trigger events on analog CHANNEL_2 trigger the AnalogIn interface.
Definition: enums.hpp:142
std::string id_vendor
Vendor ID extracted from IIO context.
Definition: enums.hpp:236
M2K_EXCEPTION_TYPE
M2k exception types.
Definition: enums.hpp:82
SRC_DISABLED - block the DigitalIn interface.
Definition: enums.hpp:197
std::vector< M2K_TRIGGER_MODE > mode
Triggering mode.
Definition: enums.hpp:225
int delay
Trigger's delay.
Definition: enums.hpp:227
SELECT_DIGITAL_IN - forwards trigger events from DigitalIn interface.
Definition: enums.hpp:210
NO_SOURCE - block the AnalogIn interface.
Definition: enums.hpp:150
std::vector< M2K_TRIGGER_CONDITION_DIGITAL > digital_condition
Digital trigger's condition.
Definition: enums.hpp:221
M2K_TRIGGER_CONDITION_ANALOG
Condition of triggering.
Definition: enums.hpp:96
CHANNEL_1 - trigger events on analog CHANNEL_1 trigger the AnalogIn interface.
Definition: enums.hpp:141
The version of the backend.
Definition: enums.hpp:261
std::vector< double > hysteresis
Trigger's hysteresis.
Definition: enums.hpp:224
M2K_TRIGGER_MODE
Select the mode for the analog trigger.
Definition: enums.hpp:123
EXTERNAL - Trigger condition specified only by external trigger (TI)
Definition: enums.hpp:126
unsigned int minor
minor version
Definition: enums.hpp:263
SELECT_NONE - no trigger event is forwarded.
Definition: enums.hpp:206
Additional information about the context.
Definition: enums.hpp:235
M2K_TRIGGER_OUT_SELECT
Select which trigger event will be forwarded on TO pin (trigger out)
Definition: enums.hpp:205
std::vector< double > level
Trigger's level.
Definition: enums.hpp:223
double adc_gain_ch_1
ADC calibration gain - channel 1.
Definition: enums.hpp:60
int dac_a_offset
DAC calibration offset - channel 1.
Definition: enums.hpp:62
Triggering system.
Definition: enums.hpp:219
int dac_b_offset
DAC calibration offset - channel 2.
Definition: enums.hpp:63
ANALOG - Trigger condition specified only by analog trigger (CH1 and CH2)
Definition: enums.hpp:125
SRC_TRIGGER_IN - trigger events on the TI(trigger in) pin trigger the DigitalIn interface.
Definition: enums.hpp:194
SRC_ANALOG_IN - trigger events on the AnalogIn interface trigger the DigitalIn interface.
Definition: enums.hpp:195
ALWAYS - Disable analog trigger;.
Definition: enums.hpp:124
M2K_TRIGGER_SOURCE_ANALOG
Select the source for the analog trigger.
Definition: enums.hpp:140
std::vector< int > raw_level
Trigger's raw level.
Definition: enums.hpp:222
int adc_offset_ch_1
ADC calibration offset - channel 1.
Definition: enums.hpp:58
SRC_NONE - trigger events on the DigitalIn are conditioned by the internal digital trigger structure.
Definition: enums.hpp:196
double dac_a_gain
DAC calibration gain - channel 1.
Definition: enums.hpp:64
std::vector< M2K_TRIGGER_CONDITION_ANALOG > analog_condition
Analogical trigger's condition.
Definition: enums.hpp:220
SELECT_ANALOG_IN - forwards trigger events from AnalogIn interface.
Definition: enums.hpp:209
std::string id_product
Product ID extracted from IIO context.
Definition: enums.hpp:237
SELECT_TRIGGER_IN - forwards trigger events from TI pin(trigger in)
Definition: enums.hpp:208
unsigned int major
major version
Definition: enums.hpp:262