fsfw/unittest/user/testcfg/pollingsequence/PollingSequenceFactory.h

33 lines
1.1 KiB
C
Raw Normal View History

2020-10-20 17:11:23 +02:00
#ifndef POLLINGSEQUENCEFACTORY_H_
#define POLLINGSEQUENCEFACTORY_H_
2020-10-29 12:23:27 +01:00
2020-10-20 17:11:23 +02:00
#include <fsfw/returnvalues/HasReturnvaluesIF.h>
class FixedTimeslotTaskIF;
/**
2020-10-29 12:23:27 +01:00
* All device handlers are scheduled by adding them into Polling Sequence Tables (PST)
* to satisfy stricter timing requirements of device communication,
* A device handler has four different communication steps:
2020-10-20 17:11:23 +02:00
* 1. DeviceHandlerIF::SEND_WRITE -> Send write via interface
* 2. DeviceHandlerIF::GET_WRITE -> Get confirmation for write
* 3. DeviceHandlerIF::SEND_READ -> Send read request
* 4. DeviceHandlerIF::GET_READ -> Read from interface
* The PST specifies precisely when the respective ComIF functions are called
* during the communication cycle time.
* The task is created using the FixedTimeslotTaskIF,
* which utilises the underlying Operating System Abstraction Layer (OSAL)
*
2020-10-29 12:23:27 +01:00
* @param thisSequence FixedTimeslotTaskIF * object is passed inside the Factory class when creating the PST
2020-10-20 17:11:23 +02:00
* @return
*/
namespace pst {
2020-10-29 12:23:27 +01:00
/* Default PST */
2020-10-20 17:11:23 +02:00
ReturnValue_t pollingSequenceInitDefault(FixedTimeslotTaskIF *thisSequence);
2020-10-29 12:23:27 +01:00
2020-10-20 17:11:23 +02:00
}
#endif /* POLLINGSEQUENCEINIT_H_ */