Horizon
|
A Pin represents a logical pin of a Unit. More...
#include <unit.hpp>
Classes | |
class | AlternateName |
The Pin's alternate names. More... | |
Public Types | |
enum class | Direction { INPUT , OUTPUT , BIDIRECTIONAL , OPEN_COLLECTOR , POWER_INPUT , POWER_OUTPUT , PASSIVE , NOT_CONNECTED } |
Public Member Functions | |
Pin (const UUID &uu, const json &j) | |
Pin (const UUID &uu) | |
json | serialize () const |
UUID | get_uuid () const |
Static Public Member Functions | |
static UUID | alternate_name_uuid_from_index (int idx) |
Public Attributes | |
UUID | uuid |
std::string | primary_name |
The Pin's primary name. | |
Direction | direction = Direction::INPUT |
unsigned int | swap_group = 0 |
Pins of the same swap_group can be pinswapped. | |
std::map< UUID, AlternateName > | names |
Static Public Attributes | |
static const LutEnumStr< Pin::Direction > | direction_lut |
static const std::vector< std::pair< Pin::Direction, std::string > > | direction_names |
static const std::map< Pin::Direction, std::string > | direction_abbreviations |
|
static |
|
static |
|
static |
std::string horizon::Pin::primary_name |
The Pin's primary name.
i.e. PB0 on an MCU.
unsigned int horizon::Pin::swap_group = 0 |
Pins of the same swap_group can be pinswapped.
The swap group 0 is for unswappable pins.