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: tempsensors sdp_k1_sdram
ad4110_rtd_mode_config.c
00001 /***************************************************************************//** 00002 * @file ad4110_rtd_mode_config.c 00003 * @brief Source file for RTD Mode config for AD4110 IIO Application 00004 ******************************************************************************** 00005 * Copyright (c) 2022 Analog Devices, Inc. 00006 * All rights reserved. 00007 * 00008 * This software is proprietary to Analog Devices, Inc. and its licensors. 00009 * By using this software you agree to the terms of the associated 00010 * Analog Devices Software License Agreement. 00011 *******************************************************************************/ 00012 00013 /******************************************************************************/ 00014 /***************************** Include Files **********************************/ 00015 /******************************************************************************/ 00016 00017 #include "app_config.h" 00018 #include "ad4110.h" 00019 00020 /******************************************************************************/ 00021 /********************* Macros and Constants Definition ************************/ 00022 /******************************************************************************/ 00023 00024 /******************************************************************************/ 00025 /******************** Variables and User Defined Data Types *******************/ 00026 /******************************************************************************/ 00027 00028 /******************************************************************************/ 00029 /************************** Functions Declaration *****************************/ 00030 /******************************************************************************/ 00031 00032 /******************************************************************************/ 00033 /************************** Functions Definition ******************************/ 00034 /******************************************************************************/ 00035 00036 /* AD4110-1 Init parameters*/ 00037 struct ad4110_init_param ad4110_rtd_mode_init_params = { 00038 .spi_init = { 00039 .max_speed_hz = 10000000, 00040 .chip_select = SPI_CSB, 00041 .mode = NO_OS_SPI_MODE_3, 00042 .extra = &spi_extra_init_params, 00043 .platform_ops = &spi_platform_ops 00044 }, 00045 .volt_ref = AD4110_EXT_REF, 00046 .data_stat = AD4110_DISABLE, 00047 .data_length = AD4110_DATA_WL24, 00048 .afe_crc_en = AD4110_AFE_CRC_DISABLE, 00049 .adc_crc_en = AD4110_ADC_CRC_DISABLE, 00050 #if defined (RTD_2WIRE_CONFIG) 00051 .op_mode = AD4110_RTD_2W_MODE, 00052 #elif defined (RTD_3WIRE_CONFIG) 00053 .op_mode = AD4110_RTD_3W_MODE, 00054 #elif defined (RTD_4WIRE_CONFIG) 00055 .op_mode = AD4110_RTD_4W_MODE, 00056 #endif 00057 .gain = GAIN_CH, 00058 .sync = AD4110_SYNC_EN, 00059 .afe_clk = AD4110_AFE_ADC_CLOCKED, 00060 .adc_clk = AD4110_ADC_INT_CLK_CLKIO, 00061 .addr = 0, 00062 .bipolar = true, 00063 .analog_input_buff = ENABLE_FULL_BUFFER, 00064 .odr = AD4110_ODR_SEL, 00065 .order = sinc5_sinc1 00066 } ;
Generated on Mon Aug 1 2022 05:40:39 by
1.7.2