WIP: SCEX Init #272

Closed
muellerr wants to merge 62 commits from irini into develop
4 changed files with 16 additions and 15 deletions
Showing only changes of commit f5ee21334c - Show all commits

View File

@ -1,5 +1,7 @@
#include "ScexDleParser.h" #include "ScexDleParser.h"
ScexDleParser::ScexDleParser(SimpleRingBuffer &decodeRingBuf, DleEncoder &decoder, BufPair encodedBuf, BufPair decodedBuf, UserHandler handler, ScexDleParser::ScexDleParser(SimpleRingBuffer &decodeRingBuf, DleEncoder &decoder,
void *args) : DleParser(decodeRingBuf, decoder, encodedBuf, decodedBuf, handler, args) {}; BufPair encodedBuf, BufPair decodedBuf, UserHandler handler,
void *args)
: DleParser(decodeRingBuf, decoder, encodedBuf, decodedBuf, handler, args){};
ScexDleParser::~ScexDleParser(){}; ScexDleParser::~ScexDleParser(){};

View File

@ -3,17 +3,17 @@
#include <fsfw/globalfunctions/DleParser.h> #include <fsfw/globalfunctions/DleParser.h>
class ScexDleParser : public DleParser { class ScexDleParser : public DleParser {
public: public:
ScexDleParser(SimpleRingBuffer &decodeRingBuf, DleEncoder &decoder, ScexDleParser(SimpleRingBuffer &decodeRingBuf, DleEncoder &decoder, BufPair encodedBuf,
BufPair encodedBuf, BufPair decodedBuf, UserHandler handler, BufPair decodedBuf, UserHandler handler, void *args);
void *args);
// ScexDleParser(SimpleRingBuffer &decodeRingBuf, DleEncoder &decoder, // ScexDleParser(SimpleRingBuffer &decodeRingBuf, DleEncoder &decoder,
// BufPair encodedBuf, BufPair decodedBuf, UserHandler handler, // BufPair encodedBuf, BufPair decodedBuf, UserHandler handler,
// void *args) : DleParser(decodeRingBuf, decoder, encodedBuf, decodedBuf, handler, args){} // void *args) : DleParser(decodeRingBuf, decoder, encodedBuf, decodedBuf, handler,
// args){}
virtual ~ScexDleParser(); virtual ~ScexDleParser();
private: private:
}; };

View File

@ -5,10 +5,10 @@
#include <algorithm> #include <algorithm>
#include <iostream> #include <iostream>
#include <random>
#include "fsfw/globalfunctions/CRC.h" #include "fsfw/globalfunctions/CRC.h"
#include "mission/devices/devicedefinitions/ScexDefinitions.h" #include "mission/devices/devicedefinitions/ScexDefinitions.h"
#include <random>
using std::ofstream; using std::ofstream;

View File

@ -8,9 +8,8 @@ uint8_t scex::createCmdByte(Cmds cmd, bool tempCheck) {
return (IDLE_BIT_0_DEF_STATE << 7) | (IDLE_BIT_1_DEF_STATE << 6) | (cmd << 1) | tempCheck; return (IDLE_BIT_0_DEF_STATE << 7) | (IDLE_BIT_1_DEF_STATE << 6) | (cmd << 1) | tempCheck;
} }
ReturnValue_t scex::prepareScexCmd(Cmds cmd, bool tempCheck, ReturnValue_t scex::prepareScexCmd(Cmds cmd, bool tempCheck, std::pair<uint8_t*, size_t> cmdBufPair,
std::pair<uint8_t*, size_t> cmdBufPair, size_t& cmdLen, size_t& cmdLen, std::pair<const uint8_t*, size_t> usrDataPair) {
std::pair<const uint8_t*, size_t> usrDataPair) {
using namespace scex; using namespace scex;
uint8_t* cmdBuf = cmdBufPair.first; uint8_t* cmdBuf = cmdBufPair.first;
const uint8_t* userData = usrDataPair.first; const uint8_t* userData = usrDataPair.first;