📄 ld2_api.h
字号:
/* ************************************************************************ */
/* */
/* Volcano Communications Technologies AB */
/* All rights reserved */
/* */
/* ************************************************************************ */
/* **************************************************************************
* File: ld2iag.h
* Description: ld2iag is the customer API for the diagnostic
* support function for master nodes.
*/
#ifndef __LD2_API_H__
#define __LD2_API_H__
#include "l_core.h"
#include "ld2_master.h"
/* Return values from ld2_check_response */
#define LD_SUCCESS 0x00
#define LD_NEGATIVE 0x01
#define LD_NO_RESPONSE 0x02
#define LD_OVERWRITTEN 0x03
/******************************************************************************
* Diagnostic class 2 API
*/
L_LIB_PREFIX l_bool ld_is_ready (ld2_ifc_master_handle d_ifc);
L_LIB_PREFIX l_u8 ld_check_response (ld2_ifc_master_handle d_ifc, l_u8* rsid, l_u8* error_code);
L_LIB_PREFIX void ld_assign_NAD (ld2_ifc_master_handle d_ifc, l_u8 nad, l_u16 supplier_id, l_u16 function_id, l_u8 new_nad);
L_LIB_PREFIX void ld_assign_frame_id (ld2_ifc_master_handle d_ifc, l_u8 nad, l_u16 supplier_id, l_u16 message_id, l_u8 pid);
L_LIB_PREFIX void ld_read_by_id (ld2_ifc_master_handle d_ifc, l_u8 nad, l_u16 supplier_id, l_u16 function_id, l_u8 id, l_u8* const data);
L_LIB_PREFIX void ld_conditional_change_NAD (ld2_ifc_master_handle d_ifc, l_u8 nad, l_u8 id, l_u8 byte, l_u8 mask, l_u8 invert, l_u8 new_nad);
#endif /* __L_DIAG_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -