28static constexpr size_t max_virtual_channel_count = 16;
106 ref_div_2_ref_div_2 = 0x0,
108 ref_coarse_ref_div_2 = 0x2,
109 vadd_ref_div_2 = 0x3,
110 vhdd_ref_div_2 = 0x4,
111 ref_div_2_vhss = 0x5,
349namespace vsdk::io::analog::utility {
389 case sensor_t::resist_1_wr:
390 return "resistance 1 wire";
391 case sensor_t::resist_2_wr:
392 return "resistance 2 wire";
393 case sensor_t::rtd_2_wr:
395 case sensor_t::rtd_3_wr:
397 case sensor_t::rtd_4_wr:
399 case sensor_t::thermocouple_type_b:
400 return "thermocouple type b";
401 case sensor_t::thermocouple_type_e:
402 return "thermocouple type e";
403 case sensor_t::thermocouple_type_j:
404 return "thermocouple type j";
405 case sensor_t::thermocouple_type_k:
406 return "thermocouple type k";
407 case sensor_t::thermocouple_type_n:
408 return "thermocouple type n";
409 case sensor_t::thermocouple_type_r:
410 return "thermocouple type r";
411 case sensor_t::thermocouple_type_s:
412 return "thermocouple type s";
413 case sensor_t::thermocouple_type_t:
414 return "thermocouple type k";
415 case sensor_t::voltage:
430 case pga_gain_t::zero_pt_two:
432 case pga_gain_t::zero_pt_four:
434 case pga_gain_t::zero_pt_eight:
viex_vi_t excitation_source
Excitation source.
Definition analog_common.h:309
bool enable_vexc_routing
Enable vexc internal excitation routing.
Definition analog_common.h:319
hv_sel_t hv_sel
Value for CH_CONFIG0 -> HV_HV_SEL.
Definition analog_common.h:272
hv_aip_t
AIP Pin selection.
Definition analog_common.h:131
lv_sig_in_t lv_sig_in
Value for CH_CONFIG0 -> LVSIG_IN.
Definition analog_common.h:277
gpo_data_t gpo_data
GPO data register assignment for a given channel.
Definition analog_common.h:282
lv_sig_in_t
lv sig selection
Definition analog_common.h:105
constexpr const char * to_string(pin_t pin)
Definition analog_common.h:353
bool enable_ai1p_iexc
Enable excitation on AI1P.
Definition analog_common.h:314
hv_ain_t
AIN Pin selection.
Definition analog_common.h:117
constexpr double to_value(pga_gain_t gain)
Definition analog_common.h:426
hv_aip_t hv_aip
Value for CH_CONFIG0 -> HV_AIP.
Definition analog_common.h:267
pga_gain_t pga_gain
Definition analog_common.h:304
hv_sel_t
hv select
Definition analog_common.h:97
std::vector< uint8_t > channels
Define the virtual channels involved in the function.
Definition analog_common.h:344
pga_gain_t
Channel pga gain.
Definition analog_common.h:83
sensor_t
Supported sensor types.
Definition analog_common.h:185
uint16_t excitation_source_magnitude
Excitation source magnitude.
Definition analog_common.h:299
sensor_t sensor
What type of sensor is this?
Definition analog_common.h:339
thermocouple_t
Thermocouple type.
Definition analog_common.h:206
std::string label
User readable label to use when getting a handle.
Definition analog_common.h:334
pin_fn_t function
Useful function type for calculations when reading values.
Definition analog_common.h:287
gpo_data_t
GPO data settings.
Definition analog_common.h:220
viex_vi_t
Excitation source (VIEX_VI)
Definition analog_common.h:33
pin_t
Pin designations.
Definition analog_common.h:169
gain_offset_coeff_pair_t
Pointer to system gain and offset calibration register pairs.
Definition analog_common.h:43
gain_offset_coeff_pair_t gain_offset_pair
Choose the pointer index of a calibrated gain/offset coefficient pair.
Definition analog_common.h:293
bool tcc_off
True to disable NXPs proprietary Temperature Coefficient Correction.
Definition analog_common.h:324
pin_fn_t
Function of a given pin.
Definition analog_common.h:145
hv_ain_t hv_ain
Value for CH_CONFIG0 -> HV_AIN.
Definition analog_common.h:262
@ vrsns3
Definition analog_common.h:240
@ vrsns5
Definition analog_common.h:248
@ vrsns0
Definition analog_common.h:228
@ vrsns1
Definition analog_common.h:232
@ rref
Definition analog_common.h:252
@ vrsns2
Definition analog_common.h:236
@ vrsns4
Definition analog_common.h:244
@ none
Definition analog_common.h:224
@ zero_pt_four
Gain = 0.4 V/V, single-ended AIxx-AICOM.
Definition analog_common.h:51
@ eight
Gain = 8 V/V, single-ended AIxx-AICOM.
Definition analog_common.h:71
@ four
Gain = 4 V/V, single-ended AIxx-AICOM.
Definition analog_common.h:67
@ zero_pt_two
Gain = 0.2 V/V, single-ended AIxx-AICOM.
Definition analog_common.h:47
@ zero_pt_eight
Gain = 0.8 V/V, single-ended AIxx-AICOM.
Definition analog_common.h:55
@ two
Gain = 2 V/V, single-ended AIxx-AICOM.
Definition analog_common.h:63
@ sixteen
Gain = 16 V/V, single-ended AIxx-AICOM.
Definition analog_common.h:75
@ one
Gain = 1 V/V, single-ended AIxx-AICOM.
Definition analog_common.h:59
Common IO types and structures.
Anything related to configuring or reading analog sensors.
Representation of a NAFE channel. These are required by sensors.
Definition analog_common.h:258
Represents a sensor.
Definition analog_common.h:330