📄 ld2_core.h
字号:
/* ************************************************************************ */
/* */
/* Volcano Communications Technologies AB */
/* All rights reserved */
/* */
/* ************************************************************************ */
/* **************************************************************************
* File: ld2_core.h
* Description: ld2_core contains common definitions for the diagnostic
* support function.
*/
#ifndef __LD2_CORE_H__
#define __LD2_CORE_H__
/* Service codes for all defined services */
#define NAD_SLEEP_REQUEST 0x00
#define NAD_BROADCAST 0x7f
#define SUPPLIER_ID_WILDCARD 0x7fffu
#define FUNCTION_ID_WILDCARD 0xffffu
#define MESSAGE_ID_WILDCARD 0xffffu
#define SID_NO_SERVICE 0x00
#define SID_ASSIGN_NAD 0xb0
#define SID_ASSIGN_FRAME_ID 0xb1
#define SID_READ_BY_ID 0xb2
#define SID_CONDITIONAL_CHANGE_NAD 0xb3
/* Return code in the positive response of the slave (in the srf) */
#define RSID_ASSIGN_NAD 0xf0
#define RSID_ASSIGN_FRAME_ID 0xf1
#define RSID_READ_BY_ID 0xf2
#define RSID_CONDITIONAL_CHANGE_NAD 0xf3
#define RSID_NEGATIVE_RESPONSE 0x7f
/* Read by ID services */
#define L_RID_PRODUCT_ID 0x00
#define L_RID_SERIAL_NUMBER 0x01
#define L_RID_MESSAGE_ID_1 0x10
#define L_RID_MESSAGE_ID_16 0x1f
/* Error code in the negative response of the slave (in the srf) */
#define ERROR_CODE_GENERAL_REJECT 0x10
#define ERROR_CODE_SERVICE_NOT_SUPPORTED 0x11
#define ERROR_CODE_SUB_FUNCTION_NOT_SUPPORTED 0x12
#endif /* __LD2_CORE_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -