資源簡介
canopen協(xié)議源代碼,學(xué)習(xí)嵌入式開發(fā)和工業(yè)控制的同學(xué)可能會用到

代碼片段和文件信息
/*?packet-canopen.c
?*?Routines?for?CANopen?dissection
?*?Copyright?2011?Yegor?Yefremov?
?*
?*?Wireshark?-?Network?traffic?analyzer
?*?By?Gerald?Combs?
?*?Copyright?1998?Gerald?Combs
?*
?*?SPDX-License-Identifier:?GPL-2.0-or-later
?*/
#include?“config.h“
#include?
#include?“packet-socketcan.h“
void?proto_register_canopen(void);
void?proto_reg_handoff_canopen(void);
/*?Initialize?the?protocol?and?registered?fields?*/
static?int?proto_canopen?=?-1;
static?int?hf_canopen_cob_id?=?-1;
static?int?hf_canopen_function_code?=?-1;
static?int?hf_canopen_node_id?=?-1;
static?int?hf_canopen_pdo_data?=?-1;
static?int?hf_canopen_pdo_data_string?=?-1;
static?int?hf_canopen_sdo_cmd?=?-1;
static?int?hf_canopen_sdo_cmd_ccs?=?-1;
static?int?hf_canopen_sdo_cmd_scs?=?-1;
static?int?hf_canopen_sdo_cmd_toggle?=?-1;
static?int?hf_canopen_sdo_cmd_updown_n?=?-1;
static?int?hf_canopen_sdo_cmd_updown_c?=?-1;
static?int?hf_canopen_sdo_cmd_init_n?=?-1;
static?int?hf_canopen_sdo_cmd_init_e?=?-1;
static?int?hf_canopen_sdo_cmd_init_s?=?-1;
static?int?hf_canopen_sdo_main_idx?=?-1;
static?int?hf_canopen_sdo_sub_idx?=?-1;
static?int?hf_canopen_sdo_data?=?-1;
static?int?hf_canopen_sdo_abort_code?=?-1;
static?int?hf_canopen_reserved?=?-1;
static?int?hf_canopen_em_err_code?=?-1;
static?int?hf_canopen_em_err_reg?=?-1;
static?int?hf_canopen_em_err_reg_ge?=?-1;
static?int?hf_canopen_em_err_reg_cu?=?-1;
static?int?hf_canopen_em_err_reg_vo?=?-1;
static?int?hf_canopen_em_err_reg_te?=?-1;
static?int?hf_canopen_em_err_reg_co?=?-1;
static?int?hf_canopen_em_err_reg_de?=?-1;
static?int?hf_canopen_em_err_reg_re?=?-1;
static?int?hf_canopen_em_err_reg_ma?=?-1;
static?int?hf_canopen_em_err_field?=?-1;
static?int?hf_canopen_nmt_ctrl_cs?=?-1;
static?int?hf_canopen_nmt_ctrl_node_id?=?-1;
static?int?hf_canopen_nmt_guard_state?=?-1;
static?int?hf_canopen_nmt_guard_toggle?=?-1;
static?int?hf_canopen_sync_counter?=?-1;
static?int?hf_canopen_lss_cs?=?-1;
static?int?hf_canopen_lss_addr_vendor?=?-1;
static?int?hf_canopen_lss_addr_product?=?-1;
static?int?hf_canopen_lss_addr_revision?=?-1;
static?int?hf_canopen_lss_addr_revision_low?=?-1;
static?int?hf_canopen_lss_addr_revision_high?=?-1;
static?int?hf_canopen_lss_addr_serial?=?-1;
static?int?hf_canopen_lss_addr_serial_low?=?-1;
static?int?hf_canopen_lss_addr_serial_high?=?-1;
static?int*?hf_canopen_lss_addr_ident[]?=?{
????????&hf_canopen_lss_addr_vendor
????????&hf_canopen_lss_addr_product
????????&hf_canopen_lss_addr_revision_low
????????&hf_canopen_lss_addr_revision_high
????????&hf_canopen_lss_addr_serial_low
????????&hf_canopen_lss_addr_serial_high
};
static?int*?hf_canopen_lss_addr_inquire[]?=?{
????????&hf_canopen_lss_addr_vendor
????????&hf_canopen_lss_addr_product
????????&hf_canopen_lss_addr_revision
????????&hf_canopen_lss_addr_serial
};
static?int?hf_canopen_lss_fastscan_id?=?-1;
static?int
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2018-08-21?17:41??canopen
?????文件??????57570??2018-08-21?09:16??canopen\packet-canopen.c
?????文件????????909??2018-08-21?09:17??canopen\packet-socketcan.h
-----------?---------??----------?-----??----
????????????????58479????????????????????3
評論
共有 條評論