pdec ad frame config, wip
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#include "PdecConfig.h"
|
||||
#include "pdecconfigdefs.h"
|
||||
|
||||
#include "fsfw/serviceinterface/ServiceInterface.h"
|
||||
|
||||
@ -74,11 +75,14 @@ void PdecConfig::writeFrameHeaderFirstOctet() {
|
||||
word |= (SPACECRAFT_ID << 16);
|
||||
word |= (VIRTUAL_CHANNEL << 10);
|
||||
word |= (DUMMY_BITS << 8);
|
||||
word |= positiveWindow;
|
||||
word |= localParameterHandler.getValue(pdecconfigdefs::paramkeys::POSITIVE_WINDOW,
|
||||
pdecconfigdefs::defaultvalue::positiveWindow);
|
||||
*(memoryBaseAddress + FRAME_HEADER_OFFSET) = word;
|
||||
}
|
||||
|
||||
void PdecConfig::writeFrameHeaderSecondOctet() {
|
||||
uint8_t negativeWindow = localParameterHandler.getValue(pdecconfigdefs::paramkeys::NEGATIVE_WINDOW,
|
||||
pdecconfigdefs::defaultvalue::negativeWindow);
|
||||
uint32_t word = 0;
|
||||
word = 0;
|
||||
word |= (negativeWindow << 24);
|
||||
|
Reference in New Issue
Block a user