mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
Initial all inverters
This commit is contained in:
parent
45392983e1
commit
5796e9ff68
10 changed files with 19 additions and 53 deletions
|
@ -2,8 +2,10 @@
|
|||
#define AFORE_CAN_H
|
||||
#include "../include.h"
|
||||
|
||||
#ifdef AFORE_CAN
|
||||
#define CAN_INVERTER_SELECTED
|
||||
#define SELECTED_INVERTER_CLASS AforeCanInverter
|
||||
#endif
|
||||
|
||||
#include "CanInverterProtocol.h"
|
||||
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
#define BYD_CAN_H
|
||||
#include "../include.h"
|
||||
|
||||
#ifdef BYD_CAN
|
||||
#define CAN_INVERTER_SELECTED
|
||||
#define SELECTED_INVERTER_CLASS BydCanInverter
|
||||
#endif
|
||||
|
||||
#define FW_MAJOR_VERSION 0x03
|
||||
#define FW_MINOR_VERSION 0x29
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
#define BYD_MODBUS_H
|
||||
#include "../include.h"
|
||||
|
||||
#ifdef BYD_MODBUS
|
||||
#define MODBUS_INVERTER_SELECTED
|
||||
#define SELECTED_INVERTER_CLASS BydModbusInverter
|
||||
#endif
|
||||
|
||||
#include "ModbusInverterProtocol.h"
|
||||
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
#include "CanInverterProtocol.h"
|
||||
|
||||
#ifdef FERROAMP_CAN
|
||||
#define CAN_INVERTER_SELECTED
|
||||
#define SELECTED_INVERTER_CLASS FerroampCanInverter
|
||||
#endif
|
||||
|
||||
class FerroampCanInverter : public CanInverterProtocol {
|
||||
public:
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
#include "CanInverterProtocol.h"
|
||||
|
||||
#ifdef FOXESS_CAN
|
||||
#define CAN_INVERTER_SELECTED
|
||||
#define SELECTED_INVERTER_CLASS FoxessCanInverter
|
||||
#endif
|
||||
|
||||
class FoxessCanInverter : public CanInverterProtocol {
|
||||
public:
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
#include "CanInverterProtocol.h"
|
||||
|
||||
#ifdef GROWATT_HV_CAN
|
||||
#define CAN_INVERTER_SELECTED
|
||||
#define SELECTED_INVERTER_CLASS GrowattHvInverter
|
||||
#endif
|
||||
|
||||
class GrowattHvInverter : public CanInverterProtocol {
|
||||
public:
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
#include "CanInverterProtocol.h"
|
||||
|
||||
#ifdef GROWATT_LV_CAN
|
||||
#define CAN_INVERTER_SELECTED
|
||||
#define SELECTED_INVERTER_CLASS GrowattLvInverter
|
||||
#endif
|
||||
|
||||
class GrowattLvInverter : public CanInverterProtocol {
|
||||
public:
|
||||
|
|
|
@ -6,81 +6,29 @@ extern InverterProtocol* inverter;
|
|||
|
||||
#include "../../USER_SETTINGS.h"
|
||||
|
||||
#ifdef AFORE_CAN
|
||||
#include "AFORE-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef BYD_CAN_DEYE
|
||||
#define BYD_CAN
|
||||
#endif
|
||||
|
||||
#ifdef BYD_CAN
|
||||
#include "BYD-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef BYD_MODBUS
|
||||
#include "BYD-MODBUS.h"
|
||||
#endif
|
||||
|
||||
#ifdef BYD_KOSTAL_RS485
|
||||
#include "KOSTAL-RS485.h"
|
||||
#endif
|
||||
|
||||
#ifdef FERROAMP_CAN
|
||||
#include "FERROAMP-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef FOXESS_CAN
|
||||
#include "FOXESS-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef GROWATT_HV_CAN
|
||||
#include "GROWATT-HV-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef GROWATT_LV_CAN
|
||||
#include "GROWATT-LV-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef PYLON_CAN
|
||||
#include "KOSTAL-RS485.h"
|
||||
#include "PYLON-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef PYLON_LV_CAN
|
||||
#include "PYLON-LV-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef SCHNEIDER_CAN
|
||||
#include "SCHNEIDER-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef SMA_BYD_H_CAN
|
||||
#include "SMA-BYD-H-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef SMA_BYD_HVS_CAN
|
||||
#include "SMA-BYD-HVS-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef SMA_LV_CAN
|
||||
#include "SMA-LV-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef SMA_TRIPOWER_CAN
|
||||
#include "SMA-TRIPOWER-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef SOFAR_CAN
|
||||
#include "SOFAR-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef SOLAX_CAN
|
||||
#include "SOLAX-CAN.h"
|
||||
#endif
|
||||
|
||||
#ifdef SUNGROW_CAN
|
||||
#include "SUNGROW-CAN.h"
|
||||
#endif
|
||||
|
||||
void setup_inverter();
|
||||
|
||||
|
|
|
@ -5,8 +5,10 @@
|
|||
|
||||
#include "Rs485InverterProtocol.h"
|
||||
|
||||
#ifdef BYD_KOSTAL_RS485
|
||||
#define RS485_INVERTER_SELECTED
|
||||
#define SELECTED_INVERTER_CLASS KostalInverterProtocol
|
||||
#endif
|
||||
|
||||
//#define DEBUG_KOSTAL_RS485_DATA // Enable this line to get TX / RX printed out via logging
|
||||
//#define DEBUG_KOSTAL_RS485_DATA_USB // Enable this line to get TX / RX printed out via USB
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
#include "CanInverterProtocol.h"
|
||||
|
||||
#ifdef PYLON_CAN
|
||||
#define CAN_INVERTER_SELECTED
|
||||
#define SELECTED_INVERTER_CLASS PylonInverter
|
||||
#endif
|
||||
|
||||
class PylonInverter : public CanInverterProtocol {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue