FreeRTOS Addons
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
cpp_freertos::Task Class Reference

A Thread which has the Run method implemented as loop which is executing the function that is passed in the constructor. More...

#include <task.hpp>

Inheritance diagram for cpp_freertos::Task:
cpp_freertos::Thread

Public Member Functions

 Task (const char *Name, uint16_t StackDepth, UBaseType_t Priority, void(*fn)(), size_t numberOfLoops=0)
 
virtual void Run ()
 Custom Implementation which is executing the provided method in a loop. More...
 
- Public Member Functions inherited from cpp_freertos::Thread
 Thread (const char *Name, uint16_t StackDepth, UBaseType_t Priority)
 
 Thread (const std::string Name, uint16_t StackDepth, UBaseType_t Priority)
 
 Thread (uint16_t StackDepth, UBaseType_t Priority)
 
virtual ~Thread ()
 
TaskHandle_t GetHandle ()
 
std::string GetName ()
 
char * GetName ()
 
UBaseType_t GetPriority ()
 
UBaseType_t GetPriorityFromISR ()
 
void Resume ()
 
void ResumeFromISR ()
 
void SetPriority (UBaseType_t NewPriority)
 
bool Start ()
 
bool Start (int core)
 Starts the task on the indicated core. More...
 
void Suspend ()
 

Protected Attributes

size_t count =0
 
void(* task )() = nullptr
 

Additional Inherited Members

- Static Public Member Functions inherited from cpp_freertos::Thread
static void EndScheduler ()
 
static void StartScheduler ()
 
static void Yield ()
 
- Protected Member Functions inherited from cpp_freertos::Thread
virtual void Cleanup ()
 
void Delay (const TickType_t Delay)
 
void DelayUntil (const TickType_t Period)
 
void ResetDelayUntil ()
 
virtual void Run ()=0
 
bool Wait (ConditionVariable &Cv, Mutex &CvLock, TickType_t Timeout=portMAX_DELAY)
 

Detailed Description

A Thread which has the Run method implemented as loop which is executing the function that is passed in the constructor.

Member Function Documentation

◆ Run()

virtual void cpp_freertos::Task::Run ( )
inlinevirtual

Custom Implementation which is executing the provided method in a loop.

Implements cpp_freertos::Thread.


The documentation for this class was generated from the following file: