?? canboard.h
字號:
/* canBoard.h - CAN board definitions for Wind River CAN Common Interface *//* Copyright 2001 Wind River Systems, Inc. *//* modification history --------------------09nov01,dnb modified for integration into Tornado12jul01,jac written*//* DESCRIPTIONThis file contains CAN board definitions for the CAN Common Interface.*/#ifndef CAN_BOARD_H_#define CAN_BOARD_H_typedef enum{ _16MHZ = 16000000, _20MHZ = 20000000, _25MHZ = 25000000, _40MHZ = 40000000} XtalFreq;/* The CAN_BoardType lists the available CAN boards or modules */#define WNCAN_NO_BOARD_ASSIGNED 0#define WNCAN_ESD_PC104_200 1#define WNCAN_ESD_PCI_200 2#define WNCAN_MSMCAN 3#define WNCAN_PPC5XX 4#define WNCAN_ADLINK_7841 5#define WNCAN_DAYTONA 6typedef UINT WNCAN_BoardType;struct WNCAN_Device;struct WNCAN_Board{ void (*onEnterISR)(struct WNCAN_Device *); void (*onLeaveISR)(struct WNCAN_Device *); UCHAR (*canInByte)(struct WNCAN_Device *, unsigned int); void (*canOutByte)(struct WNCAN_Device *, unsigned int, UCHAR); void (*enableIrq)(struct WNCAN_Device *); void (*disableIrq)(struct WNCAN_Device *); WNCAN_BoardType brdType; UINT irq; ULONG ioAddress; UINT32 bar0; UINT32 bar1; UINT32 bar2; XtalFreq xtalFreq;}; /* function prototypes */STATUS WNCAN_Board_establishLinks(struct WNCAN_Device *, WNCAN_BoardType);struct WNCAN_Device *WNCAN_Board_Open(UINT,UINT,UINT);void WNCAN_Board_Close(struct WNCAN_Device *);void WNCAN_Board_Show(void);ULONG stringToUlong(const char *pStr);#endif /* CAN_BOARD_H_ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -