www.pudn.com > BLDC_Sensorless_FOC.rar > adc2_defines.h, change:2015-08-17,size:5407b


/*sha256=29CECE2BBFB8381FAB22D9C71900D4AF5FCBA70D187AA9ABC2F86AE168150ADE*/ 
/** 
 * @cond 
 *********************************************************************************************************************** 
 * 
 * Copyright (c) 2015, Infineon Technologies AG 
 * All rights reserved. 
 * 
 * Redistribution and use in source and binary forms, with or without modification,are permitted provided that the 
 * following conditions are met: 
 * 
 *   Redistributions of source code must retain the above copyright notice, this list of conditions and the  following 
 *   disclaimer. 
 * 
 *   Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the 
 *   following disclaimer in the documentation and/or other materials provided with the distribution. 
 * 
 *   Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote 
 *   products derived from this software without specific prior written permission. 
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE  FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
 * WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT  OF THE 
 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
 * 
 **********************************************************************************************************************/ 
 
/*------------------------------------------------------------------------------ 
IFXConfigWizard output file 
created on:Mo Aug 17 13:48:35 2015 
------------------------------------------------------------------------------*/ 
 
#ifndef _ADC2_DEFINES_H 
#define _ADC2_DEFINES_H 
 
#ifndef IFXConfigWizard_Version 
  #define IFXConfigWizard_Version 1.8.2 
#endif 
 
#ifndef ADC2_CH0_LOTH_VOLT 
  #define ADC2_CH0_LOTH_VOLT 5.078 
#endif 
 
#ifndef ADC2_CH0_UPTH_VOLT 
  #define ADC2_CH0_UPTH_VOLT 16.88 
#endif 
 
#ifndef ADC2_CH1_LOTH_VOLT 
  #define ADC2_CH1_LOTH_VOLT 5.78 
#endif 
 
#ifndef ADC2_CH1_UPTH_VOLT 
  #define ADC2_CH1_UPTH_VOLT 17 
#endif 
 
#ifndef ADC2_CH2_LOTH_VOLT 
  #define ADC2_CH2_LOTH_VOLT 5.78 
#endif 
 
#ifndef ADC2_CH2_UPTH_VOLT 
  #define ADC2_CH2_UPTH_VOLT 24 
#endif 
 
#ifndef ADC2_CH3_LOTH_VOLT 
  #define ADC2_CH3_LOTH_VOLT 6 
#endif 
 
#ifndef ADC2_CH3_UPTH_VOLT 
  #define ADC2_CH3_UPTH_VOLT 40 
#endif 
 
#ifndef ADC2_CH4_LOTH_VOLT 
  #define ADC2_CH4_LOTH_VOLT 5.078 
#endif 
 
#ifndef ADC2_CH4_UPTH_VOLT 
  #define ADC2_CH4_UPTH_VOLT 16.88 
#endif 
 
#ifndef ADC2_CH5_LOTH_VOLT 
  #define ADC2_CH5_LOTH_VOLT 4.5 
#endif 
 
#ifndef ADC2_CH5_UPTH_VOLT 
  #define ADC2_CH5_UPTH_VOLT 5.5 
#endif 
 
#ifndef ADC2_CH6_LOTH_VOLT 
  #define ADC2_CH6_LOTH_VOLT 4.5 
#endif 
 
#ifndef ADC2_CH6_UPTH_VOLT 
  #define ADC2_CH6_UPTH_VOLT 5.5 
#endif 
 
#ifndef ADC2_CH7_LOTH_VOLT 
  #define ADC2_CH7_LOTH_VOLT 1.1 
#endif 
 
#ifndef ADC2_CH7_UPTH_VOLT 
  #define ADC2_CH7_UPTH_VOLT 1.3 
#endif 
 
#ifndef ADC2_CH8_LOTH_VOLT 
  #define ADC2_CH8_LOTH_VOLT 1.35 
#endif 
 
#ifndef ADC2_CH8_UPTH_VOLT 
  #define ADC2_CH8_UPTH_VOLT 1.6 
#endif 
 
#ifndef ADC2_CH9_LOTH_DEG 
  #define ADC2_CH9_LOTH_DEG 150 
#endif 
 
#ifndef ADC2_CH9_UPTH_DEG 
  #define ADC2_CH9_UPTH_DEG 200 
#endif 
 
#ifndef ADC2_CLK 
  #define ADC2_CLK 20 
#endif 
 
/*ADC2_CTRL1: 0|(0<<1)|(0<<2)|(0<<3)|(0<<4)|(0<<5)*/ 
#ifndef ADC2_CTRL1 
  #define ADC2_CTRL1 (0x0u) 
#endif 
 
/*ADC2_CTRL2: 1|(7<<8)|(0<<2)*/ 
#ifndef ADC2_CTRL2 
  #define ADC2_CTRL2 (0x701u) 
#endif 
 
/*ADC2_CTRL4: 0|(1<<1)|(0<<2)|(0<<3)|(0<<4)|(0<<5)|(0<<8)|(0<<9)|(0<<10)|(0<<11\ 
)*/ 
#ifndef ADC2_CTRL4 
  #define ADC2_CTRL4 (0x2u) 
#endif 
 
/*ADC2_CTRL_STS: (0<<16)|(0<<17)*/ 
#ifndef ADC2_CTRL_STS 
  #define ADC2_CTRL_STS (0x0u) 
#endif 
 
/*ADC2_FILTCOEFF0_5: 0|(0<<2)|(0<<4)|(0<<6)|(0<<8)|(0<<10)*/ 
#ifndef ADC2_FILTCOEFF0_5 
  #define ADC2_FILTCOEFF0_5 (0x0u) 
#endif 
 
/*ADC2_FILT_LO_CTRL: 0|(1<<1)|(0<<2)|(0<<3)|(0<<4)|(0<<5)*/ 
#ifndef ADC2_FILT_LO_CTRL 
  #define ADC2_FILT_LO_CTRL (0x2u) 
#endif 
 
/*ADC2_FILT_UP_CTRL: 0|(1<<1)|(0<<2)|(0<<3)|(0<<4)|(0<<5)*/ 
#ifndef ADC2_FILT_UP_CTRL 
  #define ADC2_FILT_UP_CTRL (0x2u) 
#endif 
 
/*ADC2_TH0_3_LOWER: 58|(66<<8)|(46<<16)|(28<<24)*/ 
#ifndef ADC2_TH0_3_LOWER 
  #define ADC2_TH0_3_LOWER (0x1C2E423Au) 
#endif 
 
/*ADC2_TH0_3_UPPER: 192|(194<<8)|(194<<16)|(191<<24)*/ 
#ifndef ADC2_TH0_3_UPPER 
  #define ADC2_TH0_3_UPPER (0xBFC2C2C0u) 
#endif 
 
/*ADC2_TH4_5_LOWER: 41|(153<<8)*/ 
#ifndef ADC2_TH4_5_LOWER 
  #define ADC2_TH4_5_LOWER (0x9929u) 
#endif 
 
/*ADC2_TH4_5_UPPER: 136|(187<<8)*/ 
#ifndef ADC2_TH4_5_UPPER 
  #define ADC2_TH4_5_UPPER (0xBB88u) 
#endif 
 
/*ADC2_TH6_9_LOWER: 204|(171<<8)|(210<<16)|(197<<24)*/ 
#ifndef ADC2_TH6_9_LOWER 
  #define ADC2_TH6_9_LOWER (0xC5D2ABCCu) 
#endif 
 
/*ADC2_TH6_9_UPPER: 250|(202<<8)|(249<<16)|(209<<24)*/ 
#ifndef ADC2_TH6_9_UPPER 
  #define ADC2_TH6_9_UPPER (0xD1F9CAFAu) 
#endif 
 
 
#endif