📄 mscaninc.h
字号:
/******************************************************************************
MOTOROLA INTERNAL USE ONLY
Copyright (c) Motorola 2000
File Name : $RCSfile: msCANinc.h,v $
Engineer : $Author: r40356 $
Location : EKB
Date Created : 16/11/98
Current Revision : $Revision: 1.2 $
Notes : Standard header file for msCAN driver.
*******************************************************************************
Motorola reserves the right to make changes without further notice to any
product herein to improve reliability, function or design. Motorola does
not assume any liability arising out ot the application or use of any
product, circuit, or software described herein; neither does it convey any
license under its patent rights nor the rights of others. Motorola products
are not designed, intended, or authorized for use as components in systems
intended for surgical implant into the body, or other applications intended
to support life, or for any other application in which the failure of the
Motorola product could create a situation where personal injury or death may
occur. Should Buyer purchase or use Motorola products for any such unintended
or unauthorized application, Buyer shall idemnify and hold Motorola and its
officers, employees, subsidiaries, affiliates, and distributors harmless
against all claims costs, damages, and expenses, and reasonable attorney fees
arising out of, directly or indirectly, any claim of personal injury or death
associated with such unintended or unathorized use, even if such claim alleges
that Motorola was negligent regarding the design or manufacture of the part.
Motorola and the Motorola logo* are registered trademarks of Motorola Ltd.
******************************************************************************/
#ifndef MSCANINC_H
#define MSCANINC_H /* This header file */
#include "msCANstd.h"
/******************************************************************************
Prototypes :
******************************************************************************/
void CAN0_TransmitISR (void);
void CAN1_TransmitISR (void);
void CAN2_TransmitISR (void);
void CAN3_TransmitISR (void);
void CAN0_ReceiveISR (void);
void CAN1_ReceiveISR (void);
void CAN2_ReceiveISR (void);
void CAN3_ReceiveISR (void);
void CAN0_WakeupISR (void);
void CAN1_WakeupISR (void);
void CAN2_WakeupISR (void);
void CAN3_WakeupISR (void);
#ifdef BANKED
#ifdef COSMIC
@far void CAN_TransmitISR (UINT8);
@far void CAN_ReceiveISR (UINT8);
@far void CAN_WakeupISR (UINT8);
#else /* not COSMIC */
void CAN_TransmitISR (UINT8);
void CAN_ReceiveISR (UINT8);
void CAN_WakeupISR (UINT8);
#endif /* COSMIC */
#else /* not BANKED */
void CAN_TransmitISR (UINT8);
void CAN_ReceiveISR (UINT8);
void CAN_WakeupISR (UINT8);
#endif /* BANKED */
void QueueMB_CAN (UINT8, UINT8);
void Load_MSCAN_Buff (UINT8 *, UINT8, UINT8 *, UINT8);
UINT8 ReadDataMB (UINT8, UINT8 *, UINT8);
void CAN_L_QueueMB (UINT8);
void MSCAN_L_Load_Buff (UINT8, UINT8, UINT8);
UINT8 L_ReadDataMB (UINT8, UINT8 *);
/******************************************************************************
Bit defines: driverFlags
******************************************************************************/
#define SLEEP 0x01
#define IMASK 0x10
/******************************************************************************
msCAN defines
******************************************************************************/
#define NO_OF_FILTER_REG 16 /* 8 code registers plus 8 mask registers */
#define NO_OF_MSCAN_TXBUFFER 3 /* msCAN has 3 Tx buffers */
/******************************************************************************
security check defines
******************************************************************************/
#define EEPROM_SECURITY 0x55aa
/*****************************************************************************/
#endif /* MSCANINC_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -