fiber
Loading...
Searching...
No Matches
fiber::stm32f446::Pin Class Reference

#include <Pin.hpp>

Public Member Functions

constexpr Pin (const Pin &other)=default
 
constexpr Pinoperator= (const Pin &other)=default
 
void high ()
 
void low ()
 
void write (bool level)
 
void dir (bool value)
 
void input ()
 
void output ()
 
bool read ()
 
bool is_high ()
 
bool is_low ()
 

Static Public Member Functions

static constexpr Pin from_pin_mask (GPIO_TypeDef *GPIOx, uint16_t pin_mask)
 
static constexpr Pin from_pin_number (GPIO_TypeDef *GPIOx, unsigned int pin_number)
 

Constructor & Destructor Documentation

◆ Pin()

fiber::stm32f446::Pin::Pin ( const Pin & other)
constexprdefault

Member Function Documentation

◆ dir()

void fiber::stm32f446::Pin::dir ( bool value)
inline

◆ from_pin_mask()

static constexpr Pin fiber::stm32f446::Pin::from_pin_mask ( GPIO_TypeDef * GPIOx,
uint16_t pin_mask )
inlinestaticconstexpr

◆ from_pin_number()

static constexpr Pin fiber::stm32f446::Pin::from_pin_number ( GPIO_TypeDef * GPIOx,
unsigned int pin_number )
inlinestaticconstexpr

◆ high()

void fiber::stm32f446::Pin::high ( )
inline

◆ input()

void fiber::stm32f446::Pin::input ( )
inline

◆ is_high()

bool fiber::stm32f446::Pin::is_high ( )
inline

◆ is_low()

bool fiber::stm32f446::Pin::is_low ( )
inline

◆ low()

void fiber::stm32f446::Pin::low ( )
inline

◆ operator=()

Pin & fiber::stm32f446::Pin::operator= ( const Pin & other)
constexprdefault

◆ output()

void fiber::stm32f446::Pin::output ( )
inline

◆ read()

bool fiber::stm32f446::Pin::read ( )
inline

◆ write()

void fiber::stm32f446::Pin::write ( bool level)
inline

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