Analog Devices / Mbed OS EVAL-AD4110

Dependencies:   tempsensors sdp_k1_sdram

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ad4110_current_mode_config.h Source File

ad4110_current_mode_config.h

Go to the documentation of this file.
00001 /*************************************************************************//**
00002  *   @file   ad4110_current_mode_config.h
00003  *   @brief  Header for AD4110 current mode configurations module
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 #ifndef _AD4110_CURRENT_MODE_CONFIG_H_
00014 #define _AD4110_CURRENT_MODE_CONFIG_H_
00015 
00016 /******************************************************************************/
00017 /***************************** Include Files **********************************/
00018 /******************************************************************************/
00019 
00020 #include "ad4110.h"
00021 
00022 /******************************************************************************/
00023 /********************** Macros and Constants Definition ***********************/
00024 /******************************************************************************/
00025 
00026 /* Value for the external sense resistor in case of current mode.
00027  * The voltage drop acros the resistor is proportional to the input current */
00028 #define AD4110_R_SENSE          221
00029 
00030 /* Note: AD4110_DEFAULT_PGA value is applied during calculation of actual quantity
00031 * from the ADC raw value. GAIN_CH holds the value of the bitfield needed while
00032 * configuring the gain in the device during initialization. It has to be ensured
00033 * that these values are in match with each other */
00034 #define AD4110_DEFAULT_PGA      0.5
00035 #define GAIN_CH             AD4110_GAIN_0_5
00036 
00037 /******************************************************************************/
00038 /********************** Variables and User Defined Data Types *****************/
00039 /******************************************************************************/
00040 
00041 extern struct ad4110_init_param ad4110_current_mode_init_params;
00042 
00043 #endif /* end of _AD4110_CURRENT_MODE_CONFIG_H_ */