IIO firmware for the AD4110
Dependencies: tempsensors sdp_k1_sdram
app/ad4110_rtd_mode_config.c
- Committer:
- Janani Sunil
- Date:
- 2022-08-01
- Revision:
- 1:a78dbaa4b05d
- Parent:
- 0:6ca37a8f8ba9
File content as of revision 1:a78dbaa4b05d:
/***************************************************************************//** * @file ad4110_rtd_mode_config.c * @brief Source file for RTD Mode config for AD4110 IIO Application ******************************************************************************** * 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" #include "ad4110.h" /******************************************************************************/ /********************* Macros and Constants Definition ************************/ /******************************************************************************/ /******************************************************************************/ /******************** Variables and User Defined Data Types *******************/ /******************************************************************************/ /******************************************************************************/ /************************** Functions Declaration *****************************/ /******************************************************************************/ /******************************************************************************/ /************************** Functions Definition ******************************/ /******************************************************************************/ /* AD4110-1 Init parameters*/ struct ad4110_init_param ad4110_rtd_mode_init_params = { .spi_init = { .max_speed_hz = 10000000, .chip_select = SPI_CSB, .mode = NO_OS_SPI_MODE_3, .extra = &spi_extra_init_params, .platform_ops = &spi_platform_ops }, .volt_ref = AD4110_EXT_REF, .data_stat = AD4110_DISABLE, .data_length = AD4110_DATA_WL24, .afe_crc_en = AD4110_AFE_CRC_DISABLE, .adc_crc_en = AD4110_ADC_CRC_DISABLE, #if defined (RTD_2WIRE_CONFIG) .op_mode = AD4110_RTD_2W_MODE, #elif defined (RTD_3WIRE_CONFIG) .op_mode = AD4110_RTD_3W_MODE, #elif defined (RTD_4WIRE_CONFIG) .op_mode = AD4110_RTD_4W_MODE, #endif .gain = GAIN_CH, .sync = AD4110_SYNC_EN, .afe_clk = AD4110_AFE_ADC_CLOCKED, .adc_clk = AD4110_ADC_INT_CLK_CLKIO, .addr = 0, .bipolar = true, .analog_input_buff = ENABLE_FULL_BUFFER, .odr = AD4110_ODR_SEL, .order = sinc5_sinc1 } ;