Control Surface develop
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Hardware-Types.hpp File Reference
#include <AH/Containers/Array.hpp>
#include <AH/PrintStream/PrintStream.hpp>
#include <AH/STL/limits>
#include <AH/Settings/NamespaceSettings.hpp>
#include <stdint.h>
Include dependency graph for Hardware-Types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pin_t
 Type for storing pin numbers of Extended Input/Output elements. More...
struct  pin_t
 Type for storing pin numbers of Extended Input/Output elements. More...

Namespaces

namespace  AH
 PrintStream library
namespace  AH::ExtIO
 A namespace with alternatives to the standard Arduino IO functions that can be used with extended IO pin numbers.

Typedefs

using analog_t = uint16_t
 The type returned from analogRead and similar functions.
using pin_int_t = uint_fast16_t
 Integer type used internally to store the index of (extended) GPIO pins.
template<size_t N>
using PinList = Array<pin_t, N>
 An easy alias for arrays of pins.

Functions

constexpr bool operator== (pin_t a, pin_t b)
constexpr bool operator< (pin_t a, pin_t b)
constexpr bool operator<= (pin_t a, pin_t b)
constexpr bool operator> (pin_t a, pin_t b)
constexpr bool operator>= (pin_t a, pin_t b)
constexpr bool operator!= (pin_t a, pin_t b)
constexpr pin_int_t operator- (pin_t a, pin_t b)
constexpr pin_t operator- (pin_t a, pin_int_t b)
constexpr pin_t operator+ (pin_t a, pin_int_t b)
constexpr pin_t operator+ (pin_int_t a, pin_t b)
constexpr pin_t operator* (pin_t a, pin_int_t b)
constexpr pin_t operator* (pin_int_t a, pin_t b)
Print & operator<< (Print &os, pin_t p)

Variables

constexpr pin_int_t NO_PIN_INT
constexpr pin_t NO_PIN {}
 A special pin number that indicates an unused or invalid pin.