the C++ tooling is shit
This commit is contained in:
parent
7add782470
commit
1be09a2310
8
.idea/cmake.xml
Normal file
8
.idea/cmake.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CMakeSharedSettings">
|
||||||
|
<configurations>
|
||||||
|
<configuration PROFILE_NAME="Debug Test" ENABLED="true" CONFIG_NAME="Debug" GENERATION_OPTIONS="-DFSFW_OSAL=host -DFSFW_BUILD_TESTS=ON" NO_GENERATOR="true" />
|
||||||
|
</configurations>
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -61,8 +61,8 @@ struct DestHandlerParams {
|
|||||||
size_t maxFilenameLen = 255;
|
size_t maxFilenameLen = 255;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct FsfwParams {
|
struct FsfwDestParams {
|
||||||
FsfwParams(AcceptsTelemetryIF& packetDest, MessageQueueIF* msgQueue,
|
FsfwDestParams(AcceptsTelemetryIF& packetDest, MessageQueueIF* msgQueue,
|
||||||
EventReportingProxyIF* eventReporter, StorageManagerIF& tcStore,
|
EventReportingProxyIF* eventReporter, StorageManagerIF& tcStore,
|
||||||
StorageManagerIF& tmStore)
|
StorageManagerIF& tmStore)
|
||||||
: FsfwParams(packetDest, msgQueue, eventReporter) {
|
: FsfwParams(packetDest, msgQueue, eventReporter) {
|
||||||
@ -70,7 +70,7 @@ struct FsfwParams {
|
|||||||
this->tmStore = &tmStore;
|
this->tmStore = &tmStore;
|
||||||
}
|
}
|
||||||
|
|
||||||
FsfwParams(AcceptsTelemetryIF& packetDest, MessageQueueIF* msgQueue,
|
FsfwDestParams(AcceptsTelemetryIF& packetDest, MessageQueueIF* msgQueue,
|
||||||
EventReportingProxyIF* eventReporter)
|
EventReportingProxyIF* eventReporter)
|
||||||
: packetDest(packetDest), msgQueue(msgQueue), eventReporter(eventReporter) {}
|
: packetDest(packetDest), msgQueue(msgQueue), eventReporter(eventReporter) {}
|
||||||
AcceptsTelemetryIF& packetDest;
|
AcceptsTelemetryIF& packetDest;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#include "SourceHandler.h"
|
#include "SourceHandler.h"
|
||||||
|
|
||||||
SourceHandler::SourceHandler(SourceHandlerParams params) {
|
SourceHandler::SourceHandler(SourceHandlerParams params) {}
|
||||||
}
|
|
||||||
|
@ -1,14 +1,24 @@
|
|||||||
#ifndef FSFW_CFDP_CFDPSOURCEHANDLER_H
|
#ifndef FSFW_CFDP_CFDPSOURCEHANDLER_H
|
||||||
#define FSFW_CFDP_CFDPSOURCEHANDLER_H
|
#define FSFW_CFDP_CFDPSOURCEHANDLER_H
|
||||||
|
|
||||||
struct SourceHandlerParams {
|
struct SourceHandlerParams {};
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
class SourceHandler {
|
class SourceHandler {
|
||||||
public:
|
public:
|
||||||
SourceHandler(SourceHandlerParams params);
|
SourceHandler(SourceHandlerParams params);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
enum class TransactionStep : uint8_t {
|
||||||
|
IDLE = 0,
|
||||||
|
TRANSACTION_START = 1,
|
||||||
|
CRC_PROCEDURE = 2,
|
||||||
|
SENDING_METADATA = 3,
|
||||||
|
SENDING_FILE_DATA = 4,
|
||||||
|
SENDING_EOF = 5,
|
||||||
|
WAIT_FOR_ACK = 6,
|
||||||
|
WAIT_FOR_FINISH = 7,
|
||||||
|
NOTICE_OF_COMPLETION = 8
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // FSFW_CFDP_CFDPSOURCEHANDLER_H
|
#endif // FSFW_CFDP_CFDPSOURCEHANDLER_H
|
||||||
|
Loading…
Reference in New Issue
Block a user