Arduino Helpers master
Utility library for Arduino
Namespaces | Typedefs | Functions | Variables
Arduino-Hardware-Types.hpp File Reference
#include <AH/Hardware/Hardware-Types.hpp>
#include <AH/Types/FunctionTraits.hpp>
#include <AH/Arduino-Wrapper.h>
+ Include dependency graph for Arduino-Hardware-Types.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  AH_pin_detail
 

Typedefs

using ArduinoPin_t = AH::function_traits< decltype(::digitalWrite)>::argument_t< 0 >
 
using PinStatus_t = AH::function_traits< decltype(::digitalWrite)>::argument_t< 1 >
 
using PinMode_t = AH::function_traits< decltype(::pinMode)>::argument_t< 1 >
 
using BitOrder_t = uint8_t
 

Functions

template<class T >
ArduinoPin_t arduino_pin_cast (T t)
 

Variables

static constexpr auto tmp_HIGH = HIGH
 
static constexpr auto tmp_LOW = LOW
 
static constexpr auto tmp_INPUT = INPUT
 
static constexpr auto tmp_OUTPUT = OUTPUT
 
static constexpr auto tmp_INPUT_PULLUP = INPUT_PULLUP
 
constexpr PinStatus_t HIGH = AH_pin_detail::tmp_HIGH
 
constexpr PinStatus_t LOW = AH_pin_detail::tmp_LOW
 
constexpr PinMode_t INPUT = AH_pin_detail::tmp_INPUT
 
constexpr PinMode_t OUTPUT = AH_pin_detail::tmp_OUTPUT
 
constexpr PinMode_t INPUT_PULLUP = AH_pin_detail::tmp_INPUT_PULLUP
 

Typedef Documentation

◆ ArduinoPin_t

using ArduinoPin_t = AH::function_traits<decltype(::digitalWrite)>::argument_t<0>

Definition at line 17 of file Arduino-Hardware-Types.hpp.

◆ PinStatus_t

using PinStatus_t = AH::function_traits<decltype(::digitalWrite)>::argument_t<1>

Definition at line 19 of file Arduino-Hardware-Types.hpp.

◆ PinMode_t

using PinMode_t = AH::function_traits<decltype(::pinMode)>::argument_t<1>

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

◆ BitOrder_t

using BitOrder_t = uint8_t

Definition at line 26 of file Arduino-Hardware-Types.hpp.

Function Documentation

◆ arduino_pin_cast()

ArduinoPin_t arduino_pin_cast ( t)
inline

Definition at line 66 of file Arduino-Hardware-Types.hpp.

Variable Documentation

◆ HIGH

constexpr PinStatus_t HIGH = AH_pin_detail::tmp_HIGH
constexpr

◆ LOW

constexpr PinStatus_t LOW = AH_pin_detail::tmp_LOW
constexpr

◆ INPUT

constexpr PinMode_t INPUT = AH_pin_detail::tmp_INPUT
constexpr

Definition at line 58 of file Arduino-Hardware-Types.hpp.

◆ OUTPUT

constexpr PinMode_t OUTPUT = AH_pin_detail::tmp_OUTPUT
constexpr

◆ INPUT_PULLUP

constexpr PinMode_t INPUT_PULLUP = AH_pin_detail::tmp_INPUT_PULLUP
constexpr
Examples
2.DigitalReadSerial.ino, and MCP23017.ino.

Definition at line 60 of file Arduino-Hardware-Types.hpp.