EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #234 background imageLoading...
Page #234 background image
General-purpose I/Os (GPIO)
UM1581
234/584
DocID023800 Rev 1
12 General-purpose I/Os (GPIO)
12.1 GPIO Firmware driver registers structures
12.1.1 GPIO_TypeDef
GPIO_TypeDef is defined in the stm32f30x.h
Data Fields
ï‚· __IO uint32_t MODER
ï‚· __IO uint16_t OTYPER
ï‚· uint16_t RESERVED0
ï‚· __IO uint32_t OSPEEDR
ï‚· __IO uint32_t PUPDR
ï‚· __IO uint16_t IDR
ï‚· uint16_t RESERVED1
ï‚· __IO uint16_t ODR
ï‚· uint16_t RESERVED2
ï‚· __IO uint32_t BSRR
ï‚· __IO uint32_t LCKR
ï‚· __IO uint32_t AFR
ï‚· __IO uint16_t BRR
ï‚· uint16_t RESERVED3
Field Documentation
ï‚· __IO uint32_t GPIO_TypeDef::MODER
 GPIO port mode register, Address offset: 0x00
ï‚· __IO uint16_t GPIO_TypeDef::OTYPER
 GPIO port output type register, Address offset: 0x04
ï‚· uint16_t GPIO_TypeDef::RESERVED0
 Reserved, 0x06
ï‚· __IO uint32_t GPIO_TypeDef::OSPEEDR
 GPIO port output speed register, Address offset: 0x08
ï‚· __IO uint32_t GPIO_TypeDef::PUPDR
 GPIO port pull-up/pull-down register, Address offset: 0x0C
ï‚· __IO uint16_t GPIO_TypeDef::IDR
 GPIO port input data register, Address offset: 0x10
ï‚· uint16_t GPIO_TypeDef::RESERVED1
 Reserved, 0x12
ï‚· __IO uint16_t GPIO_TypeDef::ODR
 GPIO port output data register, Address offset: 0x14
ï‚· uint16_t GPIO_TypeDef::RESERVED2
 Reserved, 0x16
ï‚· __IO uint32_t GPIO_TypeDef::BSRR
 GPIO port bit set/reset registerBSRR, Address offset: 0x18
ï‚· __IO uint32_t GPIO_TypeDef::LCKR
 GPIO port configuration lock register, Address offset: 0x1C

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals