Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
StaticSizeExtendedIOElement.hpp
Go to the documentation of this file.
1/* ✔ */
2
3#pragma once
4
7
9
15template <uint16_t N>
16class StaticSizeExtendedIOElement : public ExtendedIOElement { // LCOV_EXCL_LINE
17 protected:
19
20 public:
27
28 static constexpr uint16_t length() { return N; }
29};
30
#define END_AH_NAMESPACE
#define BEGIN_AH_NAMESPACE
An abstract base class for Extended Input/Output elements.
pin_t getStart() const
Get the smallest global extended IO pin number that belongs to this extended IO element.
A class for ExtendedIOElements with a fixed size.
Array< pin_t, N > pins() const
Get an array containing all pins of the element.
Array< T, N > copyAs(const Array< U, N > &src)
Copy an Array to an Array of a different type.
uint_fast16_t pin_int_t
Integer type used internally to store the index of (extended) GPIO pins.
An array wrapper for easy copying, comparing, and iterating.
Definition Array.hpp:32