7#include <AH/STL/limits>
21 (std::numeric_limits<pin_int_t>::max() >> 1) + 1;
34 static_assert(std::is_unsigned<
decltype(pin)>::value,
35 "Error: pin_t should be an unsigned integer type");
96constexpr pin_t NO_PIN {};
#define BEGIN_AH_NAMESPACE
Array< T, N > copyAs(const Array< U, N > &src)
Copy an Array to an Array of a different type.
constexpr bool operator<(pin_t a, pin_t b)
constexpr bool operator==(pin_t a, pin_t b)
constexpr pin_t operator*(pin_t a, pin_int_t b)
constexpr bool operator<=(pin_t a, pin_t b)
constexpr bool operator!=(pin_t a, pin_t b)
constexpr pin_t operator+(pin_t a, pin_int_t b)
constexpr bool operator>(pin_t a, pin_t b)
constexpr pin_int_t operator-(pin_t a, pin_t b)
constexpr bool operator>=(pin_t a, pin_t b)
std::enable_if_t< std::is_arithmetic< T >::value, Print & > operator<<(Print &os, const AH::ArraySlice< T, N, Reverse, Const > &a)
uint16_t analog_t
The type returned from analogRead and similar functions.
constexpr pin_int_t NO_PIN_INT
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.
Type for storing pin numbers of Extended Input/Output elements.
constexpr pin_t()=default
Default constructor (NO_PIN).
pin_t & operator+=(pin_int_t b)
pin_int_t pin
The actual underlying pin number.
constexpr pin_t(pin_int_t pin)
Constructor from integer.
pin_t & operator-=(pin_int_t b)