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

📄 cancontroller.h

📁 CAN例程 源码 CAN例程 源码
💻 H
字号:
/* canController.h - CAN controller definitions for Wind River CAN Common Interface *//* Copyright 2001 Wind River Systems, Inc. *//* modification history --------------------26dec01,lsg added TOUCAN (PPC5xx) related macros09nov01,dnb modified for integration into Tornado12jul01,jac written*//* DESCRIPTIONThis file contains CAN controller definitions for the CAN Common Interface.*/#ifndef CAN_CONTROLLER_H_#define CAN_CONTROLLER_H_/* change these definitions to exclude CAN controllers that you don't want */#define INCLUDE_I82527#define INCLUDE_SJA1000#ifdef INCLUDE_MCP2510#undef INCLUDE_MCP2510#endif#if (CPU == PPC555)#define INCLUDE_TOUCAN#endif/* The CAN_ControllerType lists the available controllers */#define WNCAN_I82527   1#define WNCAN_SJA1000  2#define WNCAN_TOUCAN   3    #define WNCAN_MCP2510  4typedef UINT WNCAN_ControllerType;struct WNCAN_Controller{    WNCAN_ControllerType ctrlType;  /* type of controller */    UCHAR                ctrlID;    /* handle identifier of this controller */    UCHAR                brp;           UCHAR                sjw;      UCHAR                tseg1;    UCHAR                tseg2; 	UCHAR                samples;    struct WNCAN_Device  *pDev;    /* pointer to parent CAN_Device structure */    const UINT           *chnType; /* number of ways a message buffer can be configured */        UINT                 *chnMode; /* current way a message buffer is configured */    UCHAR                numChn;   /* number of available channels */    void                 *csData;  /* pointer to chip-specific data */    };/* function prototypes */STATUS WNCAN_Controller_establishLinks(struct WNCAN_Device *pDev,     WNCAN_ControllerType ctrlType);#endif /* CAN_CONTROLLER_H_ */

⌨️ 快捷键说明

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