l_api.h
来自「基于摩托罗拉(现在飞思卡尔)系列MC68HC908单片机开发车辆ECU系统!」· C头文件 代码 · 共 65 行
H
65 行
#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 + =
减小字号Ctrl + -
显示快捷键?