stm32f103
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GPIO::Config Struct Reference

Configuration for an individual GPIO pin. More...

#include <gpio.h>

Public Attributes

Pin pin
 GPIO Pin to enable and initialize. More...
 
GPIOMode_TypeDef mode
 GPIO Mode. More...
 
GPIOSpeed_TypeDef speed = GPIO_Speed_50MHz
 GPIO output maximum frequency. More...
 
uint32_t rcc = 0
 Reset and Clock Control (RCC). More...
 

Detailed Description

Configuration for an individual GPIO pin.

Member Data Documentation

GPIOMode_TypeDef GPIO::Config::mode

GPIO Mode.

See documentation for GPIOMode_TypeDef.

Pin GPIO::Config::pin

GPIO Pin to enable and initialize.

uint32_t GPIO::Config::rcc = 0

Reset and Clock Control (RCC).

Extra RCC configurations you want to enable eg. RCC_APB2Periph_AFIO

Refer to stm32f10x_rcc.h for more RCC definitions.

GPIOSpeed_TypeDef GPIO::Config::speed = GPIO_Speed_50MHz

GPIO output maximum frequency.

See documentation for GPIOSpeed_TypeDef.


The documentation for this struct was generated from the following file: