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_current_mode_config.h
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_ */
Generated on Mon Aug 1 2022 05:40:39 by
1.7.2