RTLib
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Button::Config Struct Reference

Configuration for button. More...

#include <button.h>

Public Attributes

uint8_t id
 ID of the button. More...
 
uint8_t pullup
 Specifies default state of the button. More...
 

Detailed Description

Configuration for button.

Member Data Documentation

uint8_t Button::Config::id

ID of the button.

See your device configuration header file to see which id corresponds to which hardware button.

uint8_t Button::Config::pullup

Specifies default state of the button.

For STM32F1xx, specifies if the button is active high.

For STM32F4xx, specifies whether to use the internal pull-up/pull-down resistor. You may use the core::stm32f4::GPIO::Pullup enumeration or libopencm3 macros.


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