rmfifo.h

来自「SigmDesign SMP8634 media decode chip dev」· C头文件 代码 · 共 45 行

H
45
字号
/***************************************** Copyright © 2001-2004   Sigma Designs, Inc. All Rights Reserved Proprietary and Confidential *****************************************//**  @file   rmfifo.h  @brief  circularar fifo   @author Aurelia Popa-Radu  @date   03/12/2004*/#ifndef __RMFIFO_H__#define __RMFIFO_H__RM_EXTERN_C_BLOCKSTARTstruct RMfifo {	RMuint32 base;	RMuint32 size;	RMuint32 rd;	RMuint32 wr;};RM_LIBRARY_IMPORT_EXPORT struct RMfifo	*RMfifo_open			(RMuint32 data_address, RMuint32 data_size, RMuint32 fifo_address);RM_LIBRARY_IMPORT_EXPORT void		RMfifo_flush			(struct RMfifo *fifo);RM_LIBRARY_IMPORT_EXPORT void		RMfifo_close			(struct RMfifo *fifo);RM_LIBRARY_IMPORT_EXPORT RMbool		RMfifo_is_empty			(struct RMfifo *fifo);RM_LIBRARY_IMPORT_EXPORT RMuint32	RMfifo_get_info			(struct RMfifo *fifo, RMuint32 *data_start);RM_LIBRARY_IMPORT_EXPORT RMuint32	RMfifo_get_writable_size	(struct RMfifo *fifo, RMuint32 *wr_ptr1, RMuint32 *wr_size1, RMuint32 *wr_ptr2);RM_LIBRARY_IMPORT_EXPORT RMuint32	RMfifo_get_readable_size	(struct RMfifo *fifo, RMuint32 *rd_ptr1, RMuint32 *rd_size1, RMuint32 *rd_ptr2);RM_LIBRARY_IMPORT_EXPORT RMuint32	RMfifo_incr_write_ptr		(struct RMfifo *fifo, RMuint32 incr);RM_LIBRARY_IMPORT_EXPORT RMuint32	RMfifo_incr_read_ptr		(struct RMfifo *fifo, RMuint32 incr);RM_LIBRARY_IMPORT_EXPORT RMstatus RMFifoRead( RMuint8 *dest, RMuint32 size,	RMuint8 **src1, RMuint32 *size1, RMuint8 **src2, RMuint32 *size2,  RMuint32 fifo );RM_LIBRARY_IMPORT_EXPORT RMstatus RMFifoWrite( RMuint8 *src, RMuint32 size,	RMuint8 **dest1, RMuint32 *size1, RMuint8 **dest2, RMuint32 *size2, RMuint32 fifo );RM_EXTERN_C_BLOCKEND#endif // __RMFIFO_H__

⌨️ 快捷键说明

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