Control Surface main
MIDI Control Surface library for Arduino
Classes | Typedefs | Variables
Def.hpp File Reference
#include "Cable.hpp"
#include "Channel.hpp"
#include <AH/Containers/Array.hpp>
#include <AH/Hardware/Hardware-Types.hpp>
#include <AH/STL/limits>
#include <Settings/NamespaceSettings.hpp>
#include <stddef.h>
#include <stdint.h>
+ Include dependency graph for Def.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EncoderSwitchPinList
 A struct for the pins of a rotary (quadrature) encoder with a switch. More...
 
struct  EncoderPinList
 A struct for the pins of a rotary (quadrature) encoder without a switch. More...
 
struct  Potentiometer
 
struct  MotorFader
 
struct  Display
 
struct  PixelLocation
 A simple struct representing a pixel with integer coordinates. More...
 

Typedefs

using MappingFunction = analog_t(*)(analog_t)
 
template<uint8_t NumRows, uint8_t NumCols>
using AddressMatrix = Array2D< uint8_t, NumRows, NumCols >
 
using setting_t = uint8_t
 The type used for Selectors. More...
 

Variables

constexpr setting_t NO_SETTING
 A special setting that indicates an unused or invalid setting. More...
 

Class Documentation

◆ EncoderPinList

struct EncoderPinList
+ Collaboration diagram for EncoderPinList:
Class Members
uint8_t A The pin connected to the A pin of the encoder.
uint8_t B The pin connected to the B pin of the encoder.

◆ Potentiometer

struct Potentiometer
+ Collaboration diagram for Potentiometer:

◆ MotorFader

struct MotorFader
+ Collaboration diagram for MotorFader:

◆ Display

struct Display
+ Collaboration diagram for Display:

◆ PixelLocation

struct PixelLocation
+ Collaboration diagram for PixelLocation:
Class Members
int16_t x
int16_t y

Typedef Documentation

◆ MappingFunction

using MappingFunction = analog_t (*)(analog_t)

Definition at line 21 of file Def.hpp.

◆ AddressMatrix

using AddressMatrix = Array2D<uint8_t, NumRows, NumCols>

Definition at line 28 of file Def.hpp.

◆ setting_t

using setting_t = uint8_t

The type used for Selectors.

Definition at line 51 of file Def.hpp.

Variable Documentation

◆ NO_SETTING

constexpr setting_t NO_SETTING
constexpr
Initial value:
=
constexpr auto max(const T &a, const U &b) -> decltype(a< b ? b :a)
Return the larger of two numbers/objects.
Definition: MinMaxFix.hpp:22

A special setting that indicates an unused or invalid setting.

Definition at line 53 of file Def.hpp.