ZotBins Core
Loading...
Searching...
No Matches
weightTask.hpp
Go to the documentation of this file.
1
8
9#ifndef WEIGHT_TASK_HPP
10#define WEIGHT_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{
24 class WeightTask : public Task
25 {
26 public:
32 explicit WeightTask(QueueHandle_t &messageQueue);
33
38 void start() override;
39
40 private:
47 static void taskFunction(void *task);
48
54 void setup();
55
61 void loop();
62
67 QueueHandle_t &mMessageQueue;
68 };
69}
70
71#endif
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
WeightTask(QueueHandle_t &messageQueue)
Construct a new Weight Task object.
Definition weightTask.cpp:16
void start() override
Start execution of Weight Task.
Definition weightTask.cpp:21
Header file for Task class.