Control Surface master
MIDI Control Surface library for Arduino
Public Member Functions | Public Attributes | List of all members
EncoderSwitchPinList Struct Reference

#include <Def/Def.hpp>

Detailed Description

A struct for the pins of a rotary (quadrature) encoder with a switch.

Definition at line 31 of file Def.hpp.

+ Collaboration diagram for EncoderSwitchPinList:

Public Member Functions

 EncoderSwitchPinList (uint8_t A, uint8_t B, pin_t switchPin)
 Constructor for encoders with a switch. More...
 
 EncoderSwitchPinList (uint8_t A, uint8_t B)
 Constructor for encoders without a switch. More...
 

Public Attributes

uint8_t A
 The pin connected to the A pin of the encoder. More...
 
uint8_t B
 The pin connected to the B pin of the encoder. More...
 
pin_t switchPin
 The pin connected to the switch pin of the encoder. More...
 

Constructor & Destructor Documentation

◆ EncoderSwitchPinList() [1/2]

EncoderSwitchPinList ( uint8_t  A,
uint8_t  B,
pin_t  switchPin 
)
inline

Constructor for encoders with a switch.

Definition at line 33 of file Def.hpp.

◆ EncoderSwitchPinList() [2/2]

EncoderSwitchPinList ( uint8_t  A,
uint8_t  B 
)
inline

Constructor for encoders without a switch.

Definition at line 36 of file Def.hpp.

Member Data Documentation

◆ A

uint8_t A

The pin connected to the A pin of the encoder.

Definition at line 39 of file Def.hpp.

◆ B

uint8_t B

The pin connected to the B pin of the encoder.

Definition at line 40 of file Def.hpp.

◆ switchPin

pin_t switchPin

The pin connected to the switch pin of the encoder.

Definition at line 41 of file Def.hpp.


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