⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adc.h

📁 keil下开发的永磁同步电机矢量控制程序
💻 H
字号:
//****************************************************************************
// @Module        Analog / Digital Converter (ADC)
// @Filename      ADC.H
// @Project       svm.dav
//----------------------------------------------------------------------------
// @Controller    Infineon XC167CI-16F40
//
// @Compiler      Keil
//
// @Codegenerator 2.1
//
// @Description   This file contains all function prototypes and macros for 
//                the ADC module.
//
//----------------------------------------------------------------------------
// @Date          19.12.2003 11:31:22
//
//****************************************************************************

// USER CODE BEGIN (ADC_Header,1)

// USER CODE END



#ifndef _ADC_H_
#define _ADC_H_

//****************************************************************************
// @Project Includes
//****************************************************************************

// USER CODE BEGIN (ADC_Header,2)

// USER CODE END


//****************************************************************************
// @Macros
//****************************************************************************

// USER CODE BEGIN (ADC_Header,3)

// USER CODE END


//****************************************************************************
// @Defines
//****************************************************************************

//   This parameter identifies ADC fixed channel single conversion mode
#define ADC_FIXED 0

//   This parameter identifies ADC fixed channel continuous conversion mode
#define ADC_FIXED_CONTI 1

//   This parameter identifies ADC auto scan single conversion mode
#define ADC_SCAN 2

//   This parameter identifies ADC auto scan continuous conversion mode
#define ADC_SCAN_CONTI 3

//   This parameter identifies ADC analog channel 0
#define ADC_ANA_0 0

//   This parameter identifies ADC analog channel 1
#define ADC_ANA_1 1

//   This parameter identifies ADC analog channel 2
#define ADC_ANA_2 2

//   This parameter identifies ADC analog channel 3
#define ADC_ANA_3 3

//   This parameter identifies ADC analog channel 4
#define ADC_ANA_4 4

//   This parameter identifies ADC analog channel 5
#define ADC_ANA_5 5

//   This parameter identifies ADC analog channel 6
#define ADC_ANA_6 6

//   This parameter identifies ADC analog channel 7
#define ADC_ANA_7 7

//   This parameter identifies ADC analog channel 8
#define ADC_ANA_8 8

//   This parameter identifies ADC analog channel 9
#define ADC_ANA_9 9

//   This parameter identifies ADC analog channel 10
#define ADC_ANA_10 10

//   This parameter identifies ADC analog channel 11
#define ADC_ANA_11 11

//   This parameter identifies ADC analog channel 12
#define ADC_ANA_12 12

//   This parameter identifies ADC analog channel 13
#define ADC_ANA_13 13

//   This parameter identifies ADC analog channel 14
#define ADC_ANA_14 14

//   This parameter identifies ADC analog channel 15
#define ADC_ANA_15 15


// USER CODE BEGIN (ADC_Header,4)

// USER CODE END


//****************************************************************************
// @Typedefs
//****************************************************************************

// USER CODE BEGIN (ADC_Header,5)

// USER CODE END


//****************************************************************************
// @Imported Global Variables
//****************************************************************************

// USER CODE BEGIN (ADC_Header,6)

// USER CODE END


//****************************************************************************
// @Global Variables
//****************************************************************************

// USER CODE BEGIN (ADC_Header,7)
extern unsigned int iuin;
extern unsigned int ivin;
// USER CODE END


//****************************************************************************
// @Prototypes Of Global Functions
//****************************************************************************

void ADC_vInit(void);


// USER CODE BEGIN (ADC_Header,8)

// USER CODE END


//****************************************************************************
// @Interrupt Vectors
//****************************************************************************

#define ADC_C_INT    0x28
#define ADC_E_INT    0x29


// USER CODE BEGIN (ADC_Header,8)

// USER CODE END


#endif  // ifndef _ADC_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -