ref_tsk
iref_tsk
ER ref_tsk (ID tskid, T_RTSK *pk_rtsk);
ER iref_tsk (ID tskid, T_RTSK *pk_rtsk);
Stores task state packet (current state, current priority, etc.) of the task specified by parameter tskid in the area specified by parameter pk_rtsk.
- tskpri
Stores the current priority.
The tskpri is effective only when the tskstat is other than TTS_DMT.
Stores the current priority.
The tskpri is effective only when the tskstat is other than TTS_DMT.
- tskbpri
Stores the base priority.
The tskbpri is effective only when the tskstat is other than TTS_DMT.
Stores the base priority.
The tskbpri is effective only when the tskstat is other than TTS_DMT.
- tskwait
Stores the reason for waiting.
The tskwait is effective only when the tskstat is TTS_WAI or TTS_WAS.
Stores the reason for waiting.
The tskwait is effective only when the tskstat is TTS_WAI or TTS_WAS.
- wobjid
Stores the object (such as semaphore, eventflag, etc.) ID number for which the task waiting.
The wobjid is effective only when the tskwait is TTW_SEM or TTW_FLG or TTW_SDTQ or TTW_RDTQ or TTW_MBX or TTW_MTX or TTW_SMBF or TTW_RMBF or TTW_MPF or TTW_MPL.
Stores the object (such as semaphore, eventflag, etc.) ID number for which the task waiting.
The wobjid is effective only when the tskwait is TTW_SEM or TTW_FLG or TTW_SDTQ or TTW_RDTQ or TTW_MBX or TTW_MTX or TTW_SMBF or TTW_RMBF or TTW_MPF or TTW_MPL.
- lefttmo
Stores the remaining time until time-out (in millisecond).
The TMO_FEVR is stored for waiting forever.
The lefttmo is effective only when the tskstat is TTS_WAI or TTS_WAS, and the tskwait is other than TTW_DLY.
Stores the remaining time until time-out (in millisecond).
The TMO_FEVR is stored for waiting forever.
The lefttmo is effective only when the tskstat is TTS_WAI or TTS_WAS, and the tskwait is other than TTW_DLY.
- wupcnt
Stores the wake-up request count.
The wupcnt is effective only when the tskstat is other than TTS_DMT.
Stores the wake-up request count.
The wupcnt is effective only when the tskstat is other than TTS_DMT.
- suscnt
Stores the suspension count.
The suscnt is effective only when the tskstat is other than TTS_DMT.
Stores the suspension count.
The suscnt is effective only when the tskstat is other than TTS_DMT.