⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pub_def.h

📁 用于WSN的PDA搜救器
💻 H
字号:
/**
 * Copyright (c) 2004, Freescale Semiconductor
 * Freescale Confidential Proprietary
 *
 * File name :  pub_def.h
 * Project name: SMAC (Simple Media Access Controller)
 *
 * Department : Freescale Radio Products Division
 *
 * Description :  Definitions for variable types, transciever modes and 
 * PHY status.
 *
 * $Author: flr005 $
 * $Date: 2006/02/23 16:24:37 $
 * $Name:  $
 */

#ifndef __PUB_DEFINE__
#define __PUB_DEFINE__

/*
 * Standard Definitions:
 * These defines allow for easier porting to other compilers. if porting change
 * these defines to the required values for the chosen compiler.
 */

typedef unsigned char   UINT8;      /*unsigned 8 bit definition */
typedef unsigned int    UINT16;     /*unsigned 16 bit definition*/
typedef unsigned long   UINT32;     /*unsigned 32 bit definition*/

typedef unsigned char   BYTE;      /*unsigned 8 bit definition */
typedef unsigned long   WORD;     /*unsigned 32 bit definition*/

typedef signed char     INT8;       /*signed 8 bit definition */
typedef int             INT16;      /*signed 16 bit definition*/
typedef long int        INT32;      /*signed 32 bit definition*/


/* Modes defined for the transciever */
#define IDLE_MODE               0x00
#define RX_MODE                 0x02
#define TX_MODE                 0x03
#define PULSE_TX_MODE           0x43
#define CCA_MODE                0x01
#define RX_MODE_WTO             0x80
#define HIBERNATE_MODE          0x81
#define DOZE_MODE               0x82
#define IDLE_MODE_DOZE          0x83
#define IDLE_MODE_ATTN          0x84
#define TIMEOUT                 0x85
#define SYSTEM_RESET_MODE       0x86    /* Not implemented */
#define MC13192_RESET_MODE      0x87    /* Not implemented */
#define MC13192_CONFIG_MODE     0x88    /* Not implemented */
#define RESET_DELAY             0x89    /* Set to 100ms    */

/* Test modes defined for the transciever */
#define PULSE_TX_PRBS9            0x01
#define FORCE_IDLE                0x02
#define CONTINUOUS_RX            0x03
#define CONTINUOUS_TX_MOD       0x04
#define CONTINUOUS_TX_NOMOD        0x05



#ifndef NULL
    #define NULL    ((void *)0)
#endif


#endif

⌨️ 快捷键说明

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