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

📄 i82527.h

📁 用于CAN源代码.rar的头文件,一个不错的例程.
💻 H
字号:
/* i82527.h - definitions for Intel 82527 CAN Controller *//* Copyright 2001 Wind River Systems, Inc. *//* modification history --------------------09nov01,dnb modified for integration into Tornado12jul01,jac written*//* DESCRIPTIONThis file contains the functions declarations, specific to the Intel 82527 CAN controller, that implement the interface defined in the wnCAN.h header file.  */#ifndef _I82527_H_#define _I82527_H_/* max number of message objects for i82527 */#define I82527_MAX_MSG_OBJ 15/* bit constants */#define I82527_B_INIT    0x01 /* is 1 after reset or busoff, must be set to 0 1st time */#define I82527_B_IE      0x02 /* interrupt enable, must be 1 for using msg obj int's */#define I82527_B_SIE     0x04 /* status interrupt enable, can be 0 */#define I82527_B_EIE     0x08 /* Error interrupt enable, can be 0 */#define I82527_B_CCE     0x40 /* config change enable, must be 0 for accessing cfg reg's*//* status register */#define I82527_B_LEC0    0x01#define I82527_B_LEC1    0x02#define I82527_B_LEC2    0x04#define I82527_B_TXOK    0x08#define I82527_B_RXOK    0x10 #define I82527_B_WAKE    0x20#define I82527_B_WARN    0x40 /* read-only, must be 0 for bus transfer */#define I82527_B_BOFF    0x80 /* read-only, must be 0 for bus transfer *//* CPU interface register */#define I82527_B_CEN     0x01#define I82527_B_MUX     0x04#define I82527_B_SLEEP   0x08#define I82527_B_PWD     0x10#define I82527_B_DMC     0x20#define I82527_B_DSC     0x40#define I82527_B_RSTST   0x80struct i82527ChipSpecific{    BOOL busOffInt;	BOOL wakeUpInt;	BOOL errorInt;};extern const UINT g_i82527chnType[I82527_MAX_MSG_OBJ];void i82527ISR(ULONG context);    #endif /* _I82527_H_ */

⌨️ 快捷键说明

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