precision-converters-firmware
|
#include "adi_console_menu.h"
Go to the source code of this file.
Macros | |
#define | ODR_250000 250000.00 |
#define | ODR_250000_STR "250000.00" |
#define | ODR_250000_BITS 0x00 |
#define | ODR_125000 125000.00 |
#define | ODR_125000_STR "125000.00" |
#define | ODR_125000_BITS 0x01 |
#define | ODR_62500 62500.00 |
#define | ODR_62500_STR "62500.00" |
#define | ODR_62500_BITS 0x02 |
#define | ODR_50000 50000.00 |
#define | ODR_50000_STR "50000.00" |
#define | ODR_50000_BITS 0x03 |
#define | ODR_31250 31250.00 |
#define | ODR_31250_STR "31250.00" |
#define | ODR_31250_BITS 0x04 |
#define | ODR_25000 25000.00 |
#define | ODR_25000_STR "25000.00" |
#define | ODR_25000_BITS 0x05 |
#define | ODR_15625 15625.00 |
#define | ODR_15625_STR "15625.00" |
#define | ODR_15625_BITS 0x06 |
#define | ODR_10417 10417.00 |
#define | ODR_10417_STR "10417.00" |
#define | ODR_10417_BITS 0x07 |
#define | ODR_10000 10000.00 |
#define | ODR_10000_STR "10000.00" |
#define | ODR_10000_BITS 0x07 |
#define | ODR_5208 5208.00 |
#define | ODR_5208_STR "5208.00" |
#define | ODR_5208_BITS 0x08 |
#define | ODR_5000 5000.00 |
#define | ODR_5000_STR "5000.00" |
#define | ODR_5000_BITS 0x08 |
#define | ODR_5194 5194 |
#define | ODR_5194_STR "5194.00" |
#define | ODR_5194_BITS 0x08 |
#define | ODR_3906 3906.00 |
#define | ODR_3906_STR "3906.00" |
#define | ODR_3906_BITS 0x09 |
#define | ODR_2604 2604.00 |
#define | ODR_2604_STR "2604.00" |
#define | ODR_2604_BITS 0x09 |
#define | ODR_2597 2597.00 |
#define | ODR_2597_STR "2597.00" |
#define | ODR_2597_BITS 0x09 |
#define | ODR_2500 2500.00 |
#define | ODR_2500_STR "2500.00" |
#define | ODR_2500_BITS 0x09 |
#define | ODR_2496 2496.00 |
#define | ODR_2496_STR "2496.00" |
#define | ODR_2496_BITS 0x09 |
#define | ODR_1157 1157.00 |
#define | ODR_1157_STR "1157.00" |
#define | ODR_1157_BITS 0x0A |
#define | ODR_1008 1008.00 |
#define | ODR_1008_STR "1008.00" |
#define | ODR_1008_BITS 0x0A |
#define | ODR_1007 1007.00 |
#define | ODR_1007_STR "1007.00" |
#define | ODR_1007_BITS 0x0A |
#define | ODR_1000 1000.00 |
#define | ODR_1000_STR "1000.00" |
#define | ODR_1000_BITS 0x0A |
#define | ODR_539 539.00 |
#define | ODR_539_STR "539.00" |
#define | ODR_539_BITS 0x0B |
#define | ODR_504 504.00 |
#define | ODR_504_STR "504.00" |
#define | ODR_504_BITS 0x0B |
#define | ODR_503_8 503.80 |
#define | ODR_503_8_STR "503.80" |
#define | ODR_503_8_BITS 0x0B |
#define | ODR_500 500.00 |
#define | ODR_500_STR "500.00" |
#define | ODR_500_BITS 0x0B |
#define | ODR_499 499.9 |
#define | ODR_499_STR "499.9" |
#define | ODR_499_BITS 0x0B |
#define | ODR_401 401.00 |
#define | ODR_401_STR "401.00" |
#define | ODR_401_BITS 0x0C |
#define | ODR_400_6 400.60 |
#define | ODR_400_6_STR "400.60" |
#define | ODR_400_6_BITS 0x0C |
#define | ODR_400 400.00 |
#define | ODR_400_STR "400.00" |
#define | ODR_400_BITS 0x0C |
#define | ODR_397_5 397.50 |
#define | ODR_397_5_STR "397.50" |
#define | ODR_397_5_BITS 0x0C |
#define | ODR_397 397.00 |
#define | ODR_397_STR "397.00" |
#define | ODR_397_BITS 0x0C |
#define | ODR_390 390.6 |
#define | ODR_390_STR "390.60" |
#define | ODR_390_BITS 0x0C |
#define | ODR_381 381.00 |
#define | ODR_381_STR "381.00" |
#define | ODR_381_BITS 0x0C |
#define | ODR_206 206.00 |
#define | ODR_206_STR "206.00" |
#define | ODR_206_BITS 0x0D |
#define | ODR_200_3 200.3 |
#define | ODR_200_3_STR "200.30" |
#define | ODR_200_3_BITS 0x0D |
#define | ODR_200 200.00 |
#define | ODR_200_STR "200.00" |
#define | ODR_200_BITS 0x0D |
#define | ODR_102 102.00 |
#define | ODR_102_STR "102.00" |
#define | ODR_102_BITS 0x0E |
#define | ODR_100_2 100.20 |
#define | ODR_100_2_STR "100.20" |
#define | ODR_100_2_BITS 0x0E |
#define | ODR_100 100.00 |
#define | ODR_100_STR "100.00" |
#define | ODR_100_BITS 0x0E |
#define | ODR_60 60.00 |
#define | ODR_60_STR "60.00" |
#define | ODR_60_BITS 0x0F |
#define | ODR_59_98 59.98 |
#define | ODR_59_98_STR "59.98" |
#define | ODR_59_98_BITS 0x0F |
#define | ODR_59_94 59.94 |
#define | ODR_59_94_STR "59.94" |
#define | ODR_59_94_BITS 0x0F |
#define | ODR_59_75 59.75 |
#define | ODR_59_75_STR "59.75" |
#define | ODR_59_75_BITS 0x0F |
#define | ODR_59_52 59.52 |
#define | ODR_59_52_STR "59.52" |
#define | ODR_59_52_BITS 0x0F |
#define | ODR_50 50.00 |
#define | ODR_50_STR "50.00" |
#define | ODR_50_BITS 0x10 |
#define | ODR_49_96 49.96 |
#define | ODR_49_96_STR "49.96" |
#define | ODR_49_96_BITS 0x10 |
#define | ODR_49_84 49.84 |
#define | ODR_49_84_STR "49.84" |
#define | ODR_49_84_BITS 0x10 |
#define | ODR_49_68 49.68 |
#define | ODR_49_68_STR "49.68" |
#define | ODR_49_68_BITS 0x10 |
#define | ODR_20_01 20.01 |
#define | ODR_20_01_STR "20.01" |
#define | ODR_20_01_BITS 0x11 |
#define | ODR_20 20.00 |
#define | ODR_20_STR "20.00" |
#define | ODR_20_BITS 0x11 |
#define | ODR_16_63 16.63 |
#define | ODR_16_63_STR "16.63" |
#define | ODR_16_63_BITS 0x12 |
#define | ODR_16_67 16.67 |
#define | ODR_16_67_STR "16.67" |
#define | ODR_16_67_BITS 0x12 |
#define | ODR_16_65 16.65 |
#define | ODR_16_65_STR "16.65" |
#define | ODR_16_65_BITS 0x12 |
#define | ODR_10 10.00 |
#define | ODR_10_STR "10.00" |
#define | ODR_10_BITS 0x13 |
#define | ODR_5 5.00 |
#define | ODR_5_STR "5.00" |
#define | ODR_5_BITS 0x14 |
#define | ODR_2_5 2.50 |
#define | ODR_2_5_STR "2.50" |
#define | ODR_2_5_BITS 0x15 |
#define | ODR_1_25 1.25 |
#define | ODR_1_25_STR "1.25" |
#define | ODR_1_25_BITS 0x16 |
#define | ODR_RES_STR "RES" |
#define | ODR_RES_BITS 0x17 |
#define | VIN0_INPUT_BITS 0x00 |
#define | VIN1_INPUT_BITS 0x01 |
#define | VIN2_INPUT_BITS 0x02 |
#define | VIN3_INPUT_BITS 0x03 |
#define | VIN4_INPUT_BITS 0x04 |
#define | VIN5_INPUT_BITS 0x05 |
#define | VIN6_INPUT_BITS 0x06 |
#define | VIN7_INPUT_BITS 0x07 |
#define | VIN8_INPUT_BITS 0x08 |
#define | VIN9_INPUT_BITS 0x09 |
#define | VIN10_INPUT_BITS 0x0A |
#define | VIN11_INPUT_BITS 0x0B |
#define | VIN12_INPUT_BITS 0x0C |
#define | VIN13_INPUT_BITS 0x0D |
#define | VIN14_INPUT_BITS 0x0E |
#define | VIN15_INPUT_BITS 0x0F |
#define | VIN16_INPUT_BITS 0x10 |
#define | VINCOM_INPUT_BITS 0x10 |
#define | IN0N_INPUT_BITS 0x08 |
#define | IN1N_INPUT_BITS 0x09 |
#define | IN2N_INPUT_BITS 0x0A |
#define | IN3N_INPUT_BITS 0x0B |
#define | IN3P_INPUT_BITS 0x0C |
#define | IN2P_INPUT_BITS 0x0D |
#define | IN1P_INPUT_BITS 0x0E |
#define | IN0P_INPUT_BITS 0x0F |
#define | TEMP_SENSOR_POS_INP_BITS 0x11 |
#define | TEMP_SENSOR_NEG_INP_BITS 0x12 |
#define | AVDD1_AVSS_P_BITS 0x13 |
#define | AVDD1_AVSS_N_BITS 0x14 |
#define | REFP_INPUT_BITS 0x15 |
#define | REFN_INPUT_BITS 0x16 |
#define | ADCIN11_12_INPUT_BITS 0x16C |
#define | ADCIN12_11_INPUT_BITS 0x18B |
#define | ADCIN13_14_INPUT_BITS 0x1AE |
#define | ADCIN14_13_INPUT_BITS 0x1CD |
#define | ADCIN11_15_INPUT_BITS 0x16F |
#define | ADCIN12_15_INPUT_BITS 0x18F |
#define | ADCIN13_15_INPUT_BITS 0x1AF |
#define | ADCIN14_15_INPUT_BITS 0x1CF |
#define | VIN_PAIR_OFFSET 5 |
#define | ADC_CHN(x) (x) |
#define | CHN_PAIR_OFFSET 4 |
#define | CHN_PAIR_MASK 0x0F |
#define | DEVICE_REG_READ_ID (uint32_t)1 |
#define | DEVICE_REG_WRITE_ID (uint32_t)2 |
#define | SELECT_DISBLE (uint32_t)0 |
#define | SELECT_ENABLE (uint32_t)1 |
#define | SINGLE_ENDED_INPUT (uint32_t)0 |
#define | DIFF_ENDED_INPUT (uint32_t)1 |
#define | ANALOG_INP_PAIR_SELECT (uint32_t)0 |
#define | POS_ANALOG_INP_SELECT (uint32_t)1 |
#define | NEG_ANALOG_INP_SELECT (uint32_t)2 |
#define | SINC5_SINC1_FILTER (uint32_t)0 |
#define | SINC3_FILTER (uint32_t)1 |
#define | POST_FILTER_NA (uint32_t)0 |
#define | POST_FLTR_27_SPS (uint32_t)2 |
#define | POST_FLTR_25_SPS (uint32_t)3 |
#define | POST_FLTR_20_SPS (uint32_t)5 |
#define | POST_FLTR_16_67_SPS (uint32_t)6 |
#define | EXTERNAL (uint32_t)0 |
#define | INTERNAL (uint32_t)2 |
#define | AVDD_AVSS (uint32_t)3 |
#define | UNIPOLAR (uint32_t)0 |
#define | BIPOLAR (uint32_t)1 |
Functions | |
void | display_main_menu_header (void) |
Display the header info for main menu. More... | |
int32_t | menu_read_id (uint32_t menu_id) |
Handle the menu to read device ID. More... | |
int32_t | menu_read_status (uint32_t menu_id) |
Handle the menu to read device status register. More... | |
int32_t | menu_sample_channels (uint32_t menu_id) |
Handle the menu to sample the channels. More... | |
int32_t | menu_chn_enable_disable_display (uint32_t menu_id) |
Display the menu to enable/disable channel selection. More... | |
int32_t | menu_input_chn_connect_display (uint32_t menu_id) |
Display the menu selections to connect analog input pins to a channel. More... | |
int32_t | menu_config_and_assign_setup (uint32_t menu_id) |
Handle the menu to configure and assign the device setup. More... | |
int32_t | menu_display_setup (uint32_t menu_id) |
Handle the menu to display device setup. More... | |
int32_t | menu_read_temperature (uint32_t menu_id) |
Handle the menu to read die temperature of device. More... | |
int32_t | menu_calibrate_adc (uint32_t menu_id) |
Handle the menu to calibrate the device. More... | |
int32_t | menu_read_write_device_regs (uint32_t menu_id) |
Handle the menu to read/write device registers. More... | |
int32_t | menu_channels_enable_disable (uint32_t action) |
int32_t | menu_analog_input_connect (uint32_t user_analog_input) |
Handle the menu to connect input to channel. More... | |
int32_t | menu_input_type_selection (uint32_t input_type_id) |
Handle the menu to select input type for open wire detection. More... | |
int32_t | menu_select_chn_pair (uint32_t user_channel_pair) |
Handle the menu to select channel pair for open wire detection. More... | |
int32_t | menu_select_input_pair (uint32_t user_input_pair) |
Handle the menu to select input pair for open wire detection. More... | |
int32_t | menu_open_wire_detection (uint32_t menu_id) |
Handle the menu to perform open wire detection. More... | |
int32_t | menu_rw_ad717x_register (uint32_t rw_id) |
int32_t | menu_single_conversion (uint32_t channel_id) |
Samples all enabled channels once in Single Conversion mode. More... | |
int32_t | menu_continuous_conversion_tabular (uint32_t channel_id) |
Samples all enabled channels and displays in tabular form. More... | |
int32_t | menu_continuous_conversion_stream (uint32_t channel_id) |
Samples all enabled channels and displays on the console. More... | |
int32_t | menu_filter_select (uint32_t user_input_filter_type) |
Handle the menu to select the filter type. More... | |
int32_t | menu_postfiler_enable_disable (uint32_t user_action) |
Handle the menu to enable/disable the post filter. More... | |
int32_t | menu_postfiler_select (uint32_t user_input_post_filter_type) |
Handle the menu to select the post filter. More... | |
int32_t | menu_odr_select (uint32_t user_input_odr_val) |
Handle the menu to select the ODR value. More... | |
int32_t | menu_polarity_select (uint32_t user_input_polarity) |
Handle the menu to select the polarity. More... | |
int32_t | menu_reference_source_select (uint32_t user_input_reference) |
Handle the menu to select the reference source. More... | |
int32_t | menu_ref_buffer_enable_disable (uint32_t user_action) |
Handle the menu to enable/disable the reference buffers. More... | |
int32_t | menu_input_buffer_enable_disable (uint32_t user_action) |
Handle the menu to enable/disable the input buffers. More... | |
#define ADC_CHN | ( | x | ) | (x) |
#define ADCIN11_12_INPUT_BITS 0x16C |
#define ADCIN11_15_INPUT_BITS 0x16F |
#define ADCIN12_11_INPUT_BITS 0x18B |
#define ADCIN12_15_INPUT_BITS 0x18F |
#define ADCIN13_14_INPUT_BITS 0x1AE |
#define ADCIN13_15_INPUT_BITS 0x1AF |
#define ADCIN14_13_INPUT_BITS 0x1CD |
#define ADCIN14_15_INPUT_BITS 0x1CF |
#define ANALOG_INP_PAIR_SELECT (uint32_t)0 |
#define AVDD1_AVSS_N_BITS 0x14 |
#define AVDD1_AVSS_P_BITS 0x13 |
#define AVDD_AVSS (uint32_t)3 |
#define BIPOLAR (uint32_t)1 |
#define CHN_PAIR_MASK 0x0F |
#define CHN_PAIR_OFFSET 4 |
#define DEVICE_REG_READ_ID (uint32_t)1 |
#define DEVICE_REG_WRITE_ID (uint32_t)2 |
#define DIFF_ENDED_INPUT (uint32_t)1 |
#define EXTERNAL (uint32_t)0 |
#define IN0N_INPUT_BITS 0x08 |
#define IN0P_INPUT_BITS 0x0F |
#define IN1N_INPUT_BITS 0x09 |
#define IN1P_INPUT_BITS 0x0E |
#define IN2N_INPUT_BITS 0x0A |
#define IN2P_INPUT_BITS 0x0D |
#define IN3N_INPUT_BITS 0x0B |
#define IN3P_INPUT_BITS 0x0C |
#define INTERNAL (uint32_t)2 |
#define NEG_ANALOG_INP_SELECT (uint32_t)2 |
#define ODR_10 10.00 |
#define ODR_100 100.00 |
#define ODR_1000 1000.00 |
#define ODR_10000 10000.00 |
#define ODR_10000_BITS 0x07 |
#define ODR_10000_STR "10000.00" |
#define ODR_1000_BITS 0x0A |
#define ODR_1000_STR "1000.00" |
#define ODR_1007 1007.00 |
#define ODR_1007_BITS 0x0A |
#define ODR_1007_STR "1007.00" |
#define ODR_1008 1008.00 |
#define ODR_1008_BITS 0x0A |
#define ODR_1008_STR "1008.00" |
#define ODR_100_2 100.20 |
#define ODR_100_2_BITS 0x0E |
#define ODR_100_2_STR "100.20" |
#define ODR_100_BITS 0x0E |
#define ODR_100_STR "100.00" |
#define ODR_102 102.00 |
#define ODR_102_BITS 0x0E |
#define ODR_102_STR "102.00" |
#define ODR_10417 10417.00 |
#define ODR_10417_BITS 0x07 |
#define ODR_10417_STR "10417.00" |
#define ODR_10_BITS 0x13 |
#define ODR_10_STR "10.00" |
#define ODR_1157 1157.00 |
#define ODR_1157_BITS 0x0A |
#define ODR_1157_STR "1157.00" |
#define ODR_125000 125000.00 |
#define ODR_125000_BITS 0x01 |
#define ODR_125000_STR "125000.00" |
#define ODR_15625 15625.00 |
#define ODR_15625_BITS 0x06 |
#define ODR_15625_STR "15625.00" |
#define ODR_16_63 16.63 |
#define ODR_16_63_BITS 0x12 |
#define ODR_16_63_STR "16.63" |
#define ODR_16_65 16.65 |
#define ODR_16_65_BITS 0x12 |
#define ODR_16_65_STR "16.65" |
#define ODR_16_67 16.67 |
#define ODR_16_67_BITS 0x12 |
#define ODR_16_67_STR "16.67" |
#define ODR_1_25 1.25 |
#define ODR_1_25_BITS 0x16 |
#define ODR_1_25_STR "1.25" |
#define ODR_20 20.00 |
#define ODR_200 200.00 |
#define ODR_200_3 200.3 |
#define ODR_200_3_BITS 0x0D |
#define ODR_200_3_STR "200.30" |
#define ODR_200_BITS 0x0D |
#define ODR_200_STR "200.00" |
#define ODR_206 206.00 |
#define ODR_206_BITS 0x0D |
#define ODR_206_STR "206.00" |
#define ODR_20_01 20.01 |
#define ODR_20_01_BITS 0x11 |
#define ODR_20_01_STR "20.01" |
#define ODR_20_BITS 0x11 |
#define ODR_20_STR "20.00" |
#define ODR_2496 2496.00 |
#define ODR_2496_BITS 0x09 |
#define ODR_2496_STR "2496.00" |
#define ODR_2500 2500.00 |
#define ODR_25000 25000.00 |
#define ODR_250000 250000.00 |
#define ODR_250000_BITS 0x00 |
#define ODR_250000_STR "250000.00" |
#define ODR_25000_BITS 0x05 |
#define ODR_25000_STR "25000.00" |
#define ODR_2500_BITS 0x09 |
#define ODR_2500_STR "2500.00" |
#define ODR_2597 2597.00 |
#define ODR_2597_BITS 0x09 |
#define ODR_2597_STR "2597.00" |
#define ODR_2604 2604.00 |
#define ODR_2604_BITS 0x09 |
#define ODR_2604_STR "2604.00" |
#define ODR_2_5 2.50 |
#define ODR_2_5_BITS 0x15 |
#define ODR_2_5_STR "2.50" |
#define ODR_31250 31250.00 |
#define ODR_31250_BITS 0x04 |
#define ODR_31250_STR "31250.00" |
#define ODR_381 381.00 |
#define ODR_381_BITS 0x0C |
#define ODR_381_STR "381.00" |
#define ODR_390 390.6 |
#define ODR_3906 3906.00 |
#define ODR_3906_BITS 0x09 |
#define ODR_3906_STR "3906.00" |
#define ODR_390_BITS 0x0C |
#define ODR_390_STR "390.60" |
#define ODR_397 397.00 |
#define ODR_397_5 397.50 |
#define ODR_397_5_BITS 0x0C |
#define ODR_397_5_STR "397.50" |
#define ODR_397_BITS 0x0C |
#define ODR_397_STR "397.00" |
#define ODR_400 400.00 |
#define ODR_400_6 400.60 |
#define ODR_400_6_BITS 0x0C |
#define ODR_400_6_STR "400.60" |
#define ODR_400_BITS 0x0C |
#define ODR_400_STR "400.00" |
#define ODR_401 401.00 |
#define ODR_401_BITS 0x0C |
#define ODR_401_STR "401.00" |
#define ODR_499 499.9 |
#define ODR_499_BITS 0x0B |
#define ODR_499_STR "499.9" |
#define ODR_49_68 49.68 |
#define ODR_49_68_BITS 0x10 |
#define ODR_49_68_STR "49.68" |
#define ODR_49_84 49.84 |
#define ODR_49_84_BITS 0x10 |
#define ODR_49_84_STR "49.84" |
#define ODR_49_96 49.96 |
#define ODR_49_96_BITS 0x10 |
#define ODR_49_96_STR "49.96" |
#define ODR_5 5.00 |
#define ODR_50 50.00 |
#define ODR_500 500.00 |
#define ODR_5000 5000.00 |
#define ODR_50000 50000.00 |
#define ODR_50000_BITS 0x03 |
#define ODR_50000_STR "50000.00" |
#define ODR_5000_BITS 0x08 |
#define ODR_5000_STR "5000.00" |
#define ODR_500_BITS 0x0B |
#define ODR_500_STR "500.00" |
#define ODR_503_8 503.80 |
#define ODR_503_8_BITS 0x0B |
#define ODR_503_8_STR "503.80" |
#define ODR_504 504.00 |
#define ODR_504_BITS 0x0B |
#define ODR_504_STR "504.00" |
#define ODR_50_BITS 0x10 |
#define ODR_50_STR "50.00" |
#define ODR_5194 5194 |
#define ODR_5194_BITS 0x08 |
#define ODR_5194_STR "5194.00" |
#define ODR_5208 5208.00 |
#define ODR_5208_BITS 0x08 |
#define ODR_5208_STR "5208.00" |
#define ODR_539 539.00 |
#define ODR_539_BITS 0x0B |
#define ODR_539_STR "539.00" |
#define ODR_59_52 59.52 |
#define ODR_59_52_BITS 0x0F |
#define ODR_59_52_STR "59.52" |
#define ODR_59_75 59.75 |
#define ODR_59_75_BITS 0x0F |
#define ODR_59_75_STR "59.75" |
#define ODR_59_94 59.94 |
#define ODR_59_94_BITS 0x0F |
#define ODR_59_94_STR "59.94" |
#define ODR_59_98 59.98 |
#define ODR_59_98_BITS 0x0F |
#define ODR_59_98_STR "59.98" |
#define ODR_5_BITS 0x14 |
#define ODR_5_STR "5.00" |
#define ODR_60 60.00 |
#define ODR_60_BITS 0x0F |
#define ODR_60_STR "60.00" |
#define ODR_62500 62500.00 |
#define ODR_62500_BITS 0x02 |
#define ODR_62500_STR "62500.00" |
#define ODR_RES_BITS 0x17 |
#define ODR_RES_STR "RES" |
#define POS_ANALOG_INP_SELECT (uint32_t)1 |
#define POST_FILTER_NA (uint32_t)0 |
#define POST_FLTR_16_67_SPS (uint32_t)6 |
#define POST_FLTR_20_SPS (uint32_t)5 |
#define POST_FLTR_25_SPS (uint32_t)3 |
#define POST_FLTR_27_SPS (uint32_t)2 |
#define REFN_INPUT_BITS 0x16 |
#define REFP_INPUT_BITS 0x15 |
#define SELECT_DISBLE (uint32_t)0 |
#define SELECT_ENABLE (uint32_t)1 |
#define SINC3_FILTER (uint32_t)1 |
#define SINC5_SINC1_FILTER (uint32_t)0 |
#define SINGLE_ENDED_INPUT (uint32_t)0 |
#define TEMP_SENSOR_NEG_INP_BITS 0x12 |
#define TEMP_SENSOR_POS_INP_BITS 0x11 |
#define UNIPOLAR (uint32_t)0 |
#define VIN0_INPUT_BITS 0x00 |
#define VIN10_INPUT_BITS 0x0A |
#define VIN11_INPUT_BITS 0x0B |
#define VIN12_INPUT_BITS 0x0C |
#define VIN13_INPUT_BITS 0x0D |
#define VIN14_INPUT_BITS 0x0E |
#define VIN15_INPUT_BITS 0x0F |
#define VIN16_INPUT_BITS 0x10 |
#define VIN1_INPUT_BITS 0x01 |
#define VIN2_INPUT_BITS 0x02 |
#define VIN3_INPUT_BITS 0x03 |
#define VIN4_INPUT_BITS 0x04 |
#define VIN5_INPUT_BITS 0x05 |
#define VIN6_INPUT_BITS 0x06 |
#define VIN7_INPUT_BITS 0x07 |
#define VIN8_INPUT_BITS 0x08 |
#define VIN9_INPUT_BITS 0x09 |
#define VIN_PAIR_OFFSET 5 |
#define VINCOM_INPUT_BITS 0x10 |
void display_main_menu_header | ( | void | ) |
Display the header info for main menu.
int32_t menu_analog_input_connect | ( | uint32_t | user_analog_input | ) |
Handle the menu to connect input to channel.
analog | input to be connected |
int32_t menu_calibrate_adc | ( | uint32_t | menu_id | ) |
Handle the menu to calibrate the device.
menu_id- | (Optional parameter) |
int32_t menu_channels_enable_disable | ( | uint32_t | action | ) |
int32_t menu_chn_enable_disable_display | ( | uint32_t | menu_id | ) |
Display the menu to enable/disable channel selection.
menu_id- | (Optional parameter) |
int32_t menu_config_and_assign_setup | ( | uint32_t | menu_id | ) |
Handle the menu to configure and assign the device setup.
menu_id- | (Optional parameter) |
int32_t menu_continuous_conversion_stream | ( | uint32_t | channel_id | ) |
Samples all enabled channels and displays on the console.
int32_t menu_continuous_conversion_tabular | ( | uint32_t | channel_id | ) |
Samples all enabled channels and displays in tabular form.
int32_t menu_display_setup | ( | uint32_t | menu_id | ) |
Handle the menu to display device setup.
menu_id- | (Optional parameter) |
int32_t menu_filter_select | ( | uint32_t | user_input_filter_type | ) |
Handle the menu to select the filter type.
user | selected filter type |
int32_t menu_input_buffer_enable_disable | ( | uint32_t | user_action | ) |
Handle the menu to enable/disable the input buffers.
user | selected action |
int32_t menu_input_chn_connect_display | ( | uint32_t | menu_id | ) |
Display the menu selections to connect analog input pins to a channel.
menu_id- | (Optional parameter) |
int32_t menu_input_type_selection | ( | uint32_t | user_input_type | ) |
Handle the menu to select input type for open wire detection.
User | selected analog input type |
int32_t menu_odr_select | ( | uint32_t | user_input_odr_val | ) |
Handle the menu to select the ODR value.
user | selected ODR |
int32_t menu_open_wire_detection | ( | uint32_t | menu_id | ) |
Handle the menu to perform open wire detection.
menu_id- | (Optional parameter) |
int32_t menu_polarity_select | ( | uint32_t | user_input_polarity | ) |
Handle the menu to select the polarity.
user | selected polarity |
int32_t menu_postfiler_enable_disable | ( | uint32_t | user_action | ) |
Handle the menu to enable/disable the post filter.
user | selected action |
int32_t menu_postfiler_select | ( | uint32_t | user_input_post_filter_type | ) |
Handle the menu to select the post filter.
user | selected post filter type |
int32_t menu_read_id | ( | uint32_t | menu_id | ) |
Handle the menu to read device ID.
menu_id- | (Optional parameter) |
int32_t menu_read_status | ( | uint32_t | menu_id | ) |
Handle the menu to read device status register.
menu_id- | (Optional parameter) |
int32_t menu_read_temperature | ( | uint32_t | menu_id | ) |
Handle the menu to read die temperature of device.
menu_id- | (Optional parameter) |
int32_t menu_read_write_device_regs | ( | uint32_t | menu_id | ) |
Handle the menu to read/write device registers.
menu_id- | (Optional parameter) |
int32_t menu_ref_buffer_enable_disable | ( | uint32_t | user_action | ) |
Handle the menu to enable/disable the reference buffers.
user | selected action |
int32_t menu_reference_source_select | ( | uint32_t | user_input_reference | ) |
Handle the menu to select the reference source.
user | selected reference source |
int32_t menu_rw_ad717x_register | ( | uint32_t | rw_id | ) |
int32_t menu_sample_channels | ( | uint32_t | menu_id | ) |
Handle the menu to sample the channels.
menu_id- | (Optional parameter) |
int32_t menu_select_chn_pair | ( | uint32_t | user_channel_pair | ) |
Handle the menu to select channel pair for open wire detection.
User | selected channel pair |
int32_t menu_select_input_pair | ( | uint32_t | user_analog_input | ) |
Handle the menu to select input pair for open wire detection.
User | selected analog input |
int32_t menu_single_conversion | ( | uint32_t | channel_id | ) |
Samples all enabled channels once in Single Conversion mode.
This stores all channels that are enabled in a bitmask, and then runs the ADC in single conversion mode, which acquires one channel of data at a time. After capture, that channel is disabled, and single conversion run again, until no channels are enabled. The original enable state of each channel is then restored.
console_menu acquisition_menu |
console_menu_item acquisition_menu_items[] |
console_menu ad717x_main_menu |
console_menu_item analog_input_connect_items[] |
console_menu analog_input_connect_menu |
console_menu_item chn_enable_disable_items[] |
console_menu chn_enable_disable_menu |
const char* enable_disable_status[] |
const char* filter_name[] |
console_menu_item filter_select_items[] |
console_menu filter_select_menu |
console_menu_item input_buffer_enable_disable_items[] |
console_menu input_buffer_enable_disable_menu |
const char* input_pin_map[] |
console_menu_item main_menu_items[] |
console_menu_item open_wire_detect_de_analog_input_items[] |
console_menu open_wire_detect_de_analog_input_menu |
console_menu_item open_wire_detect_de_channel_items[] |
console_menu open_wire_detect_de_channel_menu |
console_menu_item open_wire_detect_input_type_items[] |
console_menu open_wire_detect_input_type_menu |
console_menu_item open_wire_detect_se_analog_input_items[] |
console_menu open_wire_detect_se_analog_input_menu |
console_menu_item open_wire_detect_se_channel_items[] |
console_menu open_wire_detect_se_channel_menu |
console_menu_item polarity_select_items[] |
console_menu polarity_select_menu |
const char* polarity_status[] |
console_menu_item postfilter_enable_disable_items[] |
console_menu postfilter_enable_disable_menu |
const char* postfilter_name[] |
console_menu_item postfilter_select_items[] |
console_menu postfilter_select_menu |
console_menu_item ref_buffer_enable_disable_items[] |
console_menu ref_buffer_enable_disable_menu |
const char* reference_name[] |
console_menu_item reference_select_items[] |
console_menu reference_select_menu |
console_menu_item reg_read_write_items[] |
console_menu reg_read_write_menu |
console_menu_item sinc3_data_rate_select_items[] |
console_menu sinc3_data_rate_select_menu |
const float sinc3_odr_map[] |
console_menu_item sinc5_1_data_rate_select_items[] |
console_menu sinc5_1_data_rate_select_menu |
const float sinc5_sinc1_odr_map[] |