3-phase PV router
Loading...
Searching...
No Matches
Rotation::Table< 0, NL > Class Template Reference

No rotation group: nothing to hold, nothing to rotate. More...

#include <rotation_groups.h>

Inheritance diagram for Rotation::Table< 0, NL >:
Collaboration diagram for Rotation::Table< 0, NL >:

Public Member Functions

template<uint8_t MaxPins>
constexpr Table (const RotationGroups< 0, MaxPins > &, const uint8_t(&)[NL], const uint8_t(&)[NL])
 
constexpr Table (const RotationGroups< NG, MaxPins > &groups, const uint8_t(&loadMap)[NL], const uint8_t(&priorities)[NL])
 
constexpr uint32_t loads (const uint8_t g) const
 The loads of group g: bit n set for load n.
 
constexpr uint32_t loads (uint8_t) const
 No loads: never called, there for the loops over size().
 
template<uint8_t N>
void rotate (uint8_t(&)[N]) const
 Nothing to rotate.
 
void rotate (uint8_t(&prio)[N]) const
 Rotates each group by one among its places; each entry keeps its ON bit.
 
constexpr uint8_t size () const
 Number of groups.
 
constexpr uint8_t size () const
 Number of groups: none.
 

Private Attributes

uint8_t ends_ [NG]
 
uint32_t loads_ [NG]
 
uint8_t places_ [NL]
 

Detailed Description

template<uint8_t NL>
class Rotation::Table< 0, NL >

No rotation group: nothing to hold, nothing to rotate.

Definition at line 290 of file rotation_groups.h.

Constructor & Destructor Documentation

◆ Table() [1/2]

template<uint8_t NL>
template<uint8_t MaxPins>
Rotation::Table< 0, NL >::Table ( const RotationGroups< 0, MaxPins > & ,
const uint8_t(&)[NL],
const uint8_t(&)[NL] )
inlineconstexpr

Definition at line 294 of file rotation_groups.h.

◆ Table() [2/2]

Rotation::Table< NG, NL >::Table ( const RotationGroups< NG, MaxPins > & groups,
const uint8_t(&) loadMap[NL],
const uint8_t(&) priorities[NL] )
inlineconstexpr
Parameters
groupsthe rotation groups, as in config.h
loadMapthe load map (physicalLoadPin)
prioritiesthe load numbers in priority order at startup (loadPrioritiesAtStartup)

Definition at line 231 of file rotation_groups.h.

Member Function Documentation

◆ loads() [1/2]

uint32_t Rotation::Table< NG, NL >::loads ( const uint8_t g) const
inlineconstexpr

The loads of group g: bit n set for load n.

Definition at line 256 of file rotation_groups.h.

◆ loads() [2/2]

template<uint8_t NL>
uint32_t Rotation::Table< 0, NL >::loads ( uint8_t ) const
inlineconstexpr

No loads: never called, there for the loops over size().

Definition at line 306 of file rotation_groups.h.

◆ rotate() [1/2]

template<uint8_t NL>
template<uint8_t N>
void Rotation::Table< 0, NL >::rotate ( uint8_t(&) [N]) const
inline

Nothing to rotate.

Definition at line 313 of file rotation_groups.h.

◆ rotate() [2/2]

void Rotation::Table< NG, NL >::rotate ( uint8_t(&) prio[N]) const
inline

Rotates each group by one among its places; each entry keeps its ON bit.

Definition at line 263 of file rotation_groups.h.

◆ size() [1/2]

uint8_t Rotation::Table< NG, NL >::size ( ) const
inlineconstexpr

Number of groups.

Definition at line 250 of file rotation_groups.h.

◆ size() [2/2]

template<uint8_t NL>
uint8_t Rotation::Table< 0, NL >::size ( ) const
inlineconstexpr

Number of groups: none.

Definition at line 300 of file rotation_groups.h.

Member Data Documentation

◆ ends_

uint8_t Rotation::Table< NG, NL >::ends_[NG]
private

the end of each group in places_

Definition at line 284 of file rotation_groups.h.

◆ loads_

uint32_t Rotation::Table< NG, NL >::loads_[NG]
private

the loads of each group, by load number

Definition at line 285 of file rotation_groups.h.

◆ places_

uint8_t Rotation::Table< NG, NL >::places_[NL]
private

the places of group 0, then of group 1...

Definition at line 283 of file rotation_groups.h.


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