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_user_config.c
00001 /***************************************************************************//** 00002 * @file ad4110_user_config.c 00003 * @brief User configurations for AD4110-1 No-OS driver 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 "ad4110.h" 00018 #include "app_config.h" 00019 #include "ad4110_user_config.h" 00020 00021 /******************************************************************************/ 00022 /********************* Macros and Constants Definition ************************/ 00023 /******************************************************************************/ 00024 00025 /******************************************************************************/ 00026 /******************** Variables and User Defined Data Types *******************/ 00027 /******************************************************************************/ 00028 00029 /* AD4110-1 Init parameters*/ 00030 struct ad4110_init_param ad4110_user_config_params = { 00031 .spi_init = { 00032 .max_speed_hz = 10000000, 00033 .chip_select = SPI_CSB, 00034 .mode = NO_OS_SPI_MODE_3, 00035 .extra = &spi_extra_init_params, 00036 .platform_ops = &spi_platform_ops 00037 }, 00038 .volt_ref = AD4110_EXT_REF, 00039 .data_stat = AD4110_DISABLE, 00040 .data_length = AD4110_DATA_WL24, 00041 .afe_crc_en = AD4110_AFE_CRC_DISABLE, 00042 .adc_crc_en = AD4110_ADC_CRC_DISABLE, 00043 .op_mode = AD4110_VOLTAGE_MODE, 00044 .gain = GAIN_CH, 00045 .sync = AD4110_SYNC_EN, 00046 .afe_clk = AD4110_AFE_ADC_CLOCKED, 00047 .adc_clk = AD4110_ADC_INT_CLK_CLKIO, 00048 .addr = 0, 00049 .bipolar = true, 00050 .analog_input_buff = ENABLE_FULL_BUFFER, 00051 .odr = AD4110_ODR_SEL, 00052 .order = sinc5_sinc1 00053 } ;
Generated on Mon Aug 1 2022 05:40:39 by
1.7.2