action
container
contrib
controller
coordinates
datalinklayer
datapool
datapoolglob
datapoollocal
defaultcfg
devicehandlers
events
fdir
globalfunctions
health
housekeeping
internalError
ipc
memory
modes
monitoring
objectmanager
osal
parameters
power
pus
returnvalues
rmap
serialize
serviceinterface
storagemanager
subsystem
tasks
tcdistribution
thermal
timemanager
tmstorage
tmtcpacket
tmtcservices
unittest
core
internal
testcfg
cdatapool
devices
events
ipc
objects
pollingsequence
PollingSequenceFactory.cpp
PollingSequenceFactory.h
returnvalues
tmtc
FSFWConfig.h
Makefile-FSFW-Tests
TestsConfig.h
testcfg.mk
tests
testtemplate
README.md
lcov.sh
unlockRealtime.sh
.gitignore
FSFWVersion.h
LICENSE
NOTICE
README.md
fsfw.mk
24 lines
671 B
C++
24 lines
671 B
C++
#include "PollingSequenceFactory.h"
|
|
|
|
#include <fsfw/serviceinterface/ServiceInterfaceStream.h>
|
|
#include <fsfw/devicehandlers/DeviceHandlerIF.h>
|
|
#include <fsfw/tasks/FixedTimeslotTaskIF.h>
|
|
|
|
ReturnValue_t pst::pollingSequenceInitDefault(
|
|
FixedTimeslotTaskIF *thisSequence) {
|
|
/* Length of a communication cycle */
|
|
uint32_t length = thisSequence->getPeriodMs();
|
|
|
|
/* Add polling sequence table here */
|
|
|
|
if (thisSequence->checkSequence() == HasReturnvaluesIF::RETURN_OK) {
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
}
|
|
else {
|
|
sif::error << "pst::pollingSequenceInitDefault: Sequence invalid!"
|
|
<< std::endl;
|
|
return HasReturnvaluesIF::RETURN_FAILED;
|
|
}
|
|
}
|
|
|