This commit is contained in:
Jakob Meier 2023-01-19 11:01:59 +01:00
parent 46904ee3f1
commit c291caba7d
2 changed files with 5 additions and 0 deletions

View File

@ -9,8 +9,12 @@ PdecConfig::~PdecConfig() {}
void PdecConfig::initialize() { void PdecConfig::initialize() {
uint32_t word = 0; uint32_t word = 0;
word |= (VERSION_ID << 30); word |= (VERSION_ID << 30);
// Setting the bypass flag and the control command flag should not have any
// implication on the operation of the PDEC IP Core
word |= (BYPASS_FLAG << 29); word |= (BYPASS_FLAG << 29);
word |= (CONTROL_COMMAND_FLAG << 28); word |= (CONTROL_COMMAND_FLAG << 28);
word |= (RESERVED_FIELD_A << 26); word |= (RESERVED_FIELD_A << 26);
word |= (SPACECRAFT_ID << 16); word |= (SPACECRAFT_ID << 16);
word |= (VIRTUAL_CHANNEL << 10); word |= (VIRTUAL_CHANNEL << 10);

View File

@ -100,6 +100,7 @@ void Max31865EiveHandler::simpleCommand(EiveMax31855::RtdCommands cmd) {
rawPacket = cmdBuf.data(); rawPacket = cmdBuf.data();
rawPacketLen = 1; rawPacketLen = 1;
} }
void Max31865EiveHandler::doTransition(Mode_t modeFrom, Submode_t subModeFrom) { void Max31865EiveHandler::doTransition(Mode_t modeFrom, Submode_t subModeFrom) {
if (getMode() == _MODE_TO_NORMAL) { if (getMode() == _MODE_TO_NORMAL) {
if (state != InternalState::ACTIVE) { if (state != InternalState::ACTIVE) {