AD4130 Mbed IIO Firmware
Dependencies: tempsensors sdp_k1_sdram
app/ad4130_noise_test_config.c
- Committer:
- MPhalke@MPHALKE-L02.ad.analog.com
- Date:
- 2022-07-15
- Revision:
- 2:871d585d96ee
File content as of revision 2:871d585d96ee:
/*************************************************************************//** * @file ad4130_noise_test_config.c * @brief Noise test user configurations file for AD4130 device ****************************************************************************** * Copyright (c) 2022 Analog Devices, Inc. * All rights reserved. * * This software is proprietary to Analog Devices, Inc. and its licensors. * By using this software you agree to the terms of the associated * Analog Devices Software License Agreement. *****************************************************************************/ /******************************************************************************/ /***************************** Include Files **********************************/ /******************************************************************************/ #include "app_config.h" /******************************************************************************/ /********************** Macros and Constants Definition ***********************/ /******************************************************************************/ /******************************************************************************/ /********************** Variables and User Defined Data Types *****************/ /******************************************************************************/ /* AD4130 device initialization parameters */ struct ad413x_init_param ad4130_noise_test_config_params = { .spi_init = &spi_init_params, /* Setup (Preset) Configurations */ .preset = { // Setup 0 { .ref_buf = { .ref_buf_p_en = true, .ref_buf_m_en = true, }, .ref_sel = AD413X_REFOUT_AVSS, .gain = AD413X_GAIN_1, .filter = AD4130_FILTER_TYPE, .s_time = AD413X_32_MCLK }, }, /* Chnnel Configurations */ .ch = { // Chn0 { .preset = AD413X_PRESET_0, .enable = 1, .ain_p = AD413X_AIN0, .ain_m = AD413X_AIN1 }, }, .chip_id = AD4130_8, .mclk = AD413X_INT_76_8_KHZ_OUT_OFF, .bipolar = true, .int_ref = AD413X_INTREF_2_5V, .standby_ctrl = { .standby_int_ref_en = true, .standby_vbias_en = true }, .v_bias = NO_OS_BIT(0), // V_Bias on AIN0 .data_stat = 0, .spi_crc_en = 0 };