TI DSP中各种数据类型的定义
2010-03-22 23:02
225 查看
DSP/BIOS中的匈牙利记法为:
Sm开头的表示8-bit类型;
Md开头的表示16-bit类型;
Lg开头的表示32-bit类型;
Int表示有符号整型;
Uns表示无符号类型;
Bits表示按bit计算类型;
Sm开头的表示8-bit类型;
Md开头的表示16-bit类型;
Lg开头的表示32-bit类型;
Int表示有符号整型;
Uns表示无符号类型;
Bits表示按bit计算类型;
/* ============================================================================ * Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005 * * Use of this software is controlled by the terms and conditions found in the * license agreement under which this software has been supplied. * =========================================================================== */ /* * ======== tistdtypes.h ======== */ /* * These types are also defined by other TI components. They are bracketed * with _TI_STD_TYPES to avoid warnings for duplicate definition. * * You may get warnings about duplicate type definitions when using this * header file with earlier versions of DSP/BIOS and CSL. * * You can use the '-pds303' compiler option to suppress these warnings. */ #ifndef _TI_STD_TYPES #define _TI_STD_TYPES /* * This '#ifndef STD_' is needed to protect from duplicate definitions * of Int, Uns, etc. in DSP/BIOS v4.x (e.g. 4.90, 4.80) since these versions * of DSP/BIOS did not contain the '#ifndef_TI_STD_TYPES' logic. */ #ifndef STD_ /* * Aliases for standard C types */ typedef int Int; typedef unsigned Uns; typedef char Char; /* pointer to null-terminated character sequence */ typedef char *String; typedef void *Ptr; /* pointer to arbitrary type */ typedef unsigned short Bool; /* boolean */ #endif /* STD_ */ /* * Uint8, Uint16, Uint32, etc are defined to be "smallest unit of * available storage that is large enough to hold unsigned or integer * of specified size". */ /* Handle the 6x ISA */ #if defined(_TMS320C6X) /* Unsigned integer definitions (32bit, 16bit, 8bit) follow... */ typedef unsigned int Uint32_t; typedef unsigned short Uint16_t; typedef unsigned char Uint8_t; /* Signed integer definitions (32bit, 16bit, 8bit) follow... */ typedef int Int32_t; typedef short Int16_t; typedef char Int8_t; /* Handle the 54x, 55x and 28x ISAs */ #elif defined(_TMS320C5XX) || defined(__TMS320C55X__) || defined(_TMS320C28X) /* Unsigned integer definitions (32bit, 16bit, 8bit) follow... */ typedef unsigned long Uint32; typedef unsigned short Uint16; typedef unsigned char Uint8; /* Signed integer definitions (32bit, 16bit, 8bit) follow... */ typedef long Int32; typedef short Int16; typedef char Int8; #else /* Other ISAs not supported */ #error <tistdtypes.h> is not supported for this target #endif /* defined(_6x_) */ #endif /* _TI_STD_TYPES */
相关文章推荐
- 【转】各种数据类型的取值范围 C/C++标准库中定义的各个类型最大值最小值limit.h
- 编译器定义的C/C++语言各种基本数据类型的取值范围
- 有关TI DSP的一些东西(整理一些网络资源及手册资料)--外设寄存器和CPU控制寄存器、数据类型、中断的使用
- TI DSP各种段的定义
- 编译器定义的C/C++语言各种基本数据类型的取值范围用程序输出
- 编译器定义的C/C++语言各种基本数据类型的取值范围
- 各种平台和标准库定义的数据类型一览
- 编译器定义的C/C++语言各种基本数据类型的取值范围
- TI 数据类型的定义
- 关于Java初初学者的各种基本数据类型的定义。
- TI DSP各种段的定义
- 输出系统中各种数据类型所占的字节数
- 各种数据类型占据的字节
- java中的各种数据类型在内存中存储的方式
- Java语言基础02-用户定义数据类型
- IOS 蓝牙通信各种数据类型之间的转换
- C#.NET WebApi返回各种类型(图片/json数据/字符串),.net图片转二进制流或byte
- 175-基于TI DSP TMS320C6455、Xilinx V5 FPGA XC5VSX95T的高速数据处理核心板
- 数据表中字段及类型大小定义
- 2. R语言中各种数据类型常见运算的函数