CodeForge QQ客服 CodeForge 400电话 客服电话 4006316121
首页 » 源代码 » STM32+CAN总线通信 » stm32f10x_adc.h

stm32f10x_adc.h ( 文件浏览 )

文件源自:STM32+CAN总线通信
源码简介:
  • lg1994 发布于2018-03-31
  • 浏览次数:0
  • 下载次数:0
  • 下载需 1 积分
  • 侵权举报
			/**
  ******************************************************************************
  * @file    stm32f10x_adc.h
  * @author  MCD Application Team
  * @version V3.1.0
  * @date    06/19/2009
  * @brief   This file contains all the functions prototypes for the ADC firmware 
  *          library.
  ******************************************************************************
  * @copy
  *
  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  *
  * <h2><center>&copy; COPYRIGHT 2009 STMicroelectronics</center></h2>
  */ 

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM32F10x_ADC_H
#define __STM32F10x_ADC_H

#ifdef __cplusplus
 extern "C" {

#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x.h"

/** @addtogroup STM32F10x_StdPeriph_Driver
  * @{

  */

/** @addtogroup ADC
  * @{

  */

/** @defgroup ADC_Exported_Types
  * @{

  */

/** 
  * @brief  ADC Init structure definition  
  */

typedef struct
{

  uint32_t ADC_Mode;                      /*!< Configures the ADC to operate in independent or
                                               dual mode. 
                                               This parameter can be a value of @ref ADC_mode */

  FunctionalState ADC_ScanConvMode;       /*!< Specifies whether the conversion is performed in
                                               Scan (multichannels) or Single (one channel) mode.
                                               This parameter can be set to ENABLE or DISABLE */

  FunctionalState ADC_ContinuousConvMode; /*!< Specifies whether the conversion is performed in
                                               Continuous or Single mode.
                                               This parameter can be set to ENABLE or DISABLE. */

  uint32_t ADC_ExternalTrigConv;          /*!< Defines the external trigger used to start the analog
                                               to digital conversion of regular channels. This parameter
                                               can be a value of @ref ADC_external_trigger_sources_for_regular_channels_conversion */

  uint32_t ADC_DataAlign;                 /*!< Specifies whether the ADC data alignment is left or right.
                                               This parameter can be a value of @ref ADC_data_align */

  uint8_t ADC_NbrOfChannel;               /*!< Specifies the number of ADC channels that will be converted
                                               using the sequencer for regular channel group.
                                               This parameter must range from 1 to 16. */

}ADC_InitTypeDef;
/**
  * @
}
  */

/** @defgroup ADC_Exported_Constants
  * @{

  */

#define IS_ADC_ALL_PERIPH(PERIPH) (((PERIPH) == ADC1) || \
                                   ((PERIPH) == ADC2) || \
                                   ((PERIPH) == ADC3))

#define IS_ADC_DMA_PERIPH(PERIPH) (((PERIPH) == ADC1) || \
                                   ((PERIPH) == ADC3))

/** @defgroup ADC_mode 
  * @{

  */

#define ADC_Mode_Independent                       ((uint32_t)0x00000000)
#define ADC_Mode_RegInjecSimult                    ((uint32_t)0x00010000)
#define ADC_Mode_RegSimult_AlterTrig               ((uint32_t)0x00020000)
#define ADC_Mode_InjecSimult_FastInterl            ((uint32_t)0x00030000)
#define ADC_Mode_InjecSimult_SlowInterl            ((uint32_t)0x00040000)
#define ADC_Mode_InjecSimult                       ((uint32_t)0x00050000)
#define ADC_Mode_RegSimult                         ((uint32_t)0x00060000)
#define ADC_Mode_FastInterl                        ((uint32_t)0x00070000)
#define ADC_Mode_SlowInterl                        ((uint32_t)0x00080000)
#define ADC_Mode_AlterTrig                         ((uint32_t)0x00090000)

#define IS_ADC_MODE(MODE) (((MODE) == ADC_Mode_Independent) || \
                           ((MODE) == ADC_Mode_RegInjecSimult) || \
                           ((MODE) == ADC_Mode_RegSimult_AlterTrig) || \
                           ((MODE) == ADC_Mode_InjecSimult_FastInterl) || \
                           ((MODE) == ADC_Mode_InjecSimult_SlowInterl) || \
                           ((MODE) == ADC_Mode_InjecSimult) || \
                           ((MODE) == ADC_Mode_RegSimult) || \
                           ((MODE) == ADC_Mode_FastInterl) || \
                           ((MODE) == ADC_Mode_SlowInterl) || \
                           ((MODE) == ADC_Mode_AlterTrig))
/**
  * @
}
  */

/** @defgroup ADC_external_trigger_sources_for_regular_channels_conversion 
  * @{

  */

#define ADC_ExternalTrigConv_T1_CC1                ((uint32_t)0x00000000) /*!< For ADC1 and ADC2 */
#define ADC_ExternalTrigConv_T1_CC2                ((uint32_t)0x00020000) /*!< For ADC1 and ADC2 */
#define ADC_ExternalTrigConv_T2_CC2                ((uint32_t)0x00060000) /*!< For ADC1 and ADC2 */
#define ADC_ExternalTrigConv_T3_TRGO               ((uint32_t)0x00080000) /*!< For ADC1 and ADC2 */
#define ADC_ExternalTrigConv_T4_CC4                ((uint32_t)0x000A0000) /*!< For ADC1 and ADC2 */
#define ADC_ExternalTrigConv_Ext_IT11_TIM8_TRGO    ((uint32_t)0x000C0000) /*!< For ADC1 and ADC2 */

#define ADC_ExternalTrigConv_T1_CC3                ((uint32_t)0x00040000) /*!< For ADC1, ADC2 and ADC3 */
#define ADC_ExternalTrigConv_None                  ((uint32_t)0x000E0000) /*!< For ADC1, ADC2 and ADC3 */

#define ADC_ExternalTrigConv_T3_CC1                ((uint32_t)0x00000000) /*!< For ADC3 only */
#define ADC_ExternalTrigConv_T2_CC3                ((uint32_t)0x00020000) /*!< For ADC3 only */
#define ADC_ExternalTrigConv_T8_CC1                ((uint32_t)0x00060000) /*!< For ADC3 only */
#define ADC_ExternalTrigConv_T8_TRGO               ((uint32_t)0x00080000) /*!< For ADC3 only */
#define ADC_ExternalTrigConv_T5_CC1                ((uint32_t)0x000A0000) /*!< For ADC3 only */
#define ADC_ExternalTrigConv_T5_CC3                ((uint32_t)0x000C0000) /*!< For ADC3 only */

#define IS_ADC_EXT_TRIG(REGTRIG) (((REGTRIG) == ADC_ExternalTrigConv_T1_CC1) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_T1_CC2) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_T1_CC3) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_T2_CC2) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_T3_TRGO) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_T4_CC4) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_Ext_IT11_TIM8_TRGO) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_None) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_T3_CC1) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_T2_CC3) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_T8_CC1) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_T8_TRGO) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_T5_CC1) || \
                                  ((REGTRIG) == ADC_ExternalTrigConv_T5_CC3))
/**
  * @
}
  */

/** @defgroup ADC_data_align 
  * @{

  */

#define ADC_DataAlign_Right                        ((uint32_t)0x00000000)
#define ADC_DataAlign_Left                         ((uint32_t)0x00000800)
#define IS_ADC_DATA_ALIGN(ALIGN) (((ALIGN) == ADC_DataAlign_Right) || \
                                  ((ALIGN) == ADC_DataAlign_Left))
/**
  * @
}
  */

/** @defgroup ADC_channels 
  * @{

  */

#define ADC_Channel_0                               ((uint8_t)0x00)
#define ADC_Channel_1                               ((uint8_t)0x01)
#define ADC_Channel_2                               ((uint8_t)0x02)
#define ADC_Channel_3                               ((uint8_t)0x03)
#define ADC_Channel_4                               ((uint8_t)0x04)
#define ADC_Channel_5                               ((uint8_t)0x05)
#define ADC_Channel_6                               ((uint8_t)0x06)
#define ADC_Channel_7                               ((uint8_t)0x07)
#define ADC_Channel_8                               ((uint8_t)0x08)
#define ADC_Channel_9                               ((uint8_t)0x09)
#define ADC_Channel_10                              ((uint8_t)0x0A)
#define ADC_Channel_11                              ((uint8_t)0x0B)
#define ADC_Channel_12                              ((uint8_t)0x0C)
#define ADC_Channel_13                              ((uint8_t)0x0D)
#define ADC_Channel_14                              ((uint8_t)0x0E)
#define ADC_Channel_15                              ((uint8_t)0x0F)
#define ADC_Channel_16                              ((uint8_t)0x10)
#define ADC_Channel_17                              ((uint8_t)0x11)

#define IS_ADC_CHANNEL(CHANNEL) (((CHANNEL) == ADC_Channel_0) || ((CHANNEL) == ADC_Channel_1) || \
                                 ((CHANNEL) == ADC_Channel_2) || ((CHANNEL) == ADC_Channel_3) || \
                                 ((CHANNEL) == ADC_Channel_4) || ((CHANNEL) == ADC_Channel_5) || \
                                 ((CHANNEL) == ADC_Channel_6) || ((CHANNEL) == ADC_Channel_7) || \
                                 ((CHANNEL) == ADC_Channel_8) || ((CHANNEL) == ADC_Channel_9) || \
                                 ((CHANNEL) == ADC_Channel_10) || ((CHANNEL) == ADC_Channel_11) || \
                                 ((CHANNEL) == ADC_Channel_12) || ((CHANNEL) == ADC_Channel_13) || \
                                 ((CHANNEL) == ADC_Channel_14) || ((CHANNEL) == ADC_Channel_15) || \
                                 ((CHANNEL) == ADC_
...
...
(文件超长,未完全显示,请下载后阅读剩余部分)
			
...
展开> <收缩

下载源码到电脑,阅读使用更方便

1 积分

快速下载
还剩0行未阅读,继续阅读
云测速

源码文件列表

温馨提示: 点击源码文件名可预览文件内容哦 ^_^
...
名称 大小 修改日期
JLink0.00 B239|48%
JLinkLog.txt54.01 kB16-02-12|17:55
JLinkSettings.ini285.00 B16-02-12|17:55
USART.plg4.16 kB16-02-12|17:55
USART_USART.dep22.03 kB12-07-12|11:20
USART_uvopt.bak153.56 kB12-07-12|11:21
USART_uvproj.bak16.30 kB16-02-12|17:55
USART.uvproj16.69 kB25-05-12|18:14
startup_stm32f10x_hd.lst56.92 kB12-07-12|11:20
USART.map37.58 kB12-07-12|11:20
core_cm3.crf3.46 kB12-07-12|11:20
core_cm3.d100.00 B12-07-12|11:20
core_cm3.o10.06 kB12-07-12|11:20
glcd.crf309.44 kB16-02-12|17:55
glcd.d1.78 kB16-02-12|17:55
glcd.o351.39 kB16-02-12|17:55
main.crf309.86 kB12-07-12|11:20
main.d1.79 kB12-07-12|11:20
misc.crf304.03 kB12-07-12|11:20
misc.d1.80 kB12-07-12|11:20
misc.o328.88 kB12-07-12|11:20
startup_stm32f10x_hd.d88.00 B12-07-12|11:20
startup_stm32f10x_hd.o6.61 kB12-07-12|11:20
stm32f10x_flash.crf309.99 kB12-07-12|11:20
stm32f10x_flash.d2.12 kB12-07-12|11:20
stm32f10x_flash.o337.75 kB12-07-12|11:20
stm32f10x_gpio.crf307.37 kB12-07-12|11:20
stm32f10x_gpio.d2.09 kB12-07-12|11:20
stm32f10x_gpio.o334.97 kB12-07-12|11:20
stm32f10x_rcc.crf310.95 kB12-07-12|11:20
stm32f10x_rcc.d2.06 kB12-07-12|11:20
stm32f10x_rcc.o339.46 kB12-07-12|11:20
stm32f10x_usart.crf309.02 kB12-07-12|11:20
stm32f10x_usart.d2.12 kB12-07-12|11:20
stm32f10x_usart.o338.39 kB12-07-12|11:20
system_stm32f10x.crf304.57 kB12-07-12|11:20
system_stm32f10x.d2.05 kB12-07-12|11:20
system_stm32f10x.o328.75 kB12-07-12|11:20
usart.crf304.74 kB12-07-12|11:20
usart.d1.77 kB12-07-12|11:20
USART.hex22.22 kB12-07-12|11:20
USART.htm58.04 kB12-07-12|11:20
USART.lnp537.00 B12-07-12|11:20
usart.o330.48 kB12-07-12|11:20
USART.plg3.47 kB12-07-12|11:21
USART.sct479.00 B16-02-12|17:55
USART.tra1.72 kB12-07-12|11:20
stm32f10x_can.d2.06 kB12-07-12|11:20
stm32f10x_can.crf311.10 kB12-07-12|11:20
stm32f10x_can.o337.95 kB12-07-12|11:20
stm32f10x_it.d2.02 kB12-07-12|11:20
stm32f10x_it.crf304.43 kB12-07-12|11:20
ExtDll.iex19.00 B28-05-12|11:10
stm32f10x_it.o331.02 kB12-07-12|11:20
main.o334.16 kB12-07-12|11:20
USART.axf300.82 kB12-07-12|11:20
main.c9.86 kB12-07-12|11:21
stm32f10x_conf.h3.05 kB16-02-12|17:55
stm32f10x_it.c5.64 kB12-07-12|10:42
stm32f10x_it.h1.97 kB25-05-12|15:58
USART.c3.76 kB16-02-12|17:55
USART.h493.00 B16-02-12|17:55
License.doc39.00 kB16-02-12|17:55
core_cm3.c16.80 kB16-02-12|17:55
core_cm3.h45.44 kB16-02-12|17:55
stm32f10x.h579.48 kB16-02-12|17:55
system_stm32f10x.c29.90 kB16-02-12|17:55
system_stm32f10x.h2.35 kB16-02-12|17:55
startup_stm32f10x_cl.s15.23 kB16-02-12|17:55
startup_stm32f10x_hd.s15.51 kB16-02-12|17:55
startup_stm32f10x_ld.s11.88 kB16-02-12|17:55
startup_stm32f10x_md.s12.27 kB16-02-12|17:55
startup_stm32f10x_cl.s12.24 kB16-02-12|17:55
startup_stm32f10x_hd.s12.70 kB16-02-12|17:55
startup_stm32f10x_ld.s9.28 kB16-02-12|17:55
startup_stm32f10x_md.s9.76 kB16-02-12|17:55
startup_stm32f10x_cl.s15.93 kB16-02-12|17:55
startup_stm32f10x_hd.s16.32 kB16-02-12|17:55
startup_stm32f10x_ld.s12.04 kB16-02-12|17:55
startup_stm32f10x_md.s12.30 kB16-02-12|17:55
CMSIS_Core.htm51.23 kB16-02-12|17:55
misc.h8.68 kB16-02-12|17:55
stm32f10x_adc.h20.94 kB16-02-12|17:55
stm32f10x_bkp.h7.29 kB16-02-12|17:55
stm32f10x_can.h20.02 kB16-02-12|17:55
stm32f10x_crc.h2.02 kB16-02-12|17:55
stm32f10x_dac.h13.45 kB16-02-12|17:55
stm32f10x_dbgmcu.h3.06 kB16-02-12|17:55
stm32f10x_dma.h20.09 kB16-02-12|17:55
stm32f10x_exti.h6.53 kB16-02-12|17:55
stm32f10x_flash.h19.07 kB16-02-12|17:55
stm32f10x_fsmc.h25.57 kB16-02-12|17:55
stm32f10x_gpio.h16.89 kB16-02-12|17:55
stm32f10x_i2c.h17.56 kB16-02-12|17:55
stm32f10x_iwdg.h3.65 kB16-02-12|17:55
stm32f10x_pwr.h4.19 kB16-02-12|17:55
stm32f10x_rcc.h28.34 kB16-02-12|17:55
stm32f10x_rtc.h3.68 kB16-02-12|17:55
stm32f10x_sdio.h21.26 kB16-02-12|17:55
stm32f10x_spi.h17.67 kB16-02-12|17:55
stm32f10x_tim.h43.85 kB16-02-12|17:55
stm32f10x_usart.h15.92 kB16-02-12|17:55
stm32f10x_wwdg.h2.81 kB16-02-12|17:55
misc.c6.77 kB16-02-12|17:55
stm32f10x_adc.c45.91 kB16-02-12|17:55
stm32f10x_bkp.c8.30 kB16-02-12|17:55
stm32f10x_can.c31.09 kB16-02-12|17:55
stm32f10x_crc.c3.26 kB16-02-12|17:55
stm32f10x_dac.c13.70 kB16-02-12|17:55
stm32f10x_dbgmcu.c4.28 kB16-02-12|17:55
stm32f10x_dma.c27.46 kB16-02-12|17:55
stm32f10x_exti.c6.69 kB16-02-12|17:55
stm32f10x_flash.c25.89 kB16-02-12|17:55
stm32f10x_fsmc.c34.25 kB16-02-12|17:55
stm32f10x_gpio.c18.74 kB16-02-12|17:55
stm32f10x_i2c.c36.75 kB16-02-12|17:55
stm32f10x_iwdg.c4.71 kB16-02-12|17:55
stm32f10x_pwr.c8.76 kB16-02-12|17:55
stm32f10x_rcc.c48.46 kB16-02-12|17:55
stm32f10x_rtc.c8.46 kB16-02-12|17:55
stm32f10x_sdio.c28.13 kB16-02-12|17:55
stm32f10x_spi.c29.36 kB16-02-12|17:55
stm32f10x_tim.c102.23 kB16-02-12|17:55
stm32f10x_usart.c34.23 kB16-02-12|17:55
stm32f10x_wwdg.c5.51 kB16-02-12|17:55
USART.uvopt153.56 kB12-07-12|11:21
arm0.00 B12-07-12|10:50
gcc0.00 B12-07-12|10:50
iar0.00 B12-07-12|10:50
startup0.00 B12-07-12|10:50
CM30.00 B12-07-12|10:50
Documentation0.00 B12-07-12|10:50
Core0.00 B12-07-12|10:50
inc0.00 B12-07-12|10:50
src0.00 B12-07-12|10:50
App0.00 B12-07-12|10:50
CMSIS0.00 B12-07-12|10:50
STM32F10x_StdPeriph_Driver0.00 B12-07-12|10:50
Lis0.00 B12-07-12|10:50
Obj0.00 B12-07-12|10:50
Source0.00 B12-07-12|10:50
CAN_NET_V1.00.00 B12-07-12|10:50
云测速

stm32f10x_adc.h (1.70 MB)

需要 1 积分
您持有 积分

CodeForge积分(原CF币)全新升级,功能更强大,使用更便捷,不仅可以用来下载海量源代码马上还可兑换精美小礼品了 了解更多

您的积分不足

支付宝优惠套餐快速获取 30 积分

订单支付完成后,积分将自动加入到您的账号。以下是优惠期的人民币价格,优惠期过后将恢复美元价格。

更多付款方式:网银PayPal

上传代码,免费获取

您本次下载所消耗的积分将转交上传作者。

同一源码,30天内重复下载,只扣除一次积分。

登录 CodeForge

还没有CodeForge账号? 立即注册
关注微博
联系客服

Switch to the English version?

Yes
CodeForge 英文版
No
CodeForge 中文版

完善个人资料,获价值¥30元积分奖励!

^_^"呃 ...

Sorry!这位大神很神秘,未开通博客呢,请浏览一下其他的吧
好的