3-phase PV router
Loading...
Searching...
No Matches
OverridePins< N, MaxPins > Class Template Reference

The override pins, as in config.h: each pin with the targets it forces. More...

#include <config_types.h>

Collaboration diagram for OverridePins< N, MaxPins >:

Public Member Functions

constexpr OverridePins (const KeyIndexPair< MaxPins >(&pairs)[N])
 The override pins, from a list of { pin, targets }.
 
constexpr uint8_t getPin (const uint8_t index) const
 The override pin at index (0 if out of range).
 
constexpr const PinList< MaxPins > & getTargets (const uint8_t index) const
 The targets of the override pin at index, as codes.
 
constexpr uint8_t size () const
 Number of override pins.
 

Private Member Functions

template<uint8_t... I>
constexpr OverridePins (const KeyIndexPair< MaxPins >(&pairs)[N], index_sequence< I... >)
 

Private Attributes

const KeyIndexPair< MaxPins > entries_ [N]
 

Detailed Description

template<uint8_t N, uint8_t MaxPins = 16>
class OverridePins< N, MaxPins >

The override pins, as in config.h: each pin with the targets it forces.

The targets stay codes here; OverrideTable (utils_override.h) holds what they force.

Template Parameters
NNumber of override pins.
MaxPinsMaximum number of targets per pin.

Definition at line 305 of file config_types.h.

Constructor & Destructor Documentation

◆ OverridePins() [1/2]

template<uint8_t N, uint8_t MaxPins = 16>
OverridePins< N, MaxPins >::OverridePins ( const KeyIndexPair< MaxPins >(&) pairs[N])
inlineconstexpr

The override pins, from a list of { pin, targets }.

Definition at line 309 of file config_types.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OverridePins() [2/2]

template<uint8_t N, uint8_t MaxPins = 16>
template<uint8_t... I>
OverridePins< N, MaxPins >::OverridePins ( const KeyIndexPair< MaxPins >(&) pairs[N],
index_sequence< I... >  )
inlineconstexprprivate

Definition at line 334 of file config_types.h.

Member Function Documentation

◆ getPin()

template<uint8_t N, uint8_t MaxPins = 16>
uint8_t OverridePins< N, MaxPins >::getPin ( const uint8_t index) const
inlineconstexpr

The override pin at index (0 if out of range).

Definition at line 321 of file config_types.h.

Here is the caller graph for this function:

◆ getTargets()

template<uint8_t N, uint8_t MaxPins = 16>
const PinList< MaxPins > & OverridePins< N, MaxPins >::getTargets ( const uint8_t index) const
inlineconstexpr

The targets of the override pin at index, as codes.

Definition at line 327 of file config_types.h.

Here is the caller graph for this function:

◆ size()

template<uint8_t N, uint8_t MaxPins = 16>
uint8_t OverridePins< N, MaxPins >::size ( ) const
inlineconstexpr

Number of override pins.

Definition at line 315 of file config_types.h.

Member Data Documentation

◆ entries_

template<uint8_t N, uint8_t MaxPins = 16>
const KeyIndexPair< MaxPins > OverridePins< N, MaxPins >::entries_[N]
private

the pins and their targets

Definition at line 339 of file config_types.h.


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