- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
The definition of the stm32 data type (commonly used U8, U16, U32)(国外英文资料)
The definition of the stm32 data type (commonly used U8, U16, U32)(国外英文资料)
In the Keil MDK development environment, such as a non-signed 32-bit plastic data, there are multiple ways to represent it:
Unsigned int 32 (C)
2, uint32_t;
3, u32;
All three ways of expressing the same meaning, but why should the ST developers mess up?
There are a lot of other ways that you might look unfamiliar, and you might not understand,
For example: _IO int32_t equals vs32 (which youre also unfamiliar), but hes also synonymous with volatile int32_t, which is equivalent to volatile signed int 32;
The final expression is the standard expression of C, which is messy enough to make a beginners head spin.
U8, u16, u32 is the unsigned char type, but u8 is a byte, u16 is 2 bytes, u32 is 4 byte typed.
U8 is unsigned char
Under-16 is unsigned short
U32 is unsigned int
U8s maximum 255 u16 is 65535, which means u8 a = 255 a + 1 = 0 u16 b = 255 b + 1 = 256
ST actually do so many things, is nothing but to developers define data types when writing code to write a few symbols, less then because both before and after the upgrade, in order to compatible with the old version (mainly V2.0) arise so much. No matter how he changes, it is based on standard C, see the following file you are OK:
Core_cm3.h; Stm32f10x. H; Stdint. H; Each of these files might be as follows:
Stdint.h is the standard expression for C in this case
/ / the line 36 begins
Typedef signed char int8_t; / / the standard expression of signed char is equivalent to int8_t;
Typedef signed short int int16_t;
Typedef signed int int32_t; / / in 32-bit environment, int represents 4 bytes 32 bits!!
Typedef signed __int64_t;
Typedef unsigned char uint8_t;
Typedef unsigned short int uint16_t;
Typedef unsigned int uint32_t;
Typedef unsigned __int64.
Typedef signed char int_least8_t;
Typedef signed short int int_least-16_t;
Typedef signed int int_least-32_t;
Typedef signed __int64 int_value 64_t;
Typedef unsigned char uint_t.
Typedef unsigned short
您可能关注的文档
- How to choose your second SLR(国外英文资料).doc
- How to learn more effectively(国外英文资料).doc
- How long is the pregnancy of the SD mouse(国外英文资料).doc
- GTASA enbseries. Ini changes the tutorial(国外英文资料).doc
- Genesis steps(国外英文资料).doc
- HTML simple notes(国外英文资料).doc
- In 1957, the cognition and treatment of epidemic b encephalitis were given by Chinese traditional Chinese medicine(国外英文资料).doc
- How to print data in Java (how to put the data in the Execl table)(国外英文资料).doc
- In 1959, the Chinese traditional Chinese medicine bi cheng and duck Dan were used to cure amoeba dysentery 14 cases(国外英文资料).doc
- How to look at the tongue, tongue, tongue, tongue, tongue, tongue, tongue(国外英文资料).doc
最近下载
- DB41T 2431-2023 重点区域地质灾害风险调查评价规范(1:10000).docx VIP
- 2012 INTERNATIONAL BUILDING CODE (2012年国际建筑规范).pdf VIP
- 金龙湖养老度假基地可行性报告.doc VIP
- 光伏发电工程施工规范.docx VIP
- 渗透检测工艺规程.pptx VIP
- 质量员考试(市政质量)基础知识试卷真题(2025年新版附解析).docx VIP
- 幼儿园课件:变焦PPT.ppt
- KEF音响无线HiFi扬声器LS50 Wireless II用户手册.pdf VIP
- 一种低气味、低刺激双固化胶粘剂及其制备方法.pdf VIP
- 设计机构设置和岗位职责.docx VIP
文档评论(0)