added local parameter handler to PdecConfig to store persistent parameters

This commit is contained in:
Jakob Meier
2023-02-23 10:09:04 +01:00
parent 28f3b07c5c
commit 3b17af9d07
8 changed files with 89 additions and 47 deletions

View File

@ -169,6 +169,8 @@ class PdecHandler : public SystemObject,
static const uint32_t NO_RF_MASK = 0x8000;
static const uint32_t NO_BITLOCK_MASK = 0x4000;
static const uint32_t MAX_INIT_TRIES = 20;
class ParameterId {
public:
// ID of the parameter to update the positive window of AD frames
@ -258,6 +260,16 @@ class PdecHandler : public SystemObject,
PdecConfig pdecConfig;
uint32_t initTries = 0;
/**
* @brief Performs initialization stuff which must be performed in first
* loop of running task
*
* @return OK if successful, otherwise FAILED
*/
ReturnValue_t firstLoop();
/**
* @brief Reads and handles messages stored in the commandQueue
*/
@ -265,6 +277,7 @@ class PdecHandler : public SystemObject,
ReturnValue_t polledOperation();
ReturnValue_t irqOperation();
void handleInitState();
ReturnValue_t checkAndHandleIrqs(int fd, uint32_t& info);
uint32_t readFar();