drivers.h

来自「FREESCALE 提供的 ZIGBEE协议」· C头文件 代码 · 共 53 行

H
53
字号
/**
 * 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 + =
减小字号Ctrl + -
显示快捷键?