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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

B4: Message Exchange wait<br />

B5: -- not implemented --<br />

B6: Suspended (waiting for resume)<br />

B7: Asleep waiting for wakeup<br />

B8 - B15 internal use only<br />

Notes:<br />

■ A task is in "trigger wait" state prior to starting (e.g. RTX_TASK_CREATE_WITHOUT_RUN) or after<br />

termination. A RTX_RESTART_TASK call exits this state.<br />

■ Where as B1, B2, B3, B4 and B7 are mutually exclusive wait conditions, B6 "Suspended" condition can<br />

be added (OR'ed in) to these other wait conditions.<br />

taskCount<br />

This value, ranging from 0 to 10000, provides a rough indication of the amount load placed on the system by<br />

this task. At each execution of the <strong>@CHIP</strong>-<strong>RTOS</strong> 1000 Hz real-time interrupt handler, this count is incremented<br />

if this particular task is either currently executing or if the CPU is idle and this task was the most recent task to<br />

be executed. The running count is recorded at 10 second intervals, so a task which is active 100% of the time<br />

would score a taskCountof 10000. (Same true if the task had been sleeping for the last 10 seconds, but it<br />

was the most recently active task ... oh well.)<br />

stackused<br />

This value is the percentage of the task's stack space used. The system presets stack space to all zeroes prior<br />

to starting tasks. The deepest (lowest address) non-zero value on the stack indicates the "high water<br />

mark". This value is only meaningful for tasks created within application programs. DOS programs normally<br />

switch stacks on entry, so this the stack space usage measurement is defeated.<br />

stacksize<br />

This is the total number of bytes in the task's stack space. This value is only meaningful for tasks created within<br />

application programs, due to that DOS programs normally switch stacks on entry.<br />

Related Topics<br />

Top of list<br />

Index page<br />

API function RTX_GET_TASK_STATE - Get state of a task<br />

TimeDate_Structure<br />

Comments<br />

typedef struct tag_time<br />

{<br />

unsigned char sec; // Seconds (0-59)<br />

unsigned char min; // Minutes (0-59)<br />

unsigned char hr; // Hours (0-23)<br />

unsigned char dy; // Day (1-31)<br />

unsigned char mn; // Month (1-12)<br />

unsigned char yr; // Year (0-99)<br />

unsigned char dow; // Day of week (Mon=1 to Sun=7)<br />

unsigned char dcen; // Century if time/date is correct<br />

} TimeDate_Structure;<br />

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

Related Topics<br />

API function RTX_GET_TIMEDATE - Get system time and date<br />

API function RTX_SET_TIMEDATE - Set system time and date<br />

Page 241 / 400

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

Saved successfully!

Ooh no, something went wrong!