Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
CQueue.h
00001 /* 00002 * $Id: Queue.h 26 2011-06-09 10:24:02Z benoit $ 00003 * $Author: benoit $ 00004 * $Date: 2011-06-09 12:24:02 +0200 (jeu., 09 juin 2011) $ 00005 * $Rev: 26 $ 00006 * 00007 * 00008 * 00009 * 00010 * 00011 */ 00012 00013 #ifndef __CQUEUE_H__ 00014 #define __CQUEUE_H__ 00015 00016 00017 #include <stdint.h> 00018 #include "mbedNet.h" 00019 00020 struct CQueue 00021 { 00022 uint8_t pushIndex, 00023 popIndex; 00024 void *entries[QUEUE_MAX_ENTRY_COUNT + 1]; 00025 int16_t size; 00026 }; 00027 typedef struct CQueue CQueue_t; 00028 00029 00030 CQueue_t *CQueue_Alloc(int16_t size); 00031 int32_t CQueue_Push(CQueue_t *queue, void *entry); 00032 int32_t CQueue_Pop(CQueue_t *queue, void **entry); 00033 int32_t CQueue_Peek(CQueue_t *queue, void **entry); 00034 int32_t CQueue_Free(CQueue_t *queue); 00035 Bool_t CQueue_IsEmpty(const CQueue_t *queue); 00036 Bool_t CQueue_IsFull(const CQueue_t *queue); 00037 00038 00039 #endif /* __QUEUE_H__ */ 00040
Generated on Wed Jul 13 2022 06:09:33 by
1.7.2