cancontroller.h

来自「can总线c语言 canopen 源程序」· C头文件 代码 · 共 68 行

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