HAL Driver API
HAL Drivers
Application Programming Interface
Document Number: SWRA193
Texas Instruments, Inc.
San Diego, California USA
Copyright © 2005-2009 Texas Instruments, Inc. All rights reserved.
HAL Drivers API SWRA1...
HAL Drivers
Application Programming Interface
Document Number: SWRA193
Texas Instruments, Inc.
San Diego, California USA
Copyright © 2005-2009 Texas Instruments, Inc. All rights reserved.
HAL Drivers API SWRA193 Version 1.5
Version Description Date
1.0 Initial release. 03/02/2006
1.1 Hal sleep updates 11/20/2006
1.2 Updated LCD and timers API 11/22/2006
1.3 Added CC2591 PA/LNA control APIs 06/11/2008
Added I2C interface and IR signal generation APIs
Updated UART API and made editorial changes 1.4 04/03/2009
1.5
Updated halSleep API
Removed halSleepWait API
Added a note in timer service
09/23/2011
i Copyright © 2005-2011 Texas Instruments, Inc. All rights reserved.
HAL Drivers API SWRA193 Version 1.5
TABLE OF CONTENTS
1. INTRODUCTION ...............................................................................................................................................1
1.1 PURPOSE.........................................................................................................................................................1
1.2 ACRONYMS.....................................................................................................................................................1
2. DRIVERS API OVERVIEW..............................................................................................................................2
2.1 FUNCTION CALLS ...........................................................................................................................................2
2.1.1 Initialization Function Calls..................................................................................................................2
2.1.2 Service Access Function Calls...............................................................................................................2
2.1.3 Callback Function Calls ........................................................................................................................2
2.2 SERVICES........................................................................................................................................................2
3. ADC SERVICE....................................................................................................................................................3
3.1 HALADCINIT ()...............................................................................................................................................3
3.1.1 Description ............................................................................................................................................3
3.1.2 Prototype ...............................................................................................................................................3
3.1.3 Parameter Details..................................................................................................................................3
3.1.4 Return ....................................................................................................................................................3
3.2 HALADCREAD () ............................................................................................................................................3
3.2.1 Description ............................................................................................................................................3
3.2.2 Prototype ...............................................................................................................................................3
3.2.3 Parameter Details..................................................................................................................................3
3.2.4 Return ....................................................................................................................................................3
3.3 CONSTANTS....................................................................................................................................................3
3.3.1 Channels ................................................................................................................................................3
3.3.2 Resolutions.............................................................................................................................................4
4. LCD SERVICE....................................................................................................................................................4
4.1 HALLCDINIT() ................................................................................................................................................4
4.1.1 Description ............................................................................................................................................4
4.1.2 Prototype ...............................................................................................................................................4
4.1.3 Paraneter Details...................................................................................................................................4
4.1.4 Return ....................................................................................................................................................4
4.2 HALLCDWRITESTRING()................................................................................................................................4
4.2.1 Description ............................................................................................................................................4
4.2.2 Prototype ...............................................................................................................................................4
4.2.3 Parameter Details..................................................................................................................................5
4.2.4 Return ....................................................................................................................................................5
4.3 HALLCDWRITEVALUE() ................................................................................................................................5
4.3.1 Description ............................................................................................................................................5
4.3.2 Prototype ...............................................................................................................................................5
4.3.3 Parameter Details..................................................................................................................................5
4.4 HALLCDWRITESCREEN() ...............................................................................................................................5
4.4.1 Description ............................................................................................................................................5
4.4.2 Prototype ...............................................................................................................................................5
4.4.3 Parameter Details..................................................................................................................................5
4.4.4 Return ....................................................................................................................................................5
4.5 HALLCDWRITESTRINGVALUE() ....................................................................................................................5
4.5.1 Description ............................................................................................................................................5
4.5.2 Prototype ...............................................................................................................................................5
4.5.3 Parameter Details..................................................................................................................................6
4.5.4 Return ....................................................................................................................................................6
ii Copyright © 2005-2011 Texas Instruments, Inc. All rights reserved.
HAL Drivers API SWRA193 Version 1.5
4.6 HALLCDWRITESTRINGVALUEVALUE() .........................................................................................................6
4.6.1 Description ............................................................................................................................................6
4.6.2 Prototype ...............................................................................................................................................6
4.6.3 Parameter Details..................................................................................................................................6
4.6.4 Return ....................................................................................................................................................6
4.7 HALLCDDISPLAYPERCENTBAR() ...................................................................................................................7
4.7.1 Description ............................................................................................................................................7
4.7.2 Prototype ...............................................................................................................................................7
4.7.3 Parameter Details..................................................................................................................................7
4.7.4 Return ....................................................................................................................................................7
4.8 CONSTANTS....................................................................................................................................................7
4.8.1 Options...................................................................................................................................................7
5. LED SERVICE ....................................................................................................................................................7
5.1 HALLEDINIT() ................................................................................................................................................7
5.1.1 Description ............................................................................................................................................7
5.1.2 Prototype ...............................................................................................................................................7
5.1.3 Parameter Details..................................................................................................................................8
5.1.4 Return ....................................................................................................................................................8
5.2 HALLEDSET().................................................................................................................................................8
5.2.1 Description ............................................................................................................................................8
5.2.2 Prototype ...............................................................................................................................................8
5.2.3 Parameter Details..................................................................................................................................8
5.2.4 Return ....................................................................................................................................................8
5.3 HALLEDBLINK() ............................................................................................................................................8
5.3.1 Description ............................................................................................................................................8
5.3.2 Prototype ...............................................................................................................................................8
5.3.3 Parameter Details..................................................................................................................................8
5.3.4 Return ....................................................................................................................................................8
5.4 HALLEDGETSTATE()......................................................................................................................................8
5.4.1 Description ............................................................................................................................................8
5.4.2 Prototype ...............................................................................................................................................9
5.4.3 Parameter Details..................................................................................................................................9
5.4.4 Return ....................................................................................................................................................9
5.5 HALLEDENTERSLEEP() ..................................................................................................................................9
5.5.1 Description ............................................................................................................................................9
5.5.2 Prototype ...............................................................................................................................................9
5.5.3 Parameter Details..................................................................................................................................9
5.5.4 Return ....................................................................................................................................................9
5.6 HALLEDEXITSLEEP() .....................................................................................................................................9
5.6.1 Description ............................................................................................................................................9
5.6.2 Prototype ...............................................................................................................................................9
5.6.3 Parameter Details..................................................................................................................................9
5.6.4 Return ....................................................................................................................................................9
5.7 CONSTANTS....................................................................................................................................................9
5.7.1 LEDs ......................................................................................................................................................9
5.7.2 Modes...................................................................................................................................................10
6. KEY SERVICE..................................................................................................................................................10
6.1 HALKEYINIT()..............................................................................................................................................10
6.1.1 Description ..........................................................................................................................................10
6.1.2 Prototype .............................................................................................................................................10
6.1.3 Parameter Details................................................................................................................................10
6.1.4 Return ..................................................................................................................................................10
6.2 HALKEYCONFIG() ........................................................................................................................................10
iii Copyright © 2005-2011 Texas Instruments, Inc. All rights reserved.
HAL Drivers API SWRA193 Version 1.5
6.2.1 Description ..........................................................................................................................................10
6.2.2 Prototype .............................................................................................................................................11
6.2.3 Parameter Details................................................................................................................................11
6.2.4 Return ..................................................................................................................................................11
6.3 HALKEYREAD() ...........................................................................................................................................11
6.3.1 Description ..........................................................................................................................................11
6.3.2 Prototype .............................................................................................................................................11
6.3.3 Parameter Details................................................................................................................................11
6.3.4 Return ..................................................................................................................................................11
6.4 HALKEYENTERSLEEP()................................................................................................................................11
6.4.1 Description ..........................................................................................................................................11
6.4.2 Prototype .............................................................................................................................................12
6.4.3 Parameter Details................................................................................................................................12
6.4.4 Return ..................................................................................................................................................12
6.5 HALKEYEXITSLEEP()...................................................................................................................................12
6.5.1 Description ..........................................................................................................................................12
6.5.2 Prototype .............................................................................................................................................12
6.5.3 Parameter Details......................
本文档为【HAL Driver API】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。