ZotBins Core
Loading...
Searching...
No Matches
fullnessTask.hpp
Go to the documentation of this file.
1
8
9#ifndef FULLNESS_TASK_HPP
10#define FULLNESS_TASK_HPP
11
12#include "freertos/FreeRTOS.h"
13#include "freertos/queue.h"
14#include "freertos/task.h"
15#include "task.hpp"
16
17namespace Zotbins
18{
23 class FullnessTask : public Task
24 {
25 public:
30 explicit FullnessTask(QueueHandle_t &messageQueue);
31
36 void start() override;
37
38 private:
45 static void taskFunction(void *task);
46
52 void setup();
53
59 void loop();
60
65 QueueHandle_t &mMessageQueue;
66 };
67}
68
69#endif
FullnessTask(QueueHandle_t &messageQueue)
Construct a new Fullness Task object.
Definition fullnessTask.cpp:11
void start() override
Start execution of Fullness Task.
Definition fullnessTask.cpp:16
Task(const char *name, const int priority, const uint32_t stackSize)
Construct a new Task object. Parameters are needed for FreeRTOS.
Definition task.hpp:31
Header file for Task class.