OpenMPTL - STM32F4
C++ Microprocessor Template Library
Public Types | List of all members
mptl::gpio< port, pin_no >::resistor Struct Reference

#include <gpio.hpp>

Public Types

using floating = regval< typename GPIOx::template PUPDRx< pin_no >, 0 >
 Floating input. More...
 
using pull_up = regval< typename GPIOx::template PUPDRx< pin_no >, 1 >
 Input with pull-up. More...
 
using pull_down = regval< typename GPIOx::template PUPDRx< pin_no >, 2 >
 Input with pull-down. More...
 

Member Typedef Documentation

◆ floating

template<char port, unsigned pin_no>
using mptl::gpio< port, pin_no >::resistor::floating = regval< typename GPIOx::template PUPDRx<pin_no>, 0 >

◆ pull_down

template<char port, unsigned pin_no>
using mptl::gpio< port, pin_no >::resistor::pull_down = regval< typename GPIOx::template PUPDRx<pin_no>, 2 >

◆ pull_up

template<char port, unsigned pin_no>
using mptl::gpio< port, pin_no >::resistor::pull_up = regval< typename GPIOx::template PUPDRx<pin_no>, 1 >

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