Open FFBoard
Open source force feedback firmware
OutputPin Class Reference

#include <GPIOPin.h>

Inheritance diagram for OutputPin:
GpioPin

Public Member Functions

 OutputPin (GPIO_TypeDef &port, uint16_t pin)
 
void set () const
 
void reset () const
 
void write (bool state) const
 
void configureOutput (uint32_t pull=GPIO_NOPULL, bool opendrain=false, uint32_t speed=GPIO_SPEED_FREQ_LOW)
 
- Public Member Functions inherited from GpioPin
 GpioPin (GPIO_TypeDef &port, uint16_t pin)
 
bool operator== (const GpioPin &b)
 
const GPIO_TypeDef * getPort () const
 
uint16_t getPin () const
 

Additional Inherited Members

- Protected Attributes inherited from GpioPin
GPIO_TypeDef * port
 
uint16_t pin
 

Detailed Description

Definition at line 32 of file GPIOPin.h.

Constructor & Destructor Documentation

◆ OutputPin()

OutputPin::OutputPin ( GPIO_TypeDef &  port,
uint16_t  pin 
)
inline

Definition at line 34 of file GPIOPin.h.

Member Function Documentation

◆ configureOutput()

void OutputPin::configureOutput ( uint32_t  pull = GPIO_NOPULL,
bool  opendrain = false,
uint32_t  speed = GPIO_SPEED_FREQ_LOW 
)
inline

Sets a pin into output mode in case it was previously reconfigured

Definition at line 54 of file GPIOPin.h.

◆ reset()

void OutputPin::reset ( ) const
inline

Definition at line 42 of file GPIOPin.h.

◆ set()

void OutputPin::set ( ) const
inline

Definition at line 38 of file GPIOPin.h.

◆ write()

void OutputPin::write ( bool  state) const
inline

Definition at line 46 of file GPIOPin.h.


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