CooCox 1.1.4 on mbed with simple blinky example
Queue management implementation code of CooCox CoOS kernel. More...
Go to the source code of this file.
Functions | |
OS_EventID | CoCreateQueue (void **qStart, U16 size, U8 sortType) |
Create a queue. | |
StatusType | CoDelQueue (OS_EventID id, U8 opt) |
Delete a queue. | |
void * | CoAcceptQueueMail (OS_EventID id, StatusType *perr) |
Accept a mail from queue. | |
void * | CoPendQueueMail (OS_EventID id, U32 timeout, StatusType *perr) |
Pend for a mail. | |
StatusType | CoPostQueueMail (OS_EventID id, void *pmail) |
Post a mail to queue. | |
StatusType | isr_PostQueueMail (OS_EventID id, void *pmail) |
Post a mail to queue in ISR. | |
Variables | |
QCB | QueueTbl [CFG_MAX_QUEUE] = {{0}} |
U32 | QueueIDVessel = 0 |
Detailed Description
Queue management implementation code of CooCox CoOS kernel.
- Version:
- V1.1.4
- Date:
- 2011.04.20
INTERNAL FILE,DON'T PUBLIC.
© COPYRIGHT 2009 CooCox
Definition in file queue.c.
Function Documentation
void* CoAcceptQueueMail | ( | OS_EventID | id, |
StatusType * | perr | ||
) |
OS_EventID CoCreateQueue | ( | void ** | qStart, |
U16 | size, | ||
U8 | sortType | ||
) |
Create a queue.
- Parameters:
-
[in] qStart Pointer to mail pointer buffer. [in] size The length of queue. [in] sortType Mail queue waiting list sort type. [out] None
- Return values:
-
E_CREATE_FAIL Create queue fail. others Create queue successful.
- Description
This function is called to create a queue.
- Note:
StatusType CoDelQueue | ( | OS_EventID | id, |
U8 | opt | ||
) |
Delete a queue.
- Parameters:
-
[in] id Event ID. [in] opt Delete option. [out] None
- Return values:
-
E_INVALID_ID Invalid event ID. E_INVALID_PARAMETER Invalid parameter. E_TASK_WAITTING Tasks waitting for the event,delete fail. E_OK Event deleted successful.
- Description
This function is called to delete a queue.
- Note:
void* CoPendQueueMail | ( | OS_EventID | id, |
U32 | timeout, | ||
StatusType * | perr | ||
) |
StatusType CoPostQueueMail | ( | OS_EventID | id, |
void * | pmail | ||
) |
StatusType isr_PostQueueMail | ( | OS_EventID | id, |
void * | pmail | ||
) |
Variable Documentation
U32 QueueIDVessel = 0 |
Generated on Tue Jul 12 2022 18:19:10 by 1.7.2