datatype.h

来自「atmelsam7s64做mp3解码的源程序」· C头文件 代码 · 共 55 行

H
55
字号
#ifndef __DATA_TYPE__
#define __DATA_TYPE__

typedef unsigned char      Byte;
typedef unsigned char      Uchar;
typedef unsigned char      uchar;
typedef unsigned int       Uint16;
typedef unsigned int       uint; 
typedef unsigned char      Uint8;
typedef int                Int16;
typedef float              Float16;
typedef unsigned long int  Uint32;
typedef long int           Int32;

typedef unsigned char      INT8U;
typedef unsigned int       INT16U;
typedef unsigned long      INT32U;

#define OK    1
#define KO    0

#define TRUE    1
#define FALSE   0


#define LOW(U16)   ((Byte)U16)
#define HIGH(U16)  ((Byte)(U16>>8))


typedef union 
{
  Uint32 l;
  Uint16 w[2];
  Byte   b[4];
} Union32;

typedef union 
{

  Uint16 w;
  Byte   b[2];
} Union16;



typedef struct  
{
  Uint16 nb_cylinder;
  Byte   nb_head;
  Byte   nb_sector;
  Byte   nb_hidden_sector;
  Byte   nb_sector_per_cluster;
} s_format;

#endif

⌨️ 快捷键说明

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