3-phase PV router
Loading...
Searching...
No Matches
KeyIndexPair< MaxPins > Struct Template Reference

Structure holding a pin and its associated index list. More...

#include <config_types.h>

Inheritance diagram for KeyIndexPair< MaxPins >:

Public Member Functions

constexpr KeyIndexPair (uint8_t k, const PinList< MaxPins > &list)
 Constructor.
 
constexpr uint16_t getLocalBitmask () const
 Returns the bitmask for local pins in the index list.
 
constexpr uint8_t getRemoteBitmask () const
 Returns the bitmask for remote loads in the index list.
 

Public Attributes

PinList< MaxPins > indexList
 
uint8_t pin
 

Detailed Description

template<uint8_t MaxPins>
struct KeyIndexPair< MaxPins >

Structure holding a pin and its associated index list.

Template Parameters
MaxPinsMaximum number of pins supported.

Definition at line 264 of file config_types.h.

Constructor & Destructor Documentation

◆ KeyIndexPair()

template<uint8_t MaxPins>
KeyIndexPair< MaxPins >::KeyIndexPair ( uint8_t k,
const PinList< MaxPins > & list )
inlineconstexpr

Constructor.

Parameters
kPin value.
listIndex list.

Definition at line 274 of file config_types.h.

Member Function Documentation

◆ getLocalBitmask()

template<uint8_t MaxPins>
uint16_t KeyIndexPair< MaxPins >::getLocalBitmask ( ) const
inlineconstexpr

Returns the bitmask for local pins in the index list.

Returns
Bitmask for physical pins (< REMOTE_PIN_BASE).

Definition at line 281 of file config_types.h.

◆ getRemoteBitmask()

template<uint8_t MaxPins>
uint8_t KeyIndexPair< MaxPins >::getRemoteBitmask ( ) const
inlineconstexpr

Returns the bitmask for remote loads in the index list.

Returns
Bitmask where bit n is set if remote load n is in the list.

Definition at line 290 of file config_types.h.

Member Data Documentation

◆ indexList

template<uint8_t MaxPins>
PinList< MaxPins > KeyIndexPair< MaxPins >::indexList

Definition at line 267 of file config_types.h.

◆ pin

template<uint8_t MaxPins>
uint8_t KeyIndexPair< MaxPins >::pin

Definition at line 266 of file config_types.h.


The documentation for this struct was generated from the following file: