-
ref_tsk
iref_tsk
-
ER ref_tsk (ID tskid, T_RTSK *pk_rtsk);
ER iref_tsk (ID tskid, T_RTSK *pk_rtsk);
|
|
|
|
ID tskid;
|
ID number of the task to referenced.
Value: ID number of the task to referenced.
|
|
T_RTSK *pk_rtsk;
|
Pointer to the packet returning the task state.
|
[Task state packet: T_RTSK]
typedef struct t_rtsk {
STAT tskstat; /*Current state*/
PRI tskpri; /*Current priority*/
PRI tskbpri; /*Reserved for future use*/
STAT tskwait; /*Reason for waiting*/
ID wobjid; /*Object ID number for which the task is waiting*/
TMO lefttmo; /*Remaining time until timeout*/
UINT actcnt; /*Activation request count*/
UINT wupcnt; /*Wakeup request count*/
UINT suscnt; /*Suspension count*/
ATR tskatr; /*Attribute*/
PRI itskpri; /*Initial priority*/
ID memid; /*Reserved for future use*/
} T_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.
|
|
|
|
|
|
|
|
- tskid > Maximum ID number
- When this service call was issued from a non-task, TSK_SELF was specified tskid.
|
|
|
- This service call was issued in the CPU locked state.
|
|
|
- Specified task is not registered.
|