|
| << Previous | Next >> |
INT8U OSTaskQuery (INT8U prio, OS_TCB *pdata);
Description
- Obtains a copy of the requested task's task control block (TCB).
Parameters
- prio
- Priority number of the task.
- pdata
- Pointer to task's TCB.
Return value
- OS_NO_ERR
- The requested task is suspended.
- OS_PRIO_INVALID
- The priority you specify is higher than the maximum allowed (i.e., ≥
OS_LOWEST_PRIO) orOS_PRIO_SELFis not specified.
- OS_PRIO_ERR
- The desired task has not been created.
Library
- OS_TASK.C
| 020-0059 Rev. D | << Previous | Next >> | µC/OS-II |