eive-obsw/dummies/helperFactory.h

39 lines
955 B
C
Raw Normal View History

2022-09-15 11:54:43 +02:00
#pragma once
2022-11-21 14:01:31 +01:00
#include <fsfw/power/PowerSwitchIF.h>
2023-02-13 15:59:44 +01:00
class GpioIF;
2022-09-15 11:54:43 +02:00
namespace dummy {
2023-06-17 17:01:01 +02:00
struct Tmp1075Cfg {
bool addTcsBrd0 = true;
bool addTcsBrd1 = true;
bool addPlPcdu0 = true;
bool addPlPcdu1 = true;
bool addIfBrd = true;
};
// Default values targeted towards EM.
2022-09-15 11:54:43 +02:00
struct DummyCfg {
bool addCoreCtrlCfg = true;
// Special variant because the ACU broke. Overrides addPowerDummies, only ACU dummy will be added.
bool addOnlyAcuDummy = false;
2022-09-15 11:54:43 +02:00
bool addPowerDummies = true;
2023-04-26 17:00:04 +02:00
bool addBpxBattDummy = true;
bool addSyrlinksDummies = true;
2022-09-15 11:54:43 +02:00
bool addAcsBoardDummies = true;
bool addSusDummies = true;
2022-09-16 14:01:54 +02:00
bool addTempSensorDummies = true;
bool addRtdComIFDummy = true;
2023-02-13 17:59:08 +01:00
bool addPlocDummies = true;
2023-06-29 16:40:21 +02:00
bool addStrDummy = true;
2023-06-17 17:01:01 +02:00
bool addTmpDummies = true;
Tmp1075Cfg tmp1075Cfg;
2023-06-09 17:16:01 +02:00
bool addCamSwitcherDummy = false;
2022-09-15 11:54:43 +02:00
};
2023-05-24 11:04:07 +02:00
void createDummies(DummyCfg cfg, PowerSwitchIF& pwrSwitch, GpioIF* gpioIF, bool enableHkSets);
2022-09-15 11:54:43 +02:00
} // namespace dummy