Arduino Helpers master
Utility library for Arduino
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:
25 return generateIncrementalArray<pin_t, N>(getStart());
26 }
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.
static constexpr uint16_t length()