DLE FRAM packets can be read now
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
2022-04-09 14:43:06 +02:00
parent 44c8f5f730
commit 808e01dfd3
13 changed files with 176 additions and 93 deletions

View File

@ -19,3 +19,5 @@ target_sources(${LIB_EIVE_MISSION} PRIVATE
PayloadPcduHandler.cpp
SolarArrayDeploymentHandler.cpp
)
add_subdirectory(devicedefinitions)

View File

@ -0,0 +1,3 @@
target_sources(${LIB_EIVE_MISSION} PRIVATE
ScexDefinitions.cpp
)

View File

@ -0,0 +1,5 @@
#include "ScexDefinitions.h"
uint8_t scex::createCmdByte(ScexCmds cmd, bool tempCheck) {
return (IDLE_BIT_0_DEF_STATE << 7) | (IDLE_BIT_1_DEF_STATE << 6) | (cmd << 1) | tempCheck;
}

View File

@ -6,18 +6,13 @@
// Definitions for the Solar Cell Experiment
namespace scex {
enum ScexCmds: uint8_t {
PING = 0b00111,
ONE_CELL = 0b00110
};
enum ScexCmds : uint8_t { PING = 0b00111, ONE_CELL = 0b00110, FRAM = 0b00001 };
static constexpr uint8_t IDLE_BIT_0_DEF_STATE = 0;
static constexpr uint8_t IDLE_BIT_1_DEF_STATE = 1;
uint8_t createCmdByte(ScexCmds cmd, bool tempCheck) {
return (IDLE_BIT_0_DEF_STATE << 7) | (IDLE_BIT_1_DEF_STATE << 6) | (cmd << 1) | tempCheck;
}
uint8_t createCmdByte(ScexCmds cmd, bool tempCheck);
}
} // namespace scex
#endif /* MISSION_DEVICES_DEVICEDEFINITIONS_SCEXDEFINITIONS_H_ */