LSH-Core
Deterministic firmware core for Controllino-based Labo Smart Home nodes
 
Loading...
Searching...
No Matches
pin_tag.hpp
Go to the documentation of this file.
1
21#ifndef LSH_CORE_INTERNAL_PIN_TAG_HPP
22#define LSH_CORE_INTERNAL_PIN_TAG_HPP
23
24#include <stdint.h>
25
26namespace lsh
27{
28namespace core
29{
40template <uint8_t PinNumber> struct PinTag
41{
42 static constexpr uint8_t value = PinNumber;
43};
44} // namespace core
45} // namespace lsh
46
47#endif // LSH_CORE_INTERNAL_PIN_TAG_HPP
Type-level wrapper around one Arduino pin number.
Definition pin_tag.hpp:41
static constexpr uint8_t value
Pin number encoded by the tag and propagated through overload resolution.
Definition pin_tag.hpp:42