Control Surface stm32
MIDI Control Surface library for Arduino
StaticSizeExtendedIOElement.hpp
Go to the documentation of this file.
1/* ✔ */
2
3#pragma once
4
6AH_DIAGNOSTIC_WERROR() // Enable errors on warnings
7
8#include "ExtendedIOElement.hpp"
10
12
18template <uint16_t N>
19class StaticSizeExtendedIOElement : public ExtendedIOElement { // LCOV_EXCL_LINE
20 protected:
22
23 public:
28 return generateIncrementalArray<pin_t, N>(getStart());
29 }
30
31 static constexpr uint16_t length() { return N; }
32};
33
35
#define END_AH_NAMESPACE
#define BEGIN_AH_NAMESPACE
#define AH_DIAGNOSTIC_POP()
Definition: Warnings.hpp:37
#define AH_DIAGNOSTIC_WERROR()
Definition: Warnings.hpp:36
An abstract base class for Extended Input/Output elements.
A class for ExtendedIOElements with a fixed size.
Array< pin_t, N > pins() const
Get an array containing all pins of the element.