疑问:GPIO_TypeDef Struct Reference

[复制链接]
 楼主| 大道至简 发表于 2010-7-9 15:09 | 显示全部楼层 |阅读模式
以下内容出自帮助文件stm32f10x_stdperiph_lib_um.chm其中这个数据结构的数据字段
GPIO_TypeDef Struct Reference
[Peripheral_registers_structures] General Purpose I/O. More... #include <stm32f10x.h>

Data Fields
__IO uint32_t BRR
__IO uint32_t BSRR
__IO uint32_t CRH
__IO uint32_t CRL
__IO uint32_t IDR
__IO uint32_t LCKR
__IO uint32_t ODR

Detailed DescriptionGeneral Purpose I/O.


typedef struct
{   __IO uint32_t CRL;
   __IO uint32_t CRH;
   __IO uint32_t IDR;
   __IO uint32_t ODR;
   __IO uint32_t BSRR;

   __IO uint32_t BRR;
   __IO uint32_t LCKR;
} GPIO_TypeDef;

关于这几个数据的解释,help文件里面相当含糊。找ST网站的芯片规格书,GPIO就一笔带过,所以看了还是不明白这几个字段什么意思。谁给我一个详细点的文档?
 楼主| 大道至简 发表于 2010-7-9 15:10 | 显示全部楼层
上面乱码:
是这样的文字:
GPIO_TypeDef Struct Reference
[Peripheral_registers_structures]
General Purpose I/O. More...
#include <stm32f10x.h>




Data Fields
__IO uint32_t  BRR
__IO uint32_t  BSRR
__IO uint32_t  CRH
__IO uint32_t  CRL
__IO uint32_t  IDR
__IO uint32_t  LCKR
__IO uint32_t  ODR



--------------------------------------------------------------------------------

Detailed Description
General Purpose I/O.
 楼主| 大道至简 发表于 2010-7-9 15:11 | 显示全部楼层
typedef struct
{
   __IO uint32_t CRL;
   __IO uint32_t CRH;
   __IO uint32_t IDR;
   __IO uint32_t ODR;
   __IO uint32_t BSRR;
   __IO uint32_t BRR;
   __IO uint32_t LCKR;
} GPIO_TypeDef;
 楼主| 大道至简 发表于 2010-7-9 15:11 | 显示全部楼层
关于这几个数据的解释,help文件里面相当含糊。找ST网站的芯片规格书,GPIO就一笔带过,所以看了还是不明白这几个字段什么意思。谁给我一个详细点的文档?
香水城 发表于 2010-7-9 16:40 | 显示全部楼层
哈哈,没有什么特别的。这个结构组合了GPIO模块的各个寄存器,STM32参考手册中有寄存器的说明。
STM32_GPIO_Registers.gif
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:看大道至简所著的《感悟设计》,感悟设计的至简大道

7562

主题

9523

帖子

18

粉丝
快速回复 在线客服 返回列表 返回顶部