Control Surface pin-t-adl
MIDI Control Surface library for Arduino
Public Member Functions | Public Attributes | List of all members
pin_t Struct Reference

#include <AH/Hardware/Hardware-Types.hpp>

Detailed Description

Type for storing pin numbers of Extended Input/Output elements.

Definition at line 21 of file Hardware-Types.hpp.

+ Collaboration diagram for pin_t:

Public Member Functions

constexpr pin_t ()=default
 Default constructor (NO_PIN). More...
 
constexpr pin_t (uint16_t pin)
 Constructor from integer. More...
 
pin_toperator+= (pin_t b)
 
pin_toperator++ ()
 
pin_t operator++ (int)
 
pin_toperator-= (pin_t b)
 
pin_toperator-- ()
 
pin_t operator-- (int)
 

Public Attributes

uint16_t pin = (std::numeric_limits<decltype(pin)>::max() >> 1) + 1
 The actual underlying pin number. More...
 

Constructor & Destructor Documentation

◆ pin_t() [1/2]

constexpr pin_t ( )
constexprdefault

Default constructor (NO_PIN).

◆ pin_t() [2/2]

constexpr pin_t ( uint16_t  pin)
inlineconstexpr

Constructor from integer.

Definition at line 25 of file Hardware-Types.hpp.

Member Function Documentation

◆ operator+=()

pin_t & operator+= ( pin_t  b)
inline

Definition at line 33 of file Hardware-Types.hpp.

◆ operator++() [1/2]

pin_t & operator++ ( )
inline

Definition at line 37 of file Hardware-Types.hpp.

◆ operator++() [2/2]

pin_t operator++ ( int  )
inline

Definition at line 41 of file Hardware-Types.hpp.

◆ operator-=()

pin_t & operator-= ( pin_t  b)
inline

Definition at line 47 of file Hardware-Types.hpp.

◆ operator--() [1/2]

pin_t & operator-- ( )
inline

Definition at line 51 of file Hardware-Types.hpp.

◆ operator--() [2/2]

pin_t operator-- ( int  )
inline

Definition at line 55 of file Hardware-Types.hpp.

Member Data Documentation

◆ pin

uint16_t pin = (std::numeric_limits<decltype(pin)>::max() >> 1) + 1

The actual underlying pin number.

Definition at line 28 of file Hardware-Types.hpp.


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