IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


sTASK_INFO Struct Reference
[RTX Data Structures and Type Definitions]

RTX task information report. More...


Detailed Description

This data structure is used by the RTX_Task_Info() and RTX_Task_Info_By_Id() API to report detailed information concerning a specific task.

typedef struct tTASK_INFO
{
    unsigned int    tiTaskState ;
    RTX_ID          tiTaskID ;
    char            tiName[5] ;
    unsigned char   tiTaskPriority ;
    unsigned char   tiProgIdx ;
    unsigned char   tiTaskMonStatus ;
    DWORD           tiDutyTime ;
    DWORD           tiElapsedTime ;
    QWORD           tiRunTime ;
    QWORD           tiExistTime ;
    unsigned int    tiStackUsed ;
    unsigned int    tiStackSize ;

} sTASK_INFO ;


The tiStackUsed member is valid only if the measureStack input parameter to the RTX_Task_Info() or RTX_Task_Info_By_Id() API was set.

All time values are read from the system's time base hardware up counter. The rate of this time base counter can be found at SysPublic::tbRateMHz. The time base rate is 33 MHz for a 132 MHz system clock.

The tiDutyTime and tiElapsedTime member values are valid only if the RTX_MON_READY bit is set in tiTaskMonStatus. These same values are up to date if both RTX_MON_READY and RTX_MON_RUNNING flags are set. (For first ten seconds of the Task Monitor's operation, only the RTX_MON_RUNNING will be set.)

Note: Task overall duty cycle loading can be calculated as:

     tiRunTime / tiExistTime

Since:
SC2x3 V1.00 - CLIB V1.00

Data Fields

unsigned int tiTaskState
RTX_ID tiTaskID
char tiName [5]
unsigned char tiTaskPriority
unsigned char tiProgIdx
unsigned char tiTaskMonStatus
DWORD tiDutyTime
DWORD tiElapsedTime
QWORD tiRunTime
QWORD tiExistTime
unsigned int tiStackUsed
unsigned int tiStackSize





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:40 2017 by Doxygen 1.6.1