3-phase PV router
Loading...
Searching...
No Matches
config_system.h
Go to the documentation of this file.
1
12#ifndef CONFIG_SYSTEM_H
13#define CONFIG_SYSTEM_H
14
15#include <Arduino.h>
16
17#include "type_traits.hpp"
18
19inline constexpr uint8_t NO_OF_PHASES{ 3 };
21//--------------------------------------------------------------------------------------------------
22// for users with zero-export profile, this value will be negative
23inline constexpr int16_t REQUIRED_EXPORT_IN_WATTS{ 20 };
25//--------------------------------------------------------------------------------------------------
26// other system constants, should match most of installations
27inline constexpr uint8_t SUPPLY_FREQUENCY{ 50 };
29inline constexpr uint32_t WORKING_ZONE_IN_JOULES{ 3600UL };
31inline constexpr uint8_t DATALOG_PERIOD_IN_SECONDS{ 5 };
35// Computes inverse value at compile time to use '*' instead of '/'
36inline constexpr float invSUPPLY_FREQUENCY{ 1.0F / SUPPLY_FREQUENCY };
38//--------------------------------------------------------------------------------------------------
39
40#endif // CONFIG_SYSTEM_H
constexpr int16_t REQUIRED_EXPORT_IN_WATTS
Definition: config_system.h:23
constexpr uint32_t WORKING_ZONE_IN_JOULES
Definition: config_system.h:29
constexpr uint16_t
Definition: config_system.h:33
constexpr uint8_t ::type DATALOG_PERIOD_IN_MAINS_CYCLES
Definition: config_system.h:33
constexpr float invDATALOG_PERIOD_IN_MAINS_CYCLES
Definition: config_system.h:37
constexpr float invSUPPLY_FREQUENCY
Definition: config_system.h:36
constexpr uint8_t DATALOG_PERIOD_IN_SECONDS
Definition: config_system.h:31
constexpr uint8_t NO_OF_PHASES
Definition: config_system.h:19
constexpr uint8_t SUPPLY_FREQUENCY
Definition: config_system.h:27
Some useful but missing stl functions templates.