FreeRTOS Tetris
Data Fields
xTASK_STATUS Struct Reference

#include <task.h>

Collaboration diagram for xTASK_STATUS:
Collaboration graph

Data Fields

TaskHandle_t xHandle
 The handle of the task to which the rest of the information in the structure relates.
 
const char * pcTaskName
 A pointer to the task's name. This value will be invalid if the task was deleted since the structure was populated! *‍/ /*lint !e971 Unqualified char types are allowed for strings and single characters only.
 
UBaseType_t xTaskNumber
 A number unique to the task.
 
eTaskState eCurrentState
 The state in which the task existed when the structure was populated.
 
UBaseType_t uxCurrentPriority
 The priority at which the task was running (may be inherited) when the structure was populated.
 
UBaseType_t uxBasePriority
 The priority to which the task will return if the task's current priority has been inherited to avoid unbounded priority inversion when obtaining a mutex. Only valid if configUSE_MUTEXES is defined as 1 in FreeRTOSConfig.h.
 
uint32_t ulRunTimeCounter
 The total run time allocated to the task so far, as defined by the run time stats clock. See http://www.freertos.org/rtos-run-time-stats.html. Only valid when configGENERATE_RUN_TIME_STATS is defined as 1 in FreeRTOSConfig.h.
 
StackType_tpxStackBase
 Points to the lowest address of the task's stack area.
 
uint16_t usStackHighWaterMark
 The minimum amount of stack space that has remained for the task since the task was created. The closer this value is to zero the closer the task has come to overflowing its stack.
 

Detailed Description

Used with the uxTaskGetSystemState() function to return the state of each task in the system.


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