ld2_slave.h

来自「基于mc908GR60的LIN通信例程」· C头文件 代码 · 共 52 行

H
52
字号
/* ************************************************************************ */
/*                                                                          */
/*                  Volcano Communications Technologies AB                  */
/*                            All rights reserved                           */
/*                                                                          */
/* ************************************************************************ */

/* **************************************************************************
 *         File: ld2_slave.h
 *  Description: ld2_slave is the internal driver for the diagnostic 
 *               support function for slave nodes. It does not represent 
 *               a customer API. As a matter of fact, a slave node does
 *               not have a diagnostic API at all.
 *
 */
#ifndef __LD2_SLAVE_H__
#define __LD2_SLAVE_H__

#include <l_types.h>
#include <l_core.h>


typedef struct
{
  l_bool busy;
} ld2_ram_slave;


typedef struct 
{
  l_ifc_slave_handle ifc;
  ld2_ram_slave*     ram;
  l_u8ram_handle     srf;              /* fg_buffer for the slave response frame */
  l_u8ram_handle     PID_list;
  l_u16              *MID_list;  
  l_u16              supplier_id;
  l_u16              function_id;
  l_flag             srf_frame_flag;  
  l_u8               variant;
  l_u8               PID_num;
} ld2_ifc_slave;

typedef const ld2_ifc_slave* ld2_ifc_slave_handle;


/*****************************************************************************
 * Properties that shall be declared by the application and are used by LTP.
 */
extern l_u8 LD_SERIAL[];

#endif /* __LD2_SLAVE_H__ */

⌨️ 快捷键说明

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