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

📄 l_api.h

📁 基于摩托罗拉(现在飞思卡尔)系列MC68HC908单片机开发车辆ECU系统!
💻 H
字号:
#ifndef L_API_H
#define L_API_H
/******************************************************************************
*
*       Copyright (C) 2003 Motorola, Inc.
*       All Rights Reserved
*
* Filename:     $RCSfile: l_api.h,v $
* Author:       $Author: ttz778 $
* Locker:       $Locker:  $
* State:        $State: Exp $
* Revision:     $Revision: 1.1 $
*
* Functions:    LIN API header file for LIN Drivers
*
* History:      Use the RCS command log to display revision history
*               information.
*
* Description:  
*
* Notes:        
*
******************************************************************************/

/* LIN Driver data types and definitions */
#include <lindef.h>

/* LIN API data types */
typedef unsigned char	l_bool;
typedef unsigned char	l_u8;
typedef unsigned int	l_u16;
typedef unsigned char	l_irqmask;
typedef unsigned char	i_ioctl_op;

/* i_ioctl_op constant definition */
#define l_op_getrxerr   0x01        /* Provide the Receive Errors counter of the LIN Driver */
#define l_op_gettxerr   0x02        /* Provide the Transmit Errors counter of the LIN Driver */
#define l_op_clrrxerr   0x04        /* Clear the Receive Errors counter of the LIN Driver */
#define l_op_clrtxerr   0x08        /* Clear the Transmit Errors counter of the LIN Driver */
#define l_op_wakeup     0x10        /* Issues the LIN bus wakeup frame transmission */
#define l_op_getidle    0x20        /* Check "No-Bus-Activity" condition */
#define l_op_idleclock  0x40        /* Update "No-Bus-Activity" condition counter by 1 */

/* Functions declarations */
l_bool	l_sys_init( void );
void	l_ifc_init_sci0( void );
l_bool	l_ifc_connect_sci0( void );
l_bool	l_ifc_disconnect_sci0( void );
void	l_ifc_ioctl_sci0( i_ioctl_op op, void *pv );
void	l_ifc_rx_sci0( void );

#define	l_ifc_tx_sci0()                         /* LIN08 doesn't use SCI Tx interrupt */

/* User call-backs */
l_irqmask l_sys_irq_disable( void );
void	l_sys_irq_restore( l_irqmask previous );

#if !defined( LGENH)
#include    <l_gen.h>
#else /* !defined( LGENH ) */
#include    LGENH
#endif /* !defined( LGENH ) */

#endif /* define (L_API_H) */

⌨️ 快捷键说明

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