⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compo_pool.h

📁 COMPO source code for reference
💻 H
字号:
/*******************************************************************************File name   : compo_pool.hDescription : pool manager interfaceCOPYRIGHT (C) STMicroelectronics 2000.Date               Modification                               Name----               ------------                               ----05 April 2004        Creation                                   TM*******************************************************************************//* Define to prevent recursive inclusion */#ifndef __COMPO_POOL_H#define __COMPO_POOL_H/* Includes ----------------------------------------------------------------- */#include "stddefs.h"/* C++ support */#ifdef __cplusplusextern "C" {#endif/* Exported Types ----------------------------------------------------------- */typedef struct{  U32                   NbFreeElem;           /* Number of Free elements in Data Pool */  U32                   NbElem;               /* Number of elements */  U32                   ElemSize;             /* Size of an element in Byte */  void*                 ElemArray_p;          /* Array of elements */  void**                HandleArray_p;        /* Array of handle (i.e array of pointers to elements)*/} stcompo_DataPoolDesc_t;/* Exported Functions ------------------------------------------------------- */void stcompo_InitDataPool(  stcompo_DataPoolDesc_t*    DataPool_p,  U32                       NbElem,  U32                       ElemSize,  void*                     ElemArray_p,  void**                    HandleArray_p);ST_ErrorCode_t stcompo_GetElement(  stcompo_DataPoolDesc_t* DataPool_p,  void**                 Handle_p);ST_ErrorCode_t stcompo_ReleaseElement(  stcompo_DataPoolDesc_t*  DataPool_p,  void*                   Handle_p);/* C++ support */#ifdef __cplusplus}#endif#endif /* #ifndef __COMPO_POOL_H *//* End of blt_pool.h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -