pccdef.hec

来自「这是用Labwindows开发的一个RF test程序。 用于日本机种的组装后」· HEC 代码 · 共 142 行

HEC
142
字号
/******************************************************************************/
/* SCCS: %Z% Name: %M% Date US: %G% %U% Ver.: %I% */
/******************************************************************************/
/*F(*************************************************************************** 
 * File name : %M%
 * Project : ROAD RUNNER
 * Module : SVC : Services
 * Date : (US) %G% %U%
 * Version : %I%
 * Compiler name and release(s) :
 *----------------------------------------------------------------------------* 
 *----------------------------------------------------------------------------* 
 *                                    DESCRIPTION
 * Common constant definitions
 *----------------------------------------------------------------------------* 
 *----------------------------------------------------------------------------* 
 *                           FUNCTIONS DEFINED IN THIS FILE
 *----------------------------------------------------------------------------* 
 * Name            | Object
 *----------------------------------------------------------------------------* 
 * 
 *----------------------------------------------------------------------------* 
 *----------------------------------------------------------------------------* 
 *                                    EVOLUTION
 *----------------------------------------------------------------------------* 
 * Date     | Author    | Arnb   | Description
 *----------------------------------------------------------------------------* 
 * 06/25/95 | J.Thomas  |        | - Creation from 'SERVICES-RR17.1.18' for rtke
 ***************************************************************************)F*/
/* #*/

#ifndef PCCDEF_HEC
#define PCCDEF_HEC

#if defined WITH_PACKED
   /* Packed case */
#if defined _MCC68K
#define PKD packed
#define PACKED packed
#elif defined __arm
#define PKD __packed
#define PACKED __packed
#else
#define PKD
#define PACKED
#if defined (UNIX) || defined (__unix) || defined (_LABWIN32)
#define packed
#endif
#endif

#else /* Not packed case */

#if defined _MCC68K
#define PKD 
#define PACKED 
#elif defined __arm
#define PKD 
#define PACKED 
#else
#define PKD
#define PACKED
#if defined (UNIX) || defined (__unix) || defined (_LABWIN32)
#define packed
#endif
#endif

#endif




 /* Always Packed case */
#if defined _MCC68K
#define ALWAYS_PACKED packed
#elif defined __arm
#define ALWAYS_PACKED __packed
#else
#define ALWAYS_PACKED
#endif



/*.Aliases for types
 for more information about size of data in 68000 see comdef.ht
----------------------------------------------------------------*/
#define byte  u8
#define word  u16
#define dword u32
#define ascii char /* for compatibility with standard library */

/*.Aliases for minimum and maximum for types 
----------------------------------------------*/
#define U8_MAX  0xFF
#define U8_MIN  0x00
#define U16_MAX 0xFFFF
#define U16_MIN 0x0000
#define U32_MAX 0xFFFFFFFF
#define U32_MIN 0x00000000

#define S8_MAX  0x7F
#define S8_MIN  0x80
#define S16_MAX 0x7FFF
#define S16_MIN 0x8000
#define S32_MAX 0x7FFFFFFF
#define S32_MIN 0x80000000



/* General definitions
-----------------------*/
#ifndef TRUE
#define TRUE	(0x1)
#endif

#ifndef FALSE
#define FALSE	(0x0)
#endif

#ifndef NULL /* may already be defined in stdio.h */
#define NULL   (0)
#endif

#ifndef NIL
#define NIL    (0)
#endif

/* Type definition
   --------------- */
#define PCC_T_REQ		0
#define PCC_T_CNF		1
#define PCC_T_ERR		2
#define PCC_T_IND		3
#define PCC_T_RSP		4
#define PCC_T_RJT		5
#define PCC_T_TIM		6

#define PCC_T_MASK		0xFFF8


#endif

⌨️ 快捷键说明

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