Arduino Helpers master
Utility library for Arduino
Typedefs | Variables
Hardware-Types.hpp File Reference
#include <AH/Containers/Array.hpp>
#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.

Typedefs

using analog_t = uint16_t
 The type returned from analogRead and similar functions. More...
 
using pin_t = uint16_t
 The type for Arduino pins (and ExtendedIOElement pins). More...
 
template<size_t N>
using PinList = Array< pin_t, N >
 An easy alias for arrays of pins. More...
 

Variables

constexpr pin_t NO_PIN = 1 << (8 * sizeof(pin_t) - 1)
 A special pin number that indicates an unused or invalid pin. More...
 

Typedef Documentation

◆ analog_t

using analog_t = uint16_t

The type returned from analogRead and similar functions.

Definition at line 12 of file Hardware-Types.hpp.

◆ pin_t

using pin_t = uint16_t

The type for Arduino pins (and ExtendedIOElement pins).

Definition at line 14 of file Hardware-Types.hpp.

◆ PinList

using PinList = Array<pin_t, N>

An easy alias for arrays of pins.

Definition at line 25 of file Hardware-Types.hpp.

Variable Documentation

◆ NO_PIN

constexpr pin_t NO_PIN = 1 << (8 * sizeof(pin_t) - 1)
constexpr

A special pin number that indicates an unused or invalid pin.

Definition at line 21 of file Hardware-Types.hpp.