没有合适的资源?快使用搜索试试~ 我知道了~
首页STM32L4/L4+ HAL库英文用户手册
"STM32L4/L4+ HAL库英文完整版用户手册"
STM32L4/L4+ HAL库是意法半导体(STMicroelectronics)为了简化开发者工作,降低开发时间和成本而推出的嵌入式软件平台。STM32Cube项目涵盖了STM32系列的所有产品。STM32Cube Version 1.x主要包含以下组件:
1. STM32CubeMX:这是一个图形化软件配置工具,通过图形向导生成C语言初始化代码,使得开发者能够快速配置STM32微控制器的外设。
2. 针对STM32L4系列和STM32L4+系列的全面嵌入式软件平台:这个平台包含了硬件抽象层(HAL)和低层APIs(LL APIs)。
- STM32 Cube HAL:这是STM32的抽象层软件,确保了在STM32系列间的最大移植性。HAL驱动层提供了对所有外设的通用多层接口,它旨在提供易于使用的、与硬件细节解耦的接口,从而简化编程过程。
- LL APIs:对于一部分外设,提供了低层APIs,它们比HAL更接近硬件,面向有经验的开发者,提供了更快、更轻量级的接口。
3. 一系列中间件组件:包括实时操作系统(RTOS)、USB和图形库等,这些组件为开发者提供了构建复杂应用的基础框架。
4. 全套的嵌入式软件工具和示例代码:这些工具和示例帮助开发者更好地理解和使用STM32L4/L4+的HAL库及其功能。
文档中详细介绍了STM32L4/L4+的HAL库和低层驱动的使用方法,包括如何配置、初始化和操作各种外设。此外,通过提供的例子,开发者可以学习如何有效地利用HAL和LL APIs进行程序设计,以实现低功耗应用,这是STM32L4/L4+系列的一个关键特性。
STM32L4系列和STM32L4+系列是STM32家族中面向超低功耗应用的产品,HAL库和LL APIs的设计旨在优化能源效率,同时保持强大的处理能力。通过HAL库,开发者可以方便地利用STM32L4/L4+的节能模式,如STOP和STANDBY模式,以及各种电源管理功能,以适应不同应用场景的需求。
STM32L4/L4+ HAL库是为STM32L4和STM32L4+系列微控制器量身定制的软件框架,其目的是简化开发流程,提高代码的可移植性和可读性,同时也支持开发者充分利用这些微控制器的低功耗特性。通过使用这个库,开发者可以专注于应用程序的逻辑,而不是底层硬件的细节。
Contents
UM1884
16/2232
DocID027704 Rev 7
44.1.1 Extended IO operation functions .................................................... 580
44.1.2 Peripheral Control functions ........................................................... 580
44.1.3 Detailed description of functions .................................................... 580
45 HAL OSPI Generic Driver ............................................................ 581
45.1 OSPI Firmware driver registers structures .................................... 581
45.1.1 OSPI_InitTypeDef ........................................................................... 581
45.1.2 OSPI_HandleTypeDef .................................................................... 581
45.1.3 OSPI_RegularCmdTypeDef ........................................................... 582
45.1.4 OSPI_HyperbusCfgTypeDef .......................................................... 583
45.1.5 OSPI_HyperbusCmdTypeDef ........................................................ 583
45.1.6 OSPI_AutoPollingTypeDef ............................................................. 583
45.1.7 OSPI_MemoryMappedTypeDef ..................................................... 583
45.1.8 OSPIM_CfgTypeDef ....................................................................... 584
45.2 OSPI Firmware driver API description ........................................... 584
45.2.1 How to use this driver ..................................................................... 584
45.2.2 Initialization and Configuration functions ........................................ 586
45.2.3 IO operation functions .................................................................... 586
45.2.4 Peripheral Control and State functions ........................................... 587
45.2.5 IO Manager configuration function ................................................. 587
45.2.6 Detailed description of functions .................................................... 588
45.3 OSPI Firmware driver defines ....................................................... 595
45.3.1 OSPI ............................................................................................... 595
46 HAL PCD Generic Driver ............................................................. 603
46.1 PCD Firmware driver registers structures ..................................... 603
46.1.1 PCD_HandleTypeDef ..................................................................... 603
46.2 PCD Firmware driver API description ............................................ 604
46.2.1 How to use this driver ..................................................................... 604
46.2.2 Initialization and de-initialization functions ..................................... 604
46.2.3 IO operation functions .................................................................... 604
46.2.4 Peripheral Control functions ........................................................... 604
46.2.5 Peripheral State functions .............................................................. 605
46.2.6 Detailed description of functions .................................................... 605
46.3 PCD Firmware driver defines ........................................................ 611
46.3.1 PCD ................................................................................................ 611
47 HAL PCD Extension Driver ......................................................... 613
47.1 PCDEx Firmware driver API description ....................................... 613
47.1.1 Extended features functions ........................................................... 613
UM1884
Contents
DocID027704 Rev 7
17/2232
47.1.2 Detailed description of functions .................................................... 613
48 HAL QSPI Generic Driver ............................................................ 616
48.1 QSPI Firmware driver registers structures .................................... 616
48.1.1 QSPI_InitTypeDef ........................................................................... 616
48.1.2 QSPI_HandleTypeDef .................................................................... 616
48.1.3 QSPI_CommandTypeDef ............................................................... 617
48.1.4 QSPI_AutoPollingTypeDef ............................................................. 617
48.1.5 QSPI_MemoryMappedTypeDef ..................................................... 618
48.2 QSPI Firmware driver API description ........................................... 618
48.2.1 How to use this driver ..................................................................... 618
48.2.2 Initialization and Configuration functions ........................................ 620
48.2.3 IO operation functions .................................................................... 620
48.2.4 Peripheral Control and State functions ........................................... 621
48.2.5 Detailed description of functions .................................................... 621
48.3 QSPI Firmware driver defines ....................................................... 628
48.3.1 QSPI ............................................................................................... 628
49 HAL PWR Generic Driver ............................................................ 635
49.1 PWR Firmware driver registers structures .................................... 635
49.1.1 PWR_PVDTypeDef ........................................................................ 635
49.2 PWR Firmware driver API description ........................................... 635
49.2.1 Initialization and de-initialization functions ..................................... 635
49.2.2 Peripheral Control functions ........................................................... 635
49.2.3 Detailed description of functions .................................................... 638
49.3 PWR Firmware driver defines ....................................................... 643
49.3.1 PWR ............................................................................................... 643
50 HAL PWR Extension Driver ........................................................ 649
50.1 PWREx Firmware driver registers structures ................................ 649
50.1.1 PWR_PVMTypeDef ........................................................................ 649
50.2 PWREx Firmware driver API description ....................................... 649
50.2.1 Extended Peripheral Initialization and de-initialization functions.... 649
50.2.2 Detailed description of functions .................................................... 650
50.3 PWREx Firmware driver defines ................................................... 660
50.3.1 PWREx ........................................................................................... 660
51 HAL RCC Generic Driver ............................................................. 672
51.1 RCC Firmware driver registers structures ..................................... 672
51.1.1 RCC_PLLInitTypeDef ..................................................................... 672
Contents
UM1884
18/2232
DocID027704 Rev 7
51.1.2 RCC_OscInitTypeDef ..................................................................... 672
51.1.3 RCC_ClkInitTypeDef ...................................................................... 673
51.2 RCC Firmware driver API description ........................................... 674
51.2.1 RCC specific features ..................................................................... 674
51.2.2 Initialization and de-initialization functions ..................................... 674
51.2.3 Peripheral Control functions ........................................................... 675
51.2.4 Detailed description of functions .................................................... 676
51.3 RCC Firmware driver defines ........................................................ 681
51.3.1 RCC ................................................................................................ 681
52 HAL RCC Extension Driver ......................................................... 724
52.1 RCCEx Firmware driver registers structures ................................. 724
52.1.1 RCC_PLLSAI1InitTypeDef ............................................................. 724
52.1.2 RCC_PLLSAI2InitTypeDef ............................................................. 724
52.1.3 RCC_PeriphCLKInitTypeDef .......................................................... 725
52.1.4 RCC_CRSInitTypeDef .................................................................... 727
52.1.5 RCC_CRSSynchroInfoTypeDef ..................................................... 728
52.2 RCCEx Firmware driver API description ....................................... 728
52.2.1 Extended Peripheral Control functions ........................................... 728
52.2.2 Extended clock management functions .......................................... 729
52.2.3 Extended Clock Recovery System Control functions ..................... 729
52.2.4 Detailed description of functions .................................................... 730
52.3 RCCEx Firmware driver defines .................................................... 737
52.3.1 RCCEx ............................................................................................ 737
53 HAL RNG Generic Driver............................................................. 774
53.1 RNG Firmware driver registers structures ..................................... 774
53.1.1 RNG_InitTypeDef ........................................................................... 774
53.1.2 NG_HandleTypeDef ....................................................................... 774
53.2 RNG Firmware driver API description ........................................... 774
53.2.1 How to use this driver ..................................................................... 774
53.2.2 Initialization and de-initialization functions ..................................... 774
53.2.3 Peripheral Control functions ........................................................... 775
53.2.4 Peripheral State functions .............................................................. 775
53.2.5 Detailed description of functions .................................................... 775
53.3 RNG Firmware driver defines ........................................................ 778
53.3.1 RNG ................................................................................................ 778
54 HAL RTC Generic Driver ............................................................. 781
54.1 RTC Firmware driver registers structures ..................................... 781
UM1884
Contents
DocID027704 Rev 7
19/2232
54.1.1 RTC_InitTypeDef ............................................................................ 781
54.1.2 RTC_TimeTypeDef ......................................................................... 781
54.1.3 RTC_DateTypeDef ......................................................................... 782
54.1.4 RTC_AlarmTypeDef ....................................................................... 783
54.1.5 RTC_HandleTypeDef ..................................................................... 783
54.2 RTC Firmware driver API description ............................................ 783
54.2.1 RTC Operating Condition ............................................................... 783
54.2.2 Backup Domain Reset .................................................................... 784
54.2.3 Backup Domain Access.................................................................. 784
54.2.4 How to use RTC Driver................................................................... 784
54.2.5 RTC and low power modes ............................................................ 784
54.2.6 Initialization and de-initialization functions ..................................... 785
54.2.7 RTC Time and Date functions ........................................................ 785
54.2.8 RTC Alarm functions ...................................................................... 785
54.2.9 Peripheral Control functions ........................................................... 786
54.2.10 Peripheral State functions .............................................................. 786
54.2.11 Detailed description of functions .................................................... 786
54.3 RTC Firmware driver defines ........................................................ 791
54.3.1 RTC ................................................................................................ 791
55 HAL RTC Extension Driver ......................................................... 801
55.1 RTCEx Firmware driver registers structures ................................. 801
55.1.1 RTC_TamperTypeDef .................................................................... 801
55.2 RTCEx Firmware driver API description ........................................ 802
55.2.1 How to use this driver ..................................................................... 802
55.2.2 RTC TimeStamp and Tamper functions ......................................... 803
55.2.3 RTC Wake-up functions ................................................................. 803
55.2.4 Extended Peripheral Control functions ........................................... 803
55.2.5 Extended features functions ........................................................... 804
55.2.6 Detailed description of functions .................................................... 804
55.3 RTCEx Firmware driver defines .................................................... 813
55.3.1 RTCEx ............................................................................................ 813
56 HAL SAI Generic Driver .............................................................. 833
56.1 SAI Firmware driver registers structures ....................................... 833
56.1.1 SAI_PdmInitTypeDef ...................................................................... 833
56.1.2 SAI_InitTypeDef ............................................................................. 833
56.1.3 SAI_FrameInitTypeDef ................................................................... 835
56.1.4 SAI_SlotInitTypeDef ....................................................................... 835
Contents
UM1884
20/2232
DocID027704 Rev 7
56.1.5 __SAI_HandleTypeDef ................................................................... 836
56.2 SAI Firmware driver API description ............................................. 837
56.2.1 How to use this driver ..................................................................... 837
56.2.2 Initialization and de-initialization functions ..................................... 839
56.2.3 IO operation functions .................................................................... 839
56.2.4 Peripheral State and Errors functions ............................................ 840
56.2.5 Detailed description of functions .................................................... 841
56.3 SAI Firmware driver defines .......................................................... 846
56.3.1 SAI .................................................................................................. 846
57 HAL SAI Extension Driver ........................................................... 854
57.1 SAIEx Firmware driver registers structures ................................... 854
57.1.1 SAIEx_PdmMicDelayParamTypeDef ............................................. 854
57.2 SAIEx Firmware driver API description ......................................... 854
57.2.1 Extended features functions ........................................................... 854
57.2.2 Detailed description of functions .................................................... 854
58 HAL SD Extension Driver ............................................................ 855
58.1 SDEx Firmware driver API description .......................................... 855
58.1.1 How to use this driver ..................................................................... 855
58.1.2 High Speed function ....................................................................... 855
58.1.3 Multibuffer functions ....................................................................... 855
58.1.4 Detailed description of functions .................................................... 855
59 HAL SMARTCARD Generic Driver .............................................. 859
59.1 SMARTCARD Firmware driver registers structures ...................... 859
59.1.1 SMARTCARD_InitTypeDef ............................................................ 859
59.1.2 SMARTCARD_AdvFeatureInitTypeDef .......................................... 860
59.1.3 __SMARTCARD_HandleTypeDef .................................................. 861
59.2 SMARTCARD Firmware driver API description ............................. 862
59.2.1 How to use this driver ..................................................................... 862
59.2.2 Initialization and Configuration functions ........................................ 864
59.2.3 IO operation functions .................................................................... 865
59.2.4 Peripheral State and Errors functions ............................................ 868
59.2.5 Detailed description of functions .................................................... 868
59.3 SMARTCARD Firmware driver defines ......................................... 876
59.3.1 SMARTCARD ................................................................................. 876
60 HAL SMARTCARD Extension Driver .......................................... 887
60.1 SMARTCARDEx Firmware driver API description ........................ 887
剩余2231页未读,继续阅读
2021-03-28 上传
2021-05-11 上传
2018-08-30 上传
2020-08-11 上传
jiangjinzhou_123
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- from C++ to objective-C
- 汤子瀛计算机操作系统(西电)习题答案与讲解.doc
- Eclipse 快捷键讲解
- DS1302 涓流充电时钟保持芯片的原理与应用
- JAVA面试题(适合即将准备面试的朋友们)
- 单片机软硬件注意事项
- vb操作基础教程一学就会
- Oracle 9i 备用数据库配置使用参考
- matlab教你如何画图简单
- 我是如何成为一名DBA
- Adaptive Server Anywhere SNMP Extension Agent 用户指南
- Adaptive Server Anywhere 数据库管理指南
- 大型工程建设企业项目管理信息系统实施手册(作者:许浩)
- Install Ora9204 on RedHat LinuxAS3_5
- Oracle教程--大学老师呕心力作
- Oracle客户端安装说明
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功