Arduino KVComm  master
Key-Value pair communication library for Arduino
Namespaces | Macros | Typedefs | Functions | Variables
ExtendedInputOutput.hpp File Reference
#include <AH/Settings/Warnings.hpp>
#include <AH/Settings/NamespaceSettings.hpp>
#include <AH/Arduino-Wrapper.h>
#include <AH/Hardware/Hardware-Types.hpp>
Include dependency graph for ExtendedInputOutput.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Macros

#define AH_EXT_PIN(x)   (x + NUM_DIGITAL_PINS + NUM_ANALOG_INPUTS)
 

Typedefs

using PinStatus_t = uint8_t
 
using PinMode_t = uint8_t
 
using BitOrder_t = uint8_t
 

Functions

ExtendedIOElement & getIOElementOfPin (pin_t pin)
 Find the IO element of a given extended IO pin number. More...
 
void pinMode (pin_t pin, PinMode_t mode)
 An ExtIO version of the Arduino function. More...
 
void pinMode (int pin, PinMode_t mode)
 An ExtIO version of the Arduino function. More...
 
void digitalWrite (pin_t pin, PinStatus_t val)
 An ExtIO version of the Arduino function. More...
 
void digitalWrite (int pin, PinStatus_t val)
 An ExtIO version of the Arduino function. More...
 
int digitalRead (pin_t pin)
 An ExtIO version of the Arduino function. More...
 
int digitalRead (int pin)
 An ExtIO version of the Arduino function. More...
 
void shiftOut (pin_t dataPin, pin_t clockPin, BitOrder_t bitOrder, uint8_t val)
 An ExtIO version of the Arduino function. More...
 
void shiftOut (int dataPin, int clockPin, BitOrder_t bitOrder, uint8_t val)
 An ExtIO version of the Arduino function. More...
 
analog_t analogRead (pin_t pin)
 An ExtIO version of the Arduino function. More...
 
analog_t analogRead (int pin)
 An ExtIO version of the Arduino function. More...
 
void analogWrite (pin_t pin, analog_t val)
 An ExtIO version of the Arduino function. More...
 
void analogWrite (int pin, analog_t val)
 An ExtIO version of the Arduino function. More...
 
void analogWrite (int pin, int val)
 An ExtIO version of the Arduino function. More...
 
void analogWrite (pin_t pin, int val)
 An ExtIO version of the Arduino function. More...
 

Variables

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

Macro Definition Documentation

◆ AH_EXT_PIN

#define AH_EXT_PIN (   x)    (x + NUM_DIGITAL_PINS + NUM_ANALOG_INPUTS)

Definition at line 18 of file ExtendedInputOutput.hpp.

Typedef Documentation

◆ PinStatus_t

using PinStatus_t = uint8_t

Definition at line 48 of file ExtendedInputOutput.hpp.

◆ PinMode_t

using PinMode_t = uint8_t

Definition at line 49 of file ExtendedInputOutput.hpp.

◆ BitOrder_t

using BitOrder_t = uint8_t

Definition at line 53 of file ExtendedInputOutput.hpp.

Variable Documentation

◆ HIGH

Definition at line 56 of file ExtendedInputOutput.hpp.

◆ LOW

Definition at line 57 of file ExtendedInputOutput.hpp.

◆ INPUT

Definition at line 59 of file ExtendedInputOutput.hpp.

◆ OUTPUT

Definition at line 60 of file ExtendedInputOutput.hpp.

◆ INPUT_PULLUP

Definition at line 61 of file ExtendedInputOutput.hpp.