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

📄 dvb_mem.h

📁 DVB软件,基于CT216软件的开发源程序.
💻 H
字号:
/**************************************************************************

        (C)Copyright Cheertek Inc. 2002-2004,
           D700, all right reserved.

        Product : STB Firmware

****************************************************************************/

#ifndef _DVB_MEM_H
#define _DVB_MEM_H

/*! \file
* This module provides the EIT control API.
*
*/

typedef enum
{
	EIT_MEMPOOL_TYPE = 0,
	BIG_MEMPOOL_TYPE,
	GEN_MEMPOOL_TYPE,
	MAX_MEMPOOL_TYPE
}EN_MEMPOOL_TYPE;	


extern void DVB_MEM_Init (void);
/*! \fn void DVB_MEM_Init (void)
\brief DVB Memory module init
*/

extern void *DVB_MEM_Allocate (EN_MEMPOOL_TYPE mem_type, u32 u32Number_of_bytes);
/*! \fn void *DVB_MEM_Allocate (EN_MEMPOOL_TYPE mem_type, u32 u32Number_of_bytes);
\brief This function can allocate memory from memory pool.
\param u32Number_of_bytes (Input) The number of memory will be allocated.
\return NULL - the memory can't allocate.
\return not NULL - allocate successful.
*/

extern void DVB_MEM_Free (EN_MEMPOOL_TYPE mem_type, void *pFree);
/*! \fn void DVB_MEM_Free (EN_MEMPOOL_TYPE mem_type, void *pFree)
\brief Free the memory into memory pool.
\param mem_type (Input) mem type indicate EIT or GEN 
\param pu8Free (Input) the pointer of memory buffer.
*/

extern void DVB_MEM_GetInfo (EN_MEMPOOL_TYPE mem_type, u32 *au32Start, u32 *au32End);
/*! \fn void DVB_MEM_GetInfo (EN_MEMPOOL_TYPE mem_type, u32 *au32Start, u32 *au32End);
\brief get memory pool information.
\param mem_type (Input) mem type indicate EIT or GEN 
\param pu8Free (Output) indicate the start address of memory pool.
\param pu8Free (Output) indicate the end address of memory pool.
*/

extern void DVB_MEM_PrintInfo (EN_MEMPOOL_TYPE mem_type);
/*! \fn void DVB_MEM_PrintInfo (EN_MEMPOOL_TYPE mem_type);
\brief print memory pool information.
\param mem_type (Input) mem type indicate EIT or GEN 
*/

extern bool8 DVB_MEM_DigestPool_Set (bool8 b8Used);

#endif

⌨️ 快捷键说明

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