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

📄 drivers.h

📁 FREESCALE 提供的 ZIGBEE协议
💻 H
字号:
/**
 * Copyright (c) 2004, Freescale Semiconductor
 * Freescale Confidential Proprietary
 *
 * File name :  drivers.h
 * Project name: SMAC (Simple Media Access Controller)
 *
 * Department : Freescale Radio Products Division
 *
 * Description : This is the SMAC C source driver header file for the HCS08 MCU
 * and MC13192 transceiver. The header defines all externals, prototypes and 
 * MC13192 status mask bits used by the actual C driver.
 *
 * $Author: a19259 $
 * $Date: 2005/07/29 02:27:50 $
 * $Name:  $
 */

#ifndef _DRIVERS_H
#define _DRIVERS_H

#include "device_header.h"
#include "pub_def.h"

/* Externals */
extern UINT8 gu8RTxMode;            /* Global mode mirror. */

/* Defines */
#define TX_IRQ_MASK         0x0040
#define RAMERR_IRQ_MASK     0x4000
#define RX_IRQ_MASK         0x0080
#define ATTN_IRQ_MASK       0x0400
#define CRC_VALID_MASK      0x0001
#define TIMER1_IRQ_MASK     0x0100
#define XCVR_SEQ_MASK       0xFFF8
#define LO_LOCK_IRQ_MASK    0x8000
#define CCA_IRQ_MASK        0x0020
#define DOZE_IRQ_MASK       0x0200
#define RESET_BIT_MASK      0x0080

/* Prototypes */
/* See drivers.c for a complete description. */
void SPIDrvWrite(UINT8 u8Addr, UINT16 u16Content);
UINT16 SPIDrvRead(UINT8 u8Addr);
UINT16 SPIDrvRead2(UINT8 u8Addr);
void RAMDrvWriteTx(tTxPacket *psTxPkt);
UINT8 RAMDrvReadRx(tRxPacket *psRxPkt);

#if defined (_56F800E)
void IRQIsr(void);
#endif

#endif /* _DRIVERS_H */

⌨️ 快捷键说明

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