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

📄 cm_mem.h

📁 中国石油二期加油站IC系统后台通讯软件
💻 H
字号:

/********************************************************************20**
 
     Name:     Common Memory Manager 
 
     Type:     C include file
 
     Desc:     Defines that are required by the Common Memory Manager.
 
     File:     cm_mem.h
 
     Sid:      cm_mem.h 1.2  -  08/12/98 13:53:26
 
     Prg:      rm
 
*********************************************************************21*/

#ifndef __CMMEMH_
#define __CMMEMH_

#ifdef __cplusplus
extern "C" {
#endif


#define CMM_MINBUFSIZE   (PTRALIGN(sizeof(CmHEntry)))
#define CMM_DATALIGN(s, msz)  (((Size)(s) % msz) ? ((Size)(s) + ((msz - (Size)(s) % msz))): (Size)(s)) 

#define CMM_BUFSIZE(s, msz)   ((Size)(s) < (Size) msz ? \
                                      (Size) msz : \
                                      (Size) CMM_DATALIGN(s, msz))

/* defines */
#define  CMM_MAX_BKT_ENT    30  
#define  CMM_MAX_MAP_ENT    128

/* Valid Physical Bit */
#define  CMM_REG_PHY_VALID  0x01 
#define  CMM_REG_OUTBOARD   0x02 
#define  DFLT_REG_FLAG       CMM_REG_PHY_VALID

#ifdef __cplusplus
}
#endif

#endif



/********************************************************************30**
 
         End of file: cm_mem.h 1.2  -  08/12/98 13:53:26
 
*********************************************************************31*/


/********************************************************************40**
 
        Notes:
 
*********************************************************************41*/

/********************************************************************50**
 
*********************************************************************51*/


/********************************************************************60**
 
        Revision history:
 
*********************************************************************61*/

/********************************************************************90**
 
    ver       pat    init                  description
------------ -------- ---- -----------------------------------------------
1.1          ---      rm   1. initial release

1.2          ---      kp   1. C++ compilable

*********************************************************************91*/


⌨️ 快捷键说明

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