diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-06-07 01:40:32 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-12-02 04:05:15 +0300 |
commit | 3aed59276c2b7275603f6da18377b77718948667 (patch) | |
tree | 86816d82ab02b6e4761175d599f5749490706792 /src/protocol_18/defines.h | |
parent | d86ca1e596b094cba101e0e3e6c8cdb71f8116e9 (diff) |
wipp17
Diffstat (limited to 'src/protocol_18/defines.h')
-rw-r--r-- | src/protocol_18/defines.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/protocol_18/defines.h b/src/protocol_18/defines.h new file mode 100644 index 0000000..83728f8 --- /dev/null +++ b/src/protocol_18/defines.h @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#ifndef INVERTER_TOOLS_P18_DEFINES_H +#define INVERTER_TOOLS_P18_DEFINES_H + +#include <map> +#include <string> +#include <array> + +#include "types.h" + +namespace p18 { + +extern const std::map<CommandType, std::string> raw_commands; + +extern const std::array<int, 5> ac_output_rated_voltages; + +extern const std::array<float, 8> bat_ac_recharging_voltages_12v; +extern const std::array<float, 8> bat_ac_recharging_voltages_24v; +extern const std::array<float, 8> bat_ac_recharging_voltages_48v; + +extern const std::array<float, 12> bat_ac_redischarging_voltages_12v; +extern const std::array<float, 12> bat_ac_redischarging_voltages_24v; +extern const std::array<float, 12> bat_ac_redischarging_voltages_48v; + +extern const std::map<int, std::string> fault_codes; + +extern const std::array<Flag, 9> flags; + +} + +#endif //INVERTER_TOOLS_P18_DEFINES_H |