lindef.h

来自「基于摩托罗拉(现在飞思卡尔)系列MC68HC908单片机开发车辆ECU系统!」· C头文件 代码 · 共 62 行

H
62
字号
#ifndef LINDEF_H
#define LINDEF_H
/******************************************************************************
*
*       Copyright (C) 2003 Motorola, Inc.
*       All Rights Reserved
*
* Filename:     $RCSfile: lindef.h,v $
* Author:       $Author: ttz778 $
* Locker:       $Locker:  $
* State:        $State: Exp $
* Revision:     $Revision: 1.1 $
*
* Functions:    LIN Driver data types and definitions.
*
* History:      Use the RCS command log to display revision history
*               information.
*
* Description:  
*
* Notes:        This file is NOT allowed to modify by user
*
******************************************************************************/

/*      Message direction.
        It is used for LinLookupTable.
        Bit format: abxxxxxx, where
            ab: 00 -- node ignores the message;
                01 -- node receives the message;
                10 -- node sends the message;
                11 -- node sends the message if it was updated;
            xxxxxx -- message index.                                */

#define LIN_RECEIVE         0x40u   /* node receives the message */
#define LIN_SEND            0x80u   /* node sends the message */
#define LIN_SEND_UPDATED    0xC0u   /* node sends the message if it was updated*/

/* User must not define the message if it should be ignored! */
#define LIN_IGNORE          0       /* node ignores the message */


/* Message state    */

/* The message data buffer is empty (data has not been initialized or reseived yet) */
#define LIN_MSG_NODATA      0x01u
/* The message data buffer has been updated by the user */
#define LIN_MSG_UPDATED     0x20u


/*      LIN Driver data types   */
typedef unsigned char   LINStatusType;         /* unsigned char unsigned   8  bits  */
typedef unsigned char   LINDriverStatusType;   /* unsigned char unsigned   8  bits  */
typedef unsigned char   LINMsgIdType;          /* unsigned char unsigned   8  bits  */
typedef unsigned char * LINMsgRefType;         /* unsigned char * unsigned 16 bits  */
typedef unsigned char   LINErrCounterType;     /* unsigned char unsigned   8  bits  */

/*      Types for message processing */
typedef unsigned char   LIN_MSGBUFFERTYPE;
typedef unsigned char   LIN_MSGLENGTHTYPE;

#endif /* define (LINDEF_H) */

⌨️ 快捷键说明

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