26 lines
790 B
C
26 lines
790 B
C
|
#ifndef MISSION_SYSTEM_DUALLANEPOWERSTATEMACHINE_H_
|
||
|
#define MISSION_SYSTEM_DUALLANEPOWERSTATEMACHINE_H_
|
||
|
|
||
|
#include <devices/powerSwitcherList.h>
|
||
|
#include <fsfw/modes/HasModesIF.h>
|
||
|
|
||
|
#include "definitions.h"
|
||
|
|
||
|
class AssemblyBase;
|
||
|
class PowerSwitchIF;
|
||
|
|
||
|
class DualLanePowerStateMachine : public HasReturnvaluesIF {
|
||
|
public:
|
||
|
DualLanePowerStateMachine(pcduSwitches::Switches switchA, pcduSwitches::Switches switchB,
|
||
|
PowerSwitchIF* pwrSwitcher, duallane::PwrStates& state);
|
||
|
duallane::OpCodes powerStateMachine(Mode_t mode, Submode_t submode);
|
||
|
const pcduSwitches::Switches SWITCH_A;
|
||
|
const pcduSwitches::Switches SWITCH_B;
|
||
|
|
||
|
private:
|
||
|
duallane::PwrStates& state;
|
||
|
PowerSwitchIF* pwrSwitcher = nullptr;
|
||
|
};
|
||
|
|
||
|
#endif /* MISSION_SYSTEM_DUALLANEPOWERSTATEMACHINE_H_ */
|