3-phase PV router
Loading...
Searching...
No Matches
RelaySetting Struct Reference

The settings of one relay, as in config.h: { pin, surplus, import, minON, minOFF }. More...

#include <config_types.h>

Public Member Functions

constexpr RelaySetting (const uint8_t p, const int16_t surplus=1000, const int16_t import=200, const uint16_t on=5, const uint16_t off=5)
 A relay on p; what is left out takes its default.
 

Public Attributes

int16_t importThreshold
 
uint16_t minOFF
 
uint16_t minON
 
uint8_t pin
 
int16_t surplusThreshold
 

Detailed Description

The settings of one relay, as in config.h: { pin, surplus, import, minON, minOFF }.

Thresholds in W, minimum times in minutes. Left out, they take the defaults of RelayLogic::Relay: 1000 W, 200 W, 5 and 5 minutes.

Definition at line 623 of file config_types.h.

Constructor & Destructor Documentation

◆ RelaySetting()

RelaySetting::RelaySetting ( const uint8_t p,
const int16_t surplus = 1000,
const int16_t import = 200,
const uint16_t on = 5,
const uint16_t off = 5 )
inlineconstexpr

A relay on p; what is left out takes its default.

Definition at line 632 of file config_types.h.

Member Data Documentation

◆ importThreshold

int16_t RelaySetting::importThreshold

import in W to turn it OFF (negative: surplus below which it turns OFF)

Definition at line 627 of file config_types.h.

◆ minOFF

uint16_t RelaySetting::minOFF

minimum OFF time, in minutes

Definition at line 629 of file config_types.h.

◆ minON

uint16_t RelaySetting::minON

minimum ON time, in minutes

Definition at line 628 of file config_types.h.

◆ pin

uint8_t RelaySetting::pin

the pin of the relay

Definition at line 625 of file config_types.h.

◆ surplusThreshold

int16_t RelaySetting::surplusThreshold

surplus in W to turn the relay ON

Definition at line 626 of file config_types.h.


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