📄 appresources.h
字号:
/*
* Copyright 2002 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.
*
*/
/*
* ======== appResources.h ========
*
*/
#ifndef APPRESOURCES_
#define APPRESOURCES_
#include "appBiosObjects.h"
#include "appIO.h"
#ifdef __cplusplus
extern "C" {
#endif
#define MEMALIGN 128
#define NUMCHANNELS 1
/*
* Length of one channel data frame, in samples.
* NOTE: pipes' frame sizes in the configuration database must be
* changed if this value is changed.
*/
#define FRAMELEN 80
#define MAX_BUFFER_NUM 8
/*
* Data type holding one sample: 16 bits in this case. FRAMELEN above
* is the size, in these units, of one data frame processed by one channel.
*/
typedef Short Sample; /* Short is 16 bits on every CXX platform */
/*
* Handy macros for converting size in samples to size in words and
* vice versa -- pipe frame sizes are expressed in words (Ints), which
* may not be the same as size in samples. (On a C5X an Int is 16bit wide,
* on a C6X an Int is 32bit wide, and we have samples that are 16bit wide.
*/
#define sizeInSamples( bufsizeInWords ) \
( (bufsizeInWords) * sizeof( Int ) / sizeof( Sample ) )
#define sizeInWords( bufsizeInSamples ) \
( (bufsizeInSamples) * sizeof( Sample ) / sizeof( Int ) )
#ifdef __cplusplus
}
#endif // extern "C"
#endif // APPRESOURCES_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -