ImageVerifierCode 换一换
格式:DOCX , 页数:7 ,大小:53.20KB ,
资源ID:4770251      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-4770251.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(ADCdriverimplement0718v10Word格式.docx)为本站会员(b****2)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

ADCdriverimplement0718v10Word格式.docx

1、CreationContents1 Introduction 41.1 Overview 41.2 Reference 42. Type definition 53 Global Variable 64 Function Definitions 74.1 InitSync 74.2 DeInitSync 84.3 GetVersionOfDriver 94.4 ADC0_StartSampleSync 104.5 ADC0_StartSampleAllSync 104.6 ADC0_GetSync 104.7 ADC0_GetStateSync 114.8 ADC_StopSampleSync

2、 115 Resources Configuration 125.1 Periperal Config 125.2 Interrupt Config 126 Compile Environment 131 Introduction1.1 OverviewThis document describes the implementations of the ADC driver to be developed in the frame of the GEMS-K1 project. The ADC driver configures converting analog signals to dig

3、ital signals. 1.2 Reference1 ADC driver test report2. Type definitionTypeDescriptionRangeIO_ErrorTypeRecommended type: 16 bit unsigned value. Numbers from 0 to 15 are reserved for the HIS IO Library itself, numbers between 16 and 63 are defined in the HIS IO Driver document. Error codes from 64 to 1

4、27 are for driver specific error codes not defined in the HIS IO Driver document and numbers starting from 128 are reserved for future use.IO_E_OK IO_E_BUSY 1IO_E_UNKNOWN_MODE IO_U32 16 bit unsigned value. 100IO_ValueType 16 bit unsigned value.IO_DeviceStateTypeIO_STATE_IDLEIO_STATE_ACTIVE3 Global V

5、ariableThis chapter describes the global variable.Varialbes4 Function Definitions4.1 InitSyncSyntaxIO_ErrorType InitSync (void);ParametersnoneReturnIO_E_OK: initialization was successful.NotificationThis is the initialization function of the ADC function library. It is assumed that the SFRs used by

6、this library are in their reset state.ReentrancyNoRemarks4.2 DeInitSyncIO_ErrorType DeInitSync (void)None deinitialization was successful.This is the deinitialization function of the ADC function library. It is assumed that the SFRs used by this library are in their reset state.4.3 GetVersionOfDrive

7、rIO_U32 GetVersionOfDriver(void) This is the getting driver version function of the ADC function library. It is assumed that the SFRs used by this library are in their reset state.4.4 ADC0_StartSampleSyncIO_ErrorType ADC0_StartSampleSync(ubyte Channels) ADC0_StartSampleSync was successful.This funct

8、ion starts the measurement of analogue value of the specified ADC channel and stores the values to an internal buffer.4.5 ADC0_StartSampleAllSyncIO_ErrorType ADC0_StartSampleAllSync(void) ADC0_StartSampleAllSync was successful.This function starts the measurement of analogue values of all ADC channe

9、ls and stores the values to an internal buffer.4.6 ADC0_GetSyncIO_ValueType ADC0_GetSync(IO_ChannelType Channel)This function returns the analogue value specified by the ADC channel ADC0_GetSync was successful.4.7 ADC0_GetStateSyncIO_DeviceStateType ADC0_GetStateSync(void)IO_STATE_IDLE: a new ADC sa

10、mple can be startedIO_STATE_ACTIVE: the driver is busy.This function returns the device state of the ADC driver.4.8 ADC_StopSampleSyncvoid ADC_StopSampleSync(void)This function stops a measurement started with ADC0_StartSampleSync or ADC0_StartSampleAllSync.5 Resources ConfigurationThe resource used by ADC driver5.1 Periperal ConfigSourceAN0AN31As ADC driver input pins5.2 Interrupt ConfigSRNTOSPriorityNameADC0ADC0_SRN0INT72ADC0_viSRN0This is the interrupt service routine for the Service Request Node 0 of the ADC0 module.6 Compile EnvironmentCompile Tool: Tasking for Tricore

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2