ESP_IOT v2.5
IOT ESP Coding
Task Class Referenceabstract

#include <Task.h>

Inheritance diagram for Task:
Inheritance graph
Collaboration diagram for Task:
Collaboration graph

Public Member Functions

 Task (std::string taskName="task", uint16_t taskSize=10240, uint8_t priority=5)
 
 ~Task ()
 
void start (void *taskData=nullptr)
 
void stop ()
 
void delay (int ms)
 
virtual void run (void *data)=0
 
void setTaskSize (uint16_t size)
 
void setTaskPriority (uint8_t priority)
 
void setTaskName (std::string name)
 
void setCore (BaseType_t coreID)
 

Detailed Description

Definition at line 12 of file Task.h.

Constructor & Destructor Documentation

◆ Task()

Task::Task ( std::string  taskName = "task",
uint16_t  taskSize = 10240,
uint8_t  priority = 5 
)

Definition at line 14 of file Task.cpp.

◆ ~Task()

Task::~Task ( )

Definition at line 24 of file Task.cpp.

Member Function Documentation

◆ delay()

void Task::delay ( int  ms)

Definition at line 58 of file Task.cpp.

Here is the caller graph for this function:

◆ run()

virtual void Task::run ( void *  data)
pure virtual

Implemented in LED_DisPlay.

◆ setCore()

void Task::setCore ( BaseType_t  coreID)

Definition at line 78 of file Task.cpp.

Here is the caller graph for this function:

◆ setTaskName()

void Task::setTaskName ( std::string  name)

Definition at line 73 of file Task.cpp.

Here is the caller graph for this function:

◆ setTaskPriority()

void Task::setTaskPriority ( uint8_t  priority)

Definition at line 68 of file Task.cpp.

Here is the caller graph for this function:

◆ setTaskSize()

void Task::setTaskSize ( uint16_t  size)

Definition at line 63 of file Task.cpp.

◆ start()

void Task::start ( void *  taskData = nullptr)

Definition at line 37 of file Task.cpp.

Here is the caller graph for this function:

◆ stop()

void Task::stop ( )

Definition at line 47 of file Task.cpp.


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