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

📄 l_api.h

📁 基于FREESCALE单片机9S08DZ60的LIN从节点的应用层源代码.LIN是通过UART串口来实现的.开发环境为CODEWARRIOR FOR HC08
💻 H
字号:
#ifndef L_API_H
#define L_API_H
/******************************************************************************
*                                                       
*       Copyright (C) 2005 Freescale Semiconductor, Inc.
*       All Rights Reserved								              
*														                            
* Filename:     l_api.h                
*														                            
* Revision:      										                    
*														                            
* Functions:    LIN API header file for LIN Drivers
*														                            
* 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 );
void	l_ifc_tx_sci0( void );

/* 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 + -