storage.h

来自「MSP430与DSP接口技术3 编辑环境C语言,未试过,仅供参考」· C头文件 代码 · 共 36 行

H
36
字号
/*
 *  Copyright 2003 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) XDSP_Audio 3.00.00.36 12-18-03 (swat-f30)" */
/*
 *  ======== storage.h ========
 *
 *  Inteface for STORAGE module that stores compressed songs
 *
 */
#ifndef STORAGE_
#define STORAGE_

typedef struct STORAGE_Obj {
	Uns offset;        /* offset to current block within the storage heap */ 
} STORAGE_Obj;

typedef STORAGE_Obj * STORAGE_Handle;

extern Void STORAGE_setup( Int heapIdentifier, Long storageSize );

extern Void STORAGE_new( STORAGE_Handle storageObjectAddress );

extern Void STORAGE_rewind( STORAGE_Handle handle );

extern Bool STORAGE_store( STORAGE_Handle handle, Ptr dataBuffer, Int bufferSize );

extern Bool STORAGE_retrieve( STORAGE_Handle handle, Ptr dataBuffer, Int bufferSize );
	   
#endif /* THRENCODE_ */

⌨️ 快捷键说明

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