<< Previous | Next >> | |
|
INT8U OSSemQuery( OS_EVENT * pevent, OS_SEM_DATA * pdata );
Description
- Obtains information about a semaphore.
Parameters
- pevent
- Pointer to the desired semaphore's event control block
- pdata
- Pointer to a data structure that will hold information about the semaphore.
Return value
- OS_NO_ERR
- The call was successful and the message was sent.
- OS_ERR_EVENT_TYPE
- Attempting to obtain data from a non semaphore.
- OS_ERR_PEVENT_NULL
- If the
pevent
parameter is a null pointer.
Library
- UCOS2.LIB
See also
- OSSemAccept, OSSemCreate, OSSemPend, OSSemPost
Dynamic C Functions | << Previous | Next >> | rabbit.com |