01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Top of list<br />

Index page<br />

TaskList<br />

Comments<br />

typedef struct tagtasklist<br />

{<br />

unsigned int taskID; // Task handle<br />

char taskname[5]; // Four character string terminated with zero.<br />

} TaskList;<br />

This structure is defined in the header file rtxapi.h<br />

Related Topics<br />

Top of list<br />

Index page<br />

API function RTX_GET_TASK_LIST - Get list of current tasks in the system<br />

Task_StateData<br />

Comments<br />

typedef struct tag_task_statedata<br />

{<br />

unsigned int taskID; // Task handle<br />

unsigned int taskPrio; // Task priority<br />

unsigned int taskState; // Bit field<br />

unsigned int taskCount; // Duty cycle indicator<br />

unsigned int stackused; // Percentage of stack space used<br />

unsigned int stacksize; // Task's total stack size, in bytes<br />

} Task_StateData;<br />

This structure is defined in the header file rtxapi.h. Task Monitoring mode must be enabled to obtain all the data<br />

listed here.<br />

taskID<br />

Task handle used for the RTX API functions.<br />

taskPrio<br />

Current task priority.<br />

taskState<br />

This bit field is zero for active tasks. The reasons for an inactive task waiting are coded as follows:<br />

B0: Timer wait (used in combination with other bits: B2, B3, B4, B7)<br />

B1: Trigger wait (i.e. idle, see note)<br />

B2: Semaphore wait<br />

B3: Event Group wait<br />

Page 240 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!