Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: platform_drivers LTC26X6 AD77681
main.h
00001 /****************************************************************************** 00002 *Copyright (c)2020 Analog Devices, Inc. 00003 * 00004 * Licensed under the 2020-04-27-CN0540EC License(the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * 00007 ****************************************************************************/ 00008 00009 #ifndef _MAIN_H_ 00010 #define _MAIN_H_ 00011 00012 #include <stdint.h> 00013 #include <string> 00014 using namespace std; 00015 00016 void drdy_interrupt(); 00017 int32_t static getUserInput(uint32_t *UserInput); 00018 void static go_to_error(); 00019 void static print_title(); 00020 void static print_prompt(); 00021 int32_t static getMenuSelect(uint16_t *menuSelect); 00022 int32_t static getLargeMenuSelect(uint32_t *largeSelect); 00023 void static print_binary(uint8_t number, char *binary_number); 00024 void static menu_1_set_adc_powermode(void); 00025 void static menu_2_set_adc_clock_divider(void); 00026 void static menu_3_set_adc_filter_type(void); 00027 void static set_adc_FIR_filter(void); 00028 void static set_adc_SINC5_filter(void); 00029 void static set_adc_SINC3_filter(void); 00030 void static set_adc_50HZ_rej(void); 00031 void static set_adc_user_defined_FIR(void); 00032 void static menu_4_adc_buffers_controll(void); 00033 void static menu_5_set_default_settings(void); 00034 void static menu_6_set_adc_vcm(void); 00035 void static menu_7_adc_read_register(void); 00036 void static menu_8_adc_cont_read_data(void); 00037 void static adc_data_read(void); 00038 void static cont_sampling(); 00039 void static menu_9_reset_ADC(void); 00040 void static menu_10_power_down(void); 00041 void static menu_11_ADC_GPIO(void); 00042 void static adc_GPIO_write(void); 00043 void static adc_GPIO_inout(void); 00044 void static adc_GPIO_settings(void); 00045 void static menu_12_read_master_status(void); 00046 void static menu_13_mclk_vref(void); 00047 void static menu_14_print_measured_data(void); 00048 void static menu_15_set_adc_data_output_mode(void); 00049 void static menu_16_set_adc_diagnostic_mode(void); 00050 void static menu_17_do_the_fft(void); 00051 void static menu_18_fft_settings(void); 00052 void static menu_19_gains_offsets(void); 00053 void static menu_20_check_scratchpad(void); 00054 void static menu_21_piezo_offset(void); 00055 void static menu_22_set_DAC_output(void); 00056 void static get_mean_voltage(struct adc_data *measured_data, double *mean_voltage); 00057 void static adc_hard_reset(void); 00058 void static sdpk1_gpio_setup(void); 00059 00060 #endif // !_MAIN_H_ 00061 00062
Generated on Sun Jul 17 2022 08:53:29 by
1.7.2