eive-obsw/bsp_q7s/core/ObjectFactory.h

53 lines
2.0 KiB
C
Raw Normal View History

2020-12-29 13:59:31 +01:00
#ifndef BSP_Q7S_OBJECTFACTORY_H_
#define BSP_Q7S_OBJECTFACTORY_H_
2022-08-24 17:27:47 +02:00
#include <fsfw/returnvalues/returnvalue.h>
#include <mission/tmtc/CcsdsIpCoreHandler.h>
#include <mission/tmtc/CfdpTmFunnel.h>
#include <mission/tmtc/PusTmFunnel.h>
2022-04-28 18:38:38 +02:00
#include <string>
2021-07-19 12:44:43 +02:00
class LinuxLibgpioIF;
2021-08-17 17:11:59 +02:00
class UartComIF;
2021-08-17 19:50:48 +02:00
class SpiComIF;
2022-02-02 17:36:40 +01:00
class I2cComIF;
2022-03-04 16:03:57 +01:00
class PowerSwitchIF;
2022-05-02 17:37:00 +02:00
class HealthTableIF;
2022-04-01 14:13:37 +02:00
class AcsBoardAssembly;
class GpioIF;
2021-07-19 12:44:43 +02:00
2020-12-29 13:59:31 +01:00
namespace ObjectFactory {
2021-07-19 12:44:43 +02:00
2021-02-14 14:59:43 +01:00
void setStatics();
2021-06-08 16:45:25 +02:00
void produce(void* args);
2021-07-19 12:44:43 +02:00
2021-08-17 19:50:48 +02:00
void createCommunicationInterfaces(LinuxLibgpioIF** gpioComIF, UartComIF** uartComIF,
SpiComIF** spiMainComIF, I2cComIF** i2cComIF,
SpiComIF** spiRwComIF);
2022-03-04 16:03:57 +01:00
void createPcduComponents(LinuxLibgpioIF* gpioComIF, PowerSwitchIF** pwrSwitcher);
void createPlPcduComponents(LinuxLibgpioIF* gpioComIF, SpiComIF* spiComIF,
PowerSwitchIF* pwrSwitcher);
2021-07-19 12:44:43 +02:00
void createTmpComponents();
2022-10-26 17:11:57 +02:00
ReturnValue_t createRadSensorComponent(LinuxLibgpioIF* gpioComIF);
2022-03-04 16:03:57 +01:00
void createAcsBoardComponents(LinuxLibgpioIF* gpioComIF, UartComIF* uartComIF,
PowerSwitchIF* pwrSwitcher);
void createHeaterComponents(GpioIF* gpioIF, PowerSwitchIF* pwrSwitcher, HealthTableIF* healthTable);
void createImtqComponents(PowerSwitchIF* pwrSwitcher);
void createBpxBatteryComponent();
void createStrComponents(PowerSwitchIF* pwrSwitcher);
2022-10-12 13:56:25 +02:00
void createSolarArrayDeploymentComponents(PowerSwitchIF& pwrSwitcher, GpioIF& gpioIF);
2022-04-14 11:17:07 +02:00
void createSyrlinksComponents(PowerSwitchIF* pwrSwitcher);
void createPayloadComponents(LinuxLibgpioIF* gpioComIF, PowerSwitchIF& pwrSwitcher);
2022-05-11 00:54:29 +02:00
void createReactionWheelComponents(LinuxLibgpioIF* gpioComIF, PowerSwitchIF* pwrSwitcher);
ReturnValue_t createCcsdsComponents(LinuxLibgpioIF* gpioComIF, CcsdsIpCoreHandler** ipCoreHandler);
void createMiscComponents();
2021-09-13 18:07:07 +02:00
void createTestComponents(LinuxLibgpioIF* gpioComIF);
2021-07-19 12:44:43 +02:00
2022-04-01 14:13:37 +02:00
void testAcsBrdAss(AcsBoardAssembly* assAss);
2022-01-18 11:41:19 +01:00
}; // namespace ObjectFactory
2020-12-29 13:59:31 +01:00
#endif /* BSP_Q7S_OBJECTFACTORY_H_ */