没有合适的资源?快使用搜索试试~ 我知道了~
首页STM32 F101/F103xx固件库:中文Word版,快速开发指南
STM32 F101/F103xx固件库:中文Word版,快速开发指南
需积分: 12 1 下载量 161 浏览量
更新于2024-07-17
1
收藏 1.54MB DOCX 举报
本资源是一份详细的STM32F101xx与STM32F103xx固件函数库中文Word版文档,针对32位ARM微控制器设计。STM32F101xx和STM32F103xx系列单片机的固件函数库提供了全面的支持,旨在简化用户对这些微控制器的外设操作。库内包含了一系列精心编写的程序、数据结构和宏,涵盖了所有外设的功能,如驱动程序描述和应用实例,使得即使不深入硬件底层,也能快速高效地使用外设。 函数库的核心是标准化的API,为每个外设驱动设计了一套统一的函数结构和命名规范,确保了跨开发环境的兼容性。源代码遵循严格的标准,如"Strict ANSI-C"和MISRA-C2004,有助于提高代码质量和可靠性。库内还实现了动态错误检测,增强了软件的鲁棒性,但可能增加代码体积和执行速度。 固件库用户手册详细介绍了库的架构、安装步骤以及使用示例,便于用户理解和应用。此外,手册还分别列出了每个外设的具体功能和设置,以便用户根据自身项目的特性和性能要求进行选择或定制。尽管固件库设计为通用,适用于大部分应用,但对于对代码大小和执行效率有较高要求的开发者,它提供了宝贵的参考和调整依据。 这份文档不仅适用于初学者快速上手STM32F101x系列单片机,也适合有一定经验的工程师在项目开发过程中参考和优化代码。对于那些寻求提升开发效率和软件质量的工程师而言,这是一个不可或缺的工具。
资源详情
资源推荐
![](https://csdnimg.cn/release/download_crawler_static/11340885/bgb.jpg)
目录
20.2.79
函数 TIM1_GetCapture2..........................................................................................................
338
20.2.80
函数 TIM1_GetCapture3..........................................................................................................
338
20.2.81
函数 TIM1_GetCapture4..........................................................................................................
338
20.2.82
函数 TIM1_GetCounter ...........................................................................................................
339
20.2.83
函数 TIM1_GetPrescaler..........................................................................................................
339
20.2.84
函数 TIM1_GetFlagStatus........................................................................................................
340
20.2.85
函数 TIM1_ClearFlag ..............................................................................................................
341
20.2.86
函数 TIM1_GetITStatus...........................................................................................................
341
20.2.87
函数 TIM1_ClearITPendingBit................................................................................................
342
21.1 USART 寄存器结构 ..............................................................................................................................
343
21.2 USART 库函数 ......................................................................................................................................
344
21.2.1
函数 USART_DeInit ..................................................................................................................
345
21.2.2
函数 USART_Init .......................................................................................................................
346
21.2.3
函数 USART_StructInit..............................................................................................................
349
21.2.4
函数 USART_Cmd.....................................................................................................................
349
21.2.5
函数 USART_ITConfig..............................................................................................................
350
21.2.6
函数 USART_DMACmd ...........................................................................................................
351
21.2.7
函数 USART_SetAddress ..........................................................................................................
351
21.2.8
函数 USART_WakeUpConfig....................................................................................................
352
21.2.9
函数 USART_ReceiverWakeUpCmd.........................................................................................
352
21.2.10
函数 USART_LINBreakDetectiLengthConfig.........................................................................
353
21.2.11
函数 USART_LINCmd ............................................................................................................
353
21.2.12
函数 USART_SendData ...........................................................................................................
354
21.2.13
函数 USART_ReceiveData ......................................................................................................
354
21.2.14
函数 USART_SendBreak .........................................................................................................
355
21.2.15
函数 USART_SetGuardTime ...................................................................................................
355
21.2.16
函数 USART_SetPrescaler.......................................................................................................
356
21.2.17
函数 USART_SmartCardCmd..................................................................................................
356
21.2.18
函数 USART_SmartCardNackCmd .........................................................................................
357
21.2.19
函数 USART_HalfDuplexCmd ................................................................................................
357
21.2.20
函数 USART_IrDAConfig .......................................................................................................
358
21.2.21
函数 USART_IrDACmd ..........................................................................................................
358
21.2.22
函数 USART_GetFlagStatus ....................................................................................................
359
21.2.23
函数 USART_ClearFlag...........................................................................................................
360
21.2.24
函数 USART_GetITStatus .......................................................................................................
360
21.2.25
函数 USART_ClearITPendingBit ............................................................................................
361
22.1 WWDG 寄存器结构 ..............................................................................................................................
362
22.2 WWDG 库函数 ......................................................................................................................................
363
22.1.1
函数 WWDG_DeInit..................................................................................................................
363
22.1.2
函数 WWDG_SetPrescaler ........................................................................................................
363
22.1.3
函数 WWDG_SetWindowValue ................................................................................................
364
22.1.4
函数 WWDG_EnableIT .............................................................................................................
364
22.1.5
函数 WWDG_SetCounter ..........................................................................................................
365
22.1.6
函数 WWDG_Enable.................................................................................................................
365
22.1.7
函数 WWDG_GetFlagStatus......................................................................................................
366
22.1.8
函数 WWDG_ClearFlag ............................................................................................................
366
11/368
译文英文原版为 UM0427 Oct. 2007 Rev 2, 译文仅供参考,与英文版冲突的,以英文版为准
![](https://csdnimg.cn/release/download_crawler_static/11340885/bgc.jpg)
表格目录
表格目录
Table 1. 本文档所有缩写定义..........................................................................................................................27
Table 2. 固件函数库文件描述..........................................................................................................................33
Table 3. 函数描述格式......................................................................................................................................38
Table 4. ADC 寄存器........................................................................................................................................39
Table 5. ADC 固件库函数................................................................................................................................40
Table 6 .函数 ADC_DeInit................................................................................................................................42
Table 7. 函数 ADC_Init.....................................................................................................................................42
Table 8. 函数 ADC_Mode 定义........................................................................................................................43
Table 9. ADC_ExternalTrigConv 定义表.........................................................................................................43
Table 10. ADC_DataAlign 定义表...................................................................................................................43
Table 11. 函数 ADC_StructInit.........................................................................................................................44
Table 12. ADC_InitStruct 缺省值.....................................................................................................................44
Table 13. 函数 ADC_Cmd................................................................................................................................44
Table 14. 函数 ADC_DMACmd.......................................................................................................................45
Table 15. 函数 ADC_ITConfig.........................................................................................................................45
Table 16. ADC_IT 定义表................................................................................................................................45
Table 17. 函数 ADC_ResetCalibration.............................................................................................................46
Table 18. 函数 ADC_ GetResetCalibrationStatus............................................................................................46
Table 19. 函数 ADC_StartCalibration..............................................................................................................46
Table 20. 函数 ADC_GetCalibrationStatus......................................................................................................47
Table 21. 函数 ADC_SoftwareStartConvCmd.................................................................................................47
Table 22. 函数 ADC_GetSoftwareStartConvStatus..........................................................................................48
Table 23. 函数 ADC_DiscModeChannelCountConfig.....................................................................................48
Table 24. 函数 ADC_DiscModeCmd................................................................................................................49
Table 25. 函数 ADC_RegularChannelConfig...................................................................................................49
Table 26. ADC_Channel 值...............................................................................................................................49
Table 27. ADC_SampleTime 值:....................................................................................................................50
Table 28. 函数 ADC_ExternalTrigConvConfig................................................................................................51
Table 29. 函数 ADC_GetConversionValue......................................................................................................51
Table 30. 函数 ADC_GetDuelModeConversionValue.....................................................................................52
Table 31. 函数 ADC_AutoInjectedConvCmd...................................................................................................52
Table 32. 函数 ADC_InjectedDiscModeCmd...................................................................................................53
Table 33. 函数 ADC_ExternalTrigInjectedConvConfig...................................................................................53
Table 34. ADC_ExternalTrigInjectedConv 值..................................................................................................53
Table 35. 函数 ADC_ExternalTrigInjectedConvCmd......................................................................................54
Table 36. 函数 ADC_SoftwareStartinjectedConvCmd.....................................................................................54
Table 37. 函数 ADC_GetsoftwareStartinjectedConvStatus..............................................................................55
Table 38. 函数 ADC_InjectedChannleConfig...................................................................................................55
Table 39. 函数 ADC_InjectedSequencerLengthConfig....................................................................................56
Table 40. 函数 ADC_SetinjectedOffset............................................................................................................56
Table 41. ADC_InjectedChannel 值..................................................................................................................56
Table 42. 函数 ADC_GetInjectedConversionValue.........................................................................................57
Table 43. 函数 ADC_AnalogWatchdogCmd....................................................................................................57
Table 44. ADC_AnalogWatchdog 值................................................................................................................57
Table 45. 函数 ADC_AnalogWatchdongThresholdsConfig.............................................................................58
Table 46. 函数 ADC_AnalogWatchdongSingleChannelConfig.......................................................................58
Table 47. 函数 ADC_TampSensorVrefintCmd................................................................................................59
Table 48. 函数 ADC_GetFlagStatus.................................................................................................................59
Table 49. ADC_FLAG 的值..............................................................................................................................59
Table 50. 函数 ADC_ClearFlag........................................................................................................................60
12/368
译文英文原版为 UM0427 Oct. 2007 Rev 2, 译文仅供参考,与英文版冲突的,以英文版为准
![](https://csdnimg.cn/release/download_crawler_static/11340885/bgd.jpg)
表格目录
Table 51. 函数 ADC_GetITStatus.....................................................................................................................60
Table 52. 函数 ADC_ClearITPendingBit..........................................................................................................61
Table 53. BKP 寄存器.......................................................................................................................................62
Table 54. BKP 库函数.......................................................................................................................................63
Table 55. 函数 BKP_DeInit...............................................................................................................................64
Table 56. 函数 BKP_TamperPinLevelConfig...................................................................................................64
Table 57. BKP_TamperPinLevel 值..................................................................................................................64
Table 58. 函数 BKP_TamperPinCmd...............................................................................................................65
Table 59. 函数 BKP_ITConfig..........................................................................................................................65
Table 60. 函数 BKP_RTCOutputConfig...........................................................................................................66
Table 61. BKP_RTCOutputSource 值...............................................................................................................66
Table 62. 函数 BKP_SetRTCCalibrationValue................................................................................................66
Table 63. 函数 BKP_WriteBackupRegister......................................................................................................67
Table 64. BKP_DR 值.......................................................................................................................................67
Table 65. 函数 BKP_ReadBackupRegister.......................................................................................................67
Table 66. 函数 BKP_GetFlagStatus..................................................................................................................68
Table 67. 函数 BKP_ClearFlag.........................................................................................................................68
Table 68. 函数 BKP_GetITStatus.....................................................................................................................69
Table 69. 函数 BKP_ClearITPendingBit..........................................................................................................69
Table 70. CAN 寄存器......................................................................................................................................71
Table 71. CAN 库函数......................................................................................................................................72
Table 72. 函数 CAN_DeInit..............................................................................................................................72
Table 73. 函数 CAN_Init...................................................................................................................................73
Table 74. CAN_Mode 值...................................................................................................................................74
Table 75. CAN_SJW 值.....................................................................................................................................74
Table 76. CAN_BS1 值.....................................................................................................................................74
Table 77. CAN_BS1 值.....................................................................................................................................74
Table 78. 函数 CAN_FilterInit..........................................................................................................................75
Table 79. CAN_FilterMode 值..........................................................................................................................75
Table 80. CAN_FilterScale 值..........................................................................................................................75
Table 81. CAN_FilterFIFO 值..........................................................................................................................76
Table 82. 函数 CAN_StructInit.........................................................................................................................76
Table 83. CAN_InitStruct 结构缺省值.............................................................................................................76
Table 84. 函数 CAN_ITConfig.........................................................................................................................77
Table 85. CAN_IT 值.........................................................................................................................................77
Table 86. 函数 CAN_Transmit..........................................................................................................................78
Table 87. IDE 值................................................................................................................................................78
Table 88. RTR 值...............................................................................................................................................78
Table 89. 函数 CAN_TransmitStatus...............................................................................................................79
Table 90. 函数 CAN_CancelTransmit..............................................................................................................79
Table 91. 函数 CAN_FIFORelease...................................................................................................................80
Table 92. 函数 CAN_MessagePending.............................................................................................................80
Table 93. 函数 CAN_Receive...........................................................................................................................81
Table 94. IDE 值................................................................................................................................................81
Table 95. RTR 值...............................................................................................................................................81
Table 96. 函数 CAN_Sleep...............................................................................................................................82
Table 97. 函数 CAN_WakeUp..........................................................................................................................82
Table 98. 函数 CAN_GetFlagStatus.................................................................................................................83
Table 99. CAN_FLAG 值.................................................................................................................................83
Table 100. 函数 CAN_ClearFlag......................................................................................................................83
Table 101. 函数 CAN_GetITStatus..................................................................................................................84
Table 102. CAN_IT 值......................................................................................................................................84
Table 103. 函数 CAN_ClearITPendingBit.......................................................................................................85
13/368
译文英文原版为 UM0427 Oct. 2007 Rev 2, 译文仅供参考,与英文版冲突的,以英文版为准
剩余63页未读,继续阅读
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://profile-avatar.csdnimg.cn/4cd994385b79444c8e9709c1214434ee_jei8566.jpg!1)
jei8566
- 粉丝: 30
- 资源: 2
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![](https://csdnimg.cn/release/wenkucmsfe/public/img/voice.245cc511.png)
最新资源
- 计算机人脸表情动画技术发展综述
- 关系数据库的关键字搜索技术综述:模型、架构与未来趋势
- 迭代自适应逆滤波在语音情感识别中的应用
- 概念知识树在旅游领域智能分析中的应用
- 构建is-a层次与OWL本体集成:理论与算法
- 基于语义元的相似度计算方法研究:改进与有效性验证
- 网格梯度多密度聚类算法:去噪与高效聚类
- 网格服务工作流动态调度算法PGSWA研究
- 突发事件连锁反应网络模型与应急预警分析
- BA网络上的病毒营销与网站推广仿真研究
- 离散HSMM故障预测模型:有效提升系统状态预测
- 煤矿安全评价:信息融合与可拓理论的应用
- 多维度Petri网工作流模型MD_WFN:统一建模与应用研究
- 面向过程追踪的知识安全描述方法
- 基于收益的软件过程资源调度优化策略
- 多核环境下基于数据流Java的Web服务器优化实现提升性能
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![](https://img-home.csdnimg.cn/images/20220527035711.png)
![](https://img-home.csdnimg.cn/images/20220527035711.png)
![](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![](https://csdnimg.cn/release/wenkucmsfe/public/img/green-success.6a4acb44.png)