Analog Devices / Mbed OS EVAL-AD4110

Dependencies:   tempsensors sdp_k1_sdram

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ad4110_user_config.c Source File

ad4110_user_config.c

Go to the documentation of this file.
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 } ;