Bug Summary

File:builds/wireshark/wireshark/epan/dissectors/packet-asam-cmp.c
Warning:line 3283, column 13
Value stored to 'offset' is never read

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -cc1 -triple x86_64-pc-linux-gnu -analyze -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name packet-asam-cmp.c -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -fno-delete-null-pointer-checks -mframe-pointer=all -relaxed-aliasing -fmath-errno -ffp-contract=on -fno-rounding-math -ffloat16-excess-precision=fast -fbfloat16-excess-precision=fast -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/builds/wireshark/wireshark/build -fcoverage-compilation-dir=/builds/wireshark/wireshark/build -resource-dir /usr/lib/llvm-22/lib/clang/22 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /builds/wireshark/wireshark/epan/dissectors -isystem /builds/wireshark/wireshark/build/epan/dissectors -isystem /usr/include/mit-krb5 -isystem /builds/wireshark/wireshark/epan -isystem /usr/include/libxml2 -D CARES_NO_DEPRECATED -D G_DISABLE_DEPRECATED -D G_DISABLE_SINGLE_INCLUDES -D WS_BUILD_DLL -D WS_DEBUG -D WS_DEBUG_UTF_8 -I /builds/wireshark/wireshark/build -I /builds/wireshark/wireshark -I /builds/wireshark/wireshark/include -D _GLIBCXX_ASSERTIONS -internal-isystem /usr/lib/llvm-22/lib/clang/22/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/16/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fmacro-prefix-map=/builds/wireshark/wireshark/= -fmacro-prefix-map=/builds/wireshark/wireshark/build/= -fmacro-prefix-map=../= -Wno-format-nonliteral -std=gnu17 -ferror-limit 19 -fvisibility=hidden -fwrapv -fwrapv-pointer -fstrict-flex-arrays=3 -stack-protector 2 -fstack-clash-protection -fcf-protection=full -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fexceptions -fcolor-diagnostics -analyzer-output=html -faddrsig -fdwarf2-cfi-asm -o /builds/wireshark/wireshark/sbout/2026-11-21-100318-3661-1 -x c /builds/wireshark/wireshark/epan/dissectors/packet-asam-cmp.c
1/* packet-asam-cmp.c
2 * ASAM Capture Module Protocol dissector.
3 * Copyright 2021-2023 Alicia Mediano Schikarski, Technica Engineering GmbH
4 * Copyright 2021-2026 Dr. Lars Völker, Technica Engineering GmbH
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13 /*
14 * This is a dissector for the Capture Module Protocol standardized by the ASAM.
15 * ASAM CMP is the standardized successor of TECMP.
16 */
17
18#include "config.h"
19
20#include "math.h"
21
22#include <epan/packet.h>
23#include <epan/uat.h>
24#include <epan/expert.h>
25#include <epan/tfs.h>
26#include <epan/unit_strings.h>
27
28#include "packet-socketcan.h"
29#include "packet-flexray.h"
30#include "packet-lin.h"
31
32void proto_register_asam_cmp(void);
33void proto_reg_handoff_asam_cmp(void);
34
35static int proto_asam_cmp;
36
37static dissector_handle_t eth_handle;
38
39static bool_Bool heuristic_first;
40static bool_Bool old_11bit_canid_encoding;
41
42/* Header fields */
43static int hf_cmp_header;
44static int hf_cmp_version;
45static int hf_cmp_header_res;
46static int hf_cmp_device_id;
47static int hf_cmp_msg_type;
48static int hf_cmp_stream_id;
49static int hf_cmp_stream_seq_ctr;
50
51/* Message Fields */
52/* Message Header Fields */
53static int hf_cmp_msg_header;
54
55static int hf_cmp_common_flag_recal;
56static int hf_cmp_common_flag_relative;
57static int hf_cmp_common_flag_insync;
58static int hf_cmp_common_flag_reserved_0x02;
59static int hf_cmp_common_flag_seg;
60static int hf_cmp_common_flag_dir_on_if;
61static int hf_cmp_common_flag_overflow;
62static int hf_cmp_common_flag_err_in_payload;
63static int hf_cmp_common_flag_reserved;
64static int hf_cmp_common_flag_reserved_0xf0;
65
66static int hf_cmp_msg_timestamp;
67static int hf_cmp_msg_timestamp_ns;
68static int hf_cmp_msg_deadline;
69static int hf_cmp_msg_reserved;
70static int hf_cmp_msg_trans_opts;
71static int hf_cmp_msg_trans_opts_res;
72static int hf_cmp_msg_trans_opts_lin_wup_dura;
73static int hf_cmp_msg_trans_opts_lin_res;
74static int hf_cmp_msg_trans_opts_fr_op;
75static int hf_cmp_msg_trans_opts_fr_cycle_rep;
76static int hf_cmp_msg_trans_opts_fr_res;
77static int hf_cmp_msg_common_flags;
78static int hf_cmp_msg_vendor_id;
79static int hf_cmp_msg_payload_length;
80static int hf_cmp_msg_payload;
81
82/* Additional Data Message Header Fields */
83static int hf_cmp_interface_id;
84static int hf_cmp_payload_type;
85
86/* Additional Control Message Header Fields */
87static int hf_cmp_ctrl_msg_reserved;
88static int hf_cmp_ctrl_msg_payload_type;
89
90/* Additional Status Message Header Fields */
91static int hf_cmp_status_msg_payload_type;
92
93/* Additional Status Message Header Fields */
94static int hf_cmp_vendor_msg_payload_type;
95
96/* Data Message Payload Fields */
97/* CAN */
98#define CMP_CAN_FLAGS_ERRORS0x03ff 0x03ff
99#define CMP_CAN_ID_11BIT_MASK0x1ffc0000 0x1ffc0000
100#define CMP_CAN_ID_11BIT_SHIFT18 18
101#define CMP_CAN_ID_11BIT_MASK_OLD0x000007ff 0x000007ff
102#define CMP_CAN_ID_29BIT_MASK0x1fffffff 0x1fffffff
103#define CMP_CAN_ID_ERR0x20000000 0x20000000
104#define CMP_CAN_ID_RTR0x40000000 0x40000000
105#define CMP_CAN_ID_IDE0x80000000 0x80000000
106
107#define CMP_CAN_CRC_CRC0x00007fff 0x00007fff
108#define CMP_CAN_CRC_RES0x7fff8000 0x7fff8000
109#define CMP_CAN_CRC_CRC_SUPP0x80000000 0x80000000
110
111static int hf_cmp_can_flags;
112
113static int hf_cmp_can_flag_crc_err;
114static int hf_cmp_can_flag_ack_err;
115static int hf_cmp_can_flag_passive_ack_err;
116static int hf_cmp_can_flag_reserved_0004;
117static int hf_cmp_can_flag_active_ack_err;
118static int hf_cmp_can_flag_reserved_0008;
119static int hf_cmp_can_flag_ack_del_err;
120static int hf_cmp_can_flag_form_err;
121static int hf_cmp_can_flag_stuff_err;
122static int hf_cmp_can_flag_crc_del_err;
123static int hf_cmp_can_flag_eof_err;
124static int hf_cmp_can_flag_bit_err;
125static int hf_cmp_can_flag_r0;
126static int hf_cmp_can_flag_srr_dom;
127static int hf_cmp_can_flag_reserved;
128static int hf_cmp_can_flag_reserved_1000;
129static int hf_cmp_can_flag_reserved_2000;
130static int hf_cmp_can_flag_gen_err;
131static int hf_cmp_can_flag_reserved_tx;
132
133static int hf_cmp_can_reserved;
134static int hf_cmp_can_id;
135static int hf_cmp_can_id_11bit;
136static int hf_cmp_can_id_11bit_old;
137static int hf_cmp_can_id_29bit;
138static int hf_cmp_can_id_err;
139static int hf_cmp_can_id_rtr;
140static int hf_cmp_can_id_ide;
141static int hf_cmp_can_crc;
142static int hf_cmp_can_crc_crc;
143static int hf_cmp_can_crc_res;
144static int hf_cmp_can_crc_crc_support;
145static int hf_cmp_can_err_pos;
146static int hf_cmp_can_dlc;
147static int hf_cmp_can_data_len;
148
149/* CAN FD */
150#define CMP_CANFD_FLAGS_ERRORS0x03ff 0x03ff
151#define CMP_CANFD_ID_ERR0x20000000 0x20000000
152#define CMP_CANFD_ID_RRS0x40000000 0x40000000
153#define CMP_CANFD_ID_IDE0x80000000 0x80000000
154
155#define CMP_CANFD_CRC_CRC170x0001ffff 0x0001ffff
156#define CMP_CANFD_CRC_CRC210x001fffff 0x001fffff
157#define CMP_CANFD_CRC_SBC0x00e00000 0x00e00000
158#define CMP_CANFD_CRC_SBC_PARITY0x01000000 0x01000000
159#define CMP_CANFD_CRC_RES0x3e000000 0x3e000000
160#define CMP_CANFD_CRC_SBC_SUPP0x40000000 0x40000000
161#define CMP_CANFD_CRC_CRC_SUPP0x80000000 0x80000000
162
163static int hf_cmp_canfd_flags;
164
165static int hf_cmp_canfd_flag_crc_err;
166static int hf_cmp_canfd_flag_ack_err;
167static int hf_cmp_canfd_flag_passive_ack_err;
168static int hf_cmp_canfd_flag_reserved_0004;
169static int hf_cmp_canfd_flag_active_ack_err;
170static int hf_cmp_canfd_flag_reserved_0008;
171static int hf_cmp_canfd_flag_ack_del_err;
172static int hf_cmp_canfd_flag_form_err;
173static int hf_cmp_canfd_flag_stuff_err;
174static int hf_cmp_canfd_flag_crc_del_err;
175static int hf_cmp_canfd_flag_eof_err;
176static int hf_cmp_canfd_flag_bit_err;
177static int hf_cmp_canfd_flag_res;
178static int hf_cmp_canfd_flag_srr_dom;
179static int hf_cmp_canfd_flag_brs;
180static int hf_cmp_canfd_flag_esi;
181static int hf_cmp_canfd_flag_reserved;
182static int hf_cmp_canfd_flag_gen_err;
183static int hf_cmp_canfd_flag_reserved_tx;
184
185static int hf_cmp_canfd_reserved;
186static int hf_cmp_canfd_id;
187static int hf_cmp_canfd_id_11bit;
188static int hf_cmp_canfd_id_11bit_old;
189static int hf_cmp_canfd_id_29bit;
190static int hf_cmp_canfd_id_err;
191static int hf_cmp_canfd_id_rrs;
192static int hf_cmp_canfd_id_ide;
193static int hf_cmp_canfd_crc;
194static int hf_cmp_canfd_crc_crc17;
195static int hf_cmp_canfd_crc_crc21;
196static int hf_cmp_canfd_crc_sbc;
197static int hf_cmp_canfd_crc_sbc_parity;
198static int hf_cmp_canfd_crc_res;
199static int hf_cmp_canfd_crc_sbc_support;
200static int hf_cmp_canfd_crc_crc_support;
201static int hf_cmp_canfd_err_pos;
202static int hf_cmp_canfd_dlc;
203static int hf_cmp_canfd_data_len;
204
205/* LIN */
206#define CMP_CANFD_PID_PARITY_MASK0xc0 0xc0
207#define CMP_CANFD_PID_ID_MASK0x3f 0x3f
208
209static int hf_cmp_lin_flags;
210static int hf_cmp_lin_flag_checksum_err;
211static int hf_cmp_lin_flag_col_err;
212static int hf_cmp_lin_flag_reserved_0x0002;
213static int hf_cmp_lin_flag_parity_err;
214static int hf_cmp_lin_flag_no_slave_res;
215static int hf_cmp_lin_flag_reserved_0x0008;
216static int hf_cmp_lin_flag_sync_err;
217static int hf_cmp_lin_flag_framing_err;
218static int hf_cmp_lin_flag_short_dom_err;
219static int hf_cmp_lin_flag_long_dom_err;
220static int hf_cmp_lin_flag_wup;
221static int hf_cmp_lin_flag_reserved;
222
223static int hf_cmp_lin_reserved;
224static int hf_cmp_lin_pid;
225static int hf_cmp_lin_pid_parity;
226static int hf_cmp_lin_pid_id;
227static int hf_cmp_lin_reserved_2;
228static int hf_cmp_lin_checksum;
229static int hf_cmp_lin_data_len;
230
231/* FlexRay */
232#define CMP_FLEXRAY_FLAGS_NF0x0004 0x0004
233
234static int hf_cmp_flexray_flags;
235
236static int hf_cmp_flexray_flag_crc_frame_err;
237static int hf_cmp_flexray_flag_crc_header_err;
238static int hf_cmp_flexray_flag_nf;
239static int hf_cmp_flexray_flag_sf;
240static int hf_cmp_flexray_flag_sync;
241static int hf_cmp_flexray_flag_wus;
242static int hf_cmp_flexray_flag_ppi;
243static int hf_cmp_flexray_flag_cas;
244static int hf_cmp_flexray_flag_reserved_0x0100;
245static int hf_cmp_flexray_flag_leading;
246static int hf_cmp_flexray_flag_channel;
247static int hf_cmp_flexray_flag_reserved;
248
249static int hf_cmp_flexray_reserved;
250static int hf_cmp_flexray_header_crc;
251static int hf_cmp_flexray_frame_id;
252static int hf_cmp_flexray_cycle;
253static int hf_cmp_flexray_frame_crc;
254static int hf_cmp_flexray_reserved_2;
255static int hf_cmp_flexray_data_len;
256
257/* Digital */
258#define CMP_DIGITAL_FLAG_TRIGGER_PRESENT0x0001 0x0001
259#define CMP_DIGITAL_FLAG_SAMPLE_PRESENT0x0002 0x0002
260
261static int hf_cmp_digital_flags;
262
263static int hf_cmp_digital_flag_trig_present;
264static int hf_cmp_digital_flag_sampl_present;
265static int hf_cmp_digital_flag_reserved;
266
267static int hf_cmp_digital_reserved;
268static int hf_cmp_digital_pin_count;
269
270static int hf_cmp_digital_trig_pattern;
271static int hf_cmp_digital_trig_pin;
272static int hf_cmp_digital_flag_reserved2;
273
274static int hf_cmp_digital_sample_interval;
275static int hf_cmp_digital_sample_count;
276
277static int hf_cmp_digital_sample;
278
279/* define 32 Pins for now */
280static int hf_cmp_digital_sample_pin_0;
281static int hf_cmp_digital_sample_pin_1;
282static int hf_cmp_digital_sample_pin_2;
283static int hf_cmp_digital_sample_pin_3;
284static int hf_cmp_digital_sample_pin_4;
285static int hf_cmp_digital_sample_pin_5;
286static int hf_cmp_digital_sample_pin_6;
287static int hf_cmp_digital_sample_pin_7;
288
289static int hf_cmp_digital_sample_pin_8;
290static int hf_cmp_digital_sample_pin_9;
291static int hf_cmp_digital_sample_pin_10;
292static int hf_cmp_digital_sample_pin_11;
293static int hf_cmp_digital_sample_pin_12;
294static int hf_cmp_digital_sample_pin_13;
295static int hf_cmp_digital_sample_pin_14;
296static int hf_cmp_digital_sample_pin_15;
297
298static int hf_cmp_digital_sample_pin_16;
299static int hf_cmp_digital_sample_pin_17;
300static int hf_cmp_digital_sample_pin_18;
301static int hf_cmp_digital_sample_pin_19;
302static int hf_cmp_digital_sample_pin_20;
303static int hf_cmp_digital_sample_pin_21;
304static int hf_cmp_digital_sample_pin_22;
305static int hf_cmp_digital_sample_pin_23;
306
307static int hf_cmp_digital_sample_pin_24;
308static int hf_cmp_digital_sample_pin_25;
309static int hf_cmp_digital_sample_pin_26;
310static int hf_cmp_digital_sample_pin_27;
311static int hf_cmp_digital_sample_pin_28;
312static int hf_cmp_digital_sample_pin_29;
313static int hf_cmp_digital_sample_pin_30;
314static int hf_cmp_digital_sample_pin_31;
315
316/* UART/RS-232 */
317#define CMP_UART_DATA_DATA_MASK0x01FF 0x01FF
318
319static int hf_cmp_uart_flags;
320
321static int hf_cmp_uart_flag_cl;
322static int hf_cmp_uart_flag_reserved;
323
324static int hf_cmp_uart_reserved;
325static int hf_cmp_uart_data_len;
326static int hf_cmp_uart_data;
327
328static int hf_cmp_uart_data_data;
329static int hf_cmp_uart_data_reserved;
330static int hf_cmp_uart_data_framing_err;
331static int hf_cmp_uart_data_break_condition;
332static int hf_cmp_uart_data_parity_err;
333
334/* Analog */
335static int hf_cmp_analog_flags;
336
337static int hf_cmp_analog_flag_sample_dt;
338static int hf_cmp_analog_flag_reserved;
339
340static int hf_cmp_analog_reserved;
341static int hf_cmp_analog_unit;
342static int hf_cmp_analog_sample_interval;
343static int hf_cmp_analog_sample_offset;
344static int hf_cmp_analog_sample_scalar;
345static int hf_cmp_analog_sample;
346static int hf_cmp_analog_sample_raw;
347
348/* Ethernet */
349static int hf_cmp_eth_flags;
350
351static int hf_cmp_eth_flag_fcs_err;
352static int hf_cmp_eth_flag_short_err;
353static int hf_cmp_eth_flag_tx_down;
354static int hf_cmp_eth_flag_collision;
355static int hf_cmp_eth_flag_long_err;
356static int hf_cmp_eth_flag_phy_err;
357static int hf_cmp_eth_flag_truncated;
358static int hf_cmp_eth_flag_fcs_supported;
359static int hf_cmp_eth_flag_reserved_cap;
360
361static int hf_cmp_eth_flag_reserved_tx;
362static int hf_cmp_eth_flag_fcs_sending;
363static int hf_cmp_eth_flag_reserved_tx2;
364
365static int hf_cmp_eth_reserved;
366static int hf_cmp_eth_payload_length;
367
368/* SPI */
369static int hf_cmp_spi_flags;
370
371static int hf_cmp_spi_flag_reserved;
372
373static int hf_cmp_spi_reserved;
374static int hf_cmp_spi_cipo_length;
375static int hf_cmp_spi_cipo;
376static int hf_cmp_spi_copi_length;
377static int hf_cmp_spi_copi;
378
379/* I2C */
380static int hf_cmp_i2c_flags;
381static int hf_cmp_i2c_flag_dir;
382static int hf_cmp_i2c_flag_addr_len;
383static int hf_cmp_i2c_flag_addr_ack;
384static int hf_cmp_i2c_flag_addr_err;
385static int hf_cmp_i2c_flag_stop_cond;
386static int hf_cmp_i2c_flag_start_cond;
387static int hf_cmp_i2c_flag_reserved;
388
389static int hf_cmp_i2c_reserved;
390static int hf_cmp_i2c_addr;
391static int hf_cmp_i2c_data_entry_count;
392static int hf_cmp_i2c_data;
393static int hf_cmp_i2c_data_byte;
394static int hf_cmp_i2c_data_control_ack;
395static int hf_cmp_i2c_data_control_res;
396
397/* GigE Vision */
398static int hf_cmp_gige_flags;
399static int hf_cmp_gige_flag_reserved;
400
401static int hf_cmp_gige_reserved;
402static int hf_cmp_gige_payload_length;
403static int hf_cmp_gige_payload;
404
405/* MIPI CSI-2 */
406static int hf_cmp_mipi_csi2_flags;
407static int hf_cmp_mipi_csi2_flag_crc_err;
408static int hf_cmp_mipi_csi2_flag_ecc_err_c;
409static int hf_cmp_mipi_csi2_flag_ecc_err_uc;
410static int hf_cmp_mipi_csi2_flag_ecc_fmt;
411static int hf_cmp_mipi_csi2_flag_frame_ctr_src;
412static int hf_cmp_mipi_csi2_flag_line_ctr_src;
413static int hf_cmp_mipi_csi2_flag_cs_support;
414static int hf_cmp_mipi_csi2_flag_reserved;
415
416static int hf_cmp_mipi_csi2_flag_reserved_tx;
417
418static int hf_cmp_mipi_csi2_reserved;
419static int hf_cmp_mipi_csi2_frame_counter;
420static int hf_cmp_mipi_csi2_line_counter;
421static int hf_cmp_mipi_csi2_dt;
422static int hf_cmp_mipi_csi2_dt_res;
423static int hf_cmp_mipi_csi2_dt_dt;
424static int hf_cmp_mipi_csi2_vci;
425static int hf_cmp_mipi_csi2_vci_res;
426static int hf_cmp_mipi_csi2_vci_vcx;
427static int hf_cmp_mipi_csi2_vci_vci;
428static int hf_cmp_mipi_csi2_reserved2;
429static int hf_cmp_mipi_csi2_ecc;
430static int hf_cmp_mipi_csi2_ecc_res;
431static int hf_cmp_mipi_csi2_ecc_ecc;
432static int hf_cmp_mipi_csi2_cs;
433static int hf_cmp_mipi_csi2_wc;
434static int hf_cmp_mipi_csi2_short_packet_data;
435static int hf_cmp_mipi_csi2_data;
436
437/* Raw Ethernet */
438static int hf_cmp_raw_eth_flags;
439static int hf_cmp_raw_eth_flag_reserved;
440
441static int hf_cmp_raw_eth_reserved;
442static int hf_cmp_raw_eth_payload_length;
443static int hf_cmp_raw_eth_preamble;
444static int hf_cmp_raw_eth_sfd;
445static int hf_cmp_raw_eth_mpacket;
446
447/* 10BASE-T1S Symbols */
448static int hf_cmp_10t1s_symb_flags;
449static int hf_cmp_10t1s_symb_flag_decode_err;
450static int hf_cmp_10t1s_symb_flag_miss_beacon;
451static int hf_cmp_10t1s_symb_flag_res;
452static int hf_cmp_10t1s_symb_flag_first_beacon;
453
454static int hf_cmp_10t1s_symb_data_length;
455static int hf_cmp_10t1s_symb_data;
456static int hf_cmp_10t1s_symb_data_symbol;
457
458/* A2B */
459static int hf_cmp_a2b_flags;
460static int hf_cmp_a2b_flag_fin;
461static int hf_cmp_a2b_flag_fault_err;
462static int hf_cmp_a2b_flag_fault_code;
463static int hf_cmp_a2b_flag_fault_nloc;
464static int hf_cmp_a2b_flag_hdcnt_err;
465static int hf_cmp_a2b_flag_dd_err;
466static int hf_cmp_a2b_flag_crc_err;
467static int hf_cmp_a2b_flag_dp_err;
468static int hf_cmp_a2b_flag_pwd_err;
469static int hf_cmp_a2b_flag_becovf_err;
470static int hf_cmp_a2b_flag_srf_err;
471static int hf_cmp_a2b_flag_srfcrc_err;
472static int hf_cmp_a2b_flag_icrc_err;
473static int hf_cmp_a2b_flag_i2c_err;
474
475static int hf_cmp_a2b_reserved;
476static int hf_cmp_a2b_upstream_set;
477static int hf_cmp_a2b_upstream_set_upfmt;
478static int hf_cmp_a2b_upstream_set_ups;
479static int hf_cmp_a2b_upstream_set_upsize;
480static int hf_cmp_a2b_upstream_set_upslots;
481static int hf_cmp_a2b_upstream_set_upoffset;
482
483static int hf_cmp_a2b_downstream_set;
484static int hf_cmp_a2b_downstream_set_dnfmt;
485static int hf_cmp_a2b_downstream_set_dns;
486static int hf_cmp_a2b_downstream_set_dnsize;
487static int hf_cmp_a2b_downstream_set_dnslots;
488static int hf_cmp_a2b_downstream_set_dnoffset;
489
490static int hf_cmp_a2b_general_set;
491static int hf_cmp_a2b_general_set_mstr;
492static int hf_cmp_a2b_general_set_standby;
493static int hf_cmp_a2b_general_set_endsniff;
494static int hf_cmp_a2b_general_set_discvd;
495static int hf_cmp_a2b_general_set_tx2pintl;
496static int hf_cmp_a2b_general_set_rx2pintl;
497static int hf_cmp_a2b_general_set_tdmmode;
498static int hf_cmp_a2b_general_set_tdmss;
499static int hf_cmp_a2b_general_set_bmmen;
500static int hf_cmp_a2b_general_set_bclkrate;
501static int hf_cmp_a2b_general_set_i2srate;
502static int hf_cmp_a2b_general_set_txoffset;
503static int hf_cmp_a2b_general_set_rxoffset;
504static int hf_cmp_a2b_general_set_syncoffset;
505static int hf_cmp_a2b_general_set_rrdiv;
506static int hf_cmp_a2b_general_set_rrsoffset;
507static int hf_cmp_a2b_general_set_reserved;
508static int hf_cmp_a2b_general_set_raw_cap;
509
510static int hf_cmp_a2b_data_length;
511static int hf_cmp_a2b_data;
512
513/* Link State */
514static int hf_cmp_link_state_flags;
515static int hf_cmp_link_state_flag_link_err;
516static int hf_cmp_link_state_flag_reserved;
517
518static int hf_cmp_link_state_flag_reserved_tx;
519
520static int hf_cmp_link_state_interface_status;
521static int hf_cmp_link_state_reserved;
522
523/* Vendor Defined */
524static int hf_cmp_vendor_def_vendor_id;
525static int hf_cmp_vendor_def_vendor_payload_type;
526static int hf_cmp_vendor_def_vendor_payload_data;
527
528/* Control Message Payload Fields */
529/* Data Sink Ready */
530static int hf_cmp_ctrl_msg_device_id;
531
532/* User Event */
533static int hf_cmp_ctrl_msg_event_id;
534
535/* Vendor specific */
536static int hf_cmp_ctrl_msg_vendor_id;
537static int hf_cmp_ctrl_msg_vendor_payload_type;
538
539/* Status Message Payload Fields */
540/* Capture Module Status Message */
541static int hf_cmp_status_msg_cm_uptime_ns;
542static int hf_cmp_status_msg_cm_uptime_s;
543static int hf_cmp_status_msg_gm_identity;
544static int hf_cmp_status_msg_gm_clock_quality;
545static int hf_cmp_status_msg_current_utc_offset;
546static int hf_cmp_status_msg_time_source;
547static int hf_cmp_status_msg_domain_num;
548static int hf_cmp_status_msg_res;
549static int hf_cmp_gptp_flags;
550
551static int hf_cmp_gptp_flags_leap61;
552static int hf_cmp_gptp_flags_leap59;
553static int hf_cmp_gptp_flags_cur_utco_valid;
554static int hf_cmp_gptp_flags_ptp_timescale;
555static int hf_cmp_gptp_flags_time_traceable;
556static int hf_cmp_gptp_flags_freq_traceable;
557static int hf_cmp_gptp_flags_reserved;
558
559static int hf_cmp_status_dev_desc_length;
560static int hf_cmp_status_dev_desc;
561static int hf_cmp_status_sn_length;
562static int hf_cmp_status_sn;
563static int hf_cmp_status_hw_ver_length;
564static int hf_cmp_status_hw_ver;
565static int hf_cmp_status_sw_ver_length;
566static int hf_cmp_status_sw_ver;
567static int hf_cmp_status_vendor_data_length;
568static int hf_cmp_status_vendor_data;
569
570/* Technica Engineering Vendor Data in CM Status Message */
571static int hf_cmp_status_technica_major;
572static int hf_cmp_status_technica_minor;
573static int hf_cmp_status_technica_product_id;
574static int hf_cmp_status_technica_reserved;
575static int hf_cmp_status_technica_meas_size;
576static int hf_cmp_status_technica_meas;
577static int hf_cmp_status_technica_meas_flags;
578static int hf_cmp_status_technica_meas_flag_ovfl;
579static int hf_cmp_status_technica_meas_flag_res;
580static int hf_cmp_status_technica_fill_level;
581static int hf_cmp_status_technica_buffer_size_mbit;
582static int hf_cmp_status_technica_voltage;
583static int hf_cmp_status_technica_temp_chassis;
584static int hf_cmp_status_technica_temp_silicon;
585static int hf_cmp_status_technica_props_size;
586static int hf_cmp_status_technica_props;
587static int hf_cmp_status_technica_prop;
588static int hf_cmp_status_technica_leg_fill_level;
589static int hf_cmp_status_technica_leg_overflow;
590static int hf_cmp_status_technica_leg_buf_s_gbit;
591static int hf_cmp_status_technica_leg_voltage_int;
592static int hf_cmp_status_technica_leg_voltage_frac;
593static int hf_cmp_status_technica_leg_voltage;
594static int hf_cmp_status_technica_leg_temp_chassis;
595static int hf_cmp_status_technica_leg_temp_silicon;
596
597/* Interface Status Message */
598static int hf_cmp_iface_interface;
599static int hf_cmp_iface_iface_id;
600static int hf_cmp_iface_msg_total_rx;
601static int hf_cmp_iface_msg_total_tx;
602static int hf_cmp_iface_msg_dropped_rx;
603static int hf_cmp_iface_msg_dropped_tx;
604static int hf_cmp_iface_errs_total_rx;
605static int hf_cmp_iface_errs_total_tx;
606static int hf_cmp_iface_iface_type;
607static int hf_cmp_iface_iface_status;
608static int hf_cmp_iface_stream_id_cnt;
609static int hf_cmp_iface_reserved;
610
611static int hf_cmp_iface_feat;
612
613static int hf_cmp_iface_feat_can_crr_err;
614static int hf_cmp_iface_feat_can_ack_err;
615static int hf_cmp_iface_feat_can_pas_ack;
616static int hf_cmp_iface_feat_can_act_ack;
617static int hf_cmp_iface_feat_can_ack_del_err;
618static int hf_cmp_iface_feat_can_form_err;
619static int hf_cmp_iface_feat_can_stuff_err;
620static int hf_cmp_iface_feat_can_crc_del_err;
621static int hf_cmp_iface_feat_can_eof_err;
622static int hf_cmp_iface_feat_can_bit_err;
623static int hf_cmp_iface_feat_can_r0;
624static int hf_cmp_iface_feat_can_srr_dom;
625static int hf_cmp_iface_feat_can_gen_err;
626
627static int hf_cmp_iface_feat_canfd_crr_err;
628static int hf_cmp_iface_feat_canfd_ack_err;
629static int hf_cmp_iface_feat_canfd_pas_ack;
630static int hf_cmp_iface_feat_canfd_act_ack;
631static int hf_cmp_iface_feat_canfd_ack_del_err;
632static int hf_cmp_iface_feat_canfd_form_err;
633static int hf_cmp_iface_feat_canfd_stuff_err;
634static int hf_cmp_iface_feat_canfd_crc_del_err;
635static int hf_cmp_iface_feat_canfd_eof_err;
636static int hf_cmp_iface_feat_canfd_bit_err;
637static int hf_cmp_iface_feat_canfd_rsvd;
638static int hf_cmp_iface_feat_canfd_srr_dom;
639static int hf_cmp_iface_feat_canfd_brs;
640static int hf_cmp_iface_feat_canfd_esi;
641static int hf_cmp_iface_feat_canfd_gen_err;
642
643static int hf_cmp_iface_feat_lin_checksum_err;
644static int hf_cmp_iface_feat_lin_coll_err;
645static int hf_cmp_iface_feat_lin_parity_err;
646static int hf_cmp_iface_feat_lin_no_slave_resp_err;
647static int hf_cmp_iface_feat_lin_sync_err;
648static int hf_cmp_iface_feat_lin_framing_err;
649static int hf_cmp_iface_feat_lin_short_dom_err;
650static int hf_cmp_iface_feat_lin_long_dom_err;
651static int hf_cmp_iface_feat_lin_wup;
652
653static int hf_cmp_iface_feat_fr_crc_frame_err;
654static int hf_cmp_iface_feat_fr_crc_header_err;
655static int hf_cmp_iface_feat_fr_nf;
656static int hf_cmp_iface_feat_fr_sf;
657static int hf_cmp_iface_feat_fr_sync;
658static int hf_cmp_iface_feat_fr_wus;
659static int hf_cmp_iface_feat_fr_ppi;
660static int hf_cmp_iface_feat_fr_cas;
661static int hf_cmp_iface_feat_fr_channel;
662
663static int hf_cmp_iface_feat_eth_fcs_err;
664static int hf_cmp_iface_feat_eth_too_short;
665static int hf_cmp_iface_feat_eth_tx_port_down;
666static int hf_cmp_iface_feat_eth_collision;
667static int hf_cmp_iface_feat_eth_too_long;
668static int hf_cmp_iface_feat_eth_phy_err;
669static int hf_cmp_iface_feat_eth_trunc;
670static int hf_cmp_iface_feat_eth_fcs;
671
672static int hf_cmp_iface_feat_10t1s_first_beacon;
673static int hf_cmp_iface_feat_10t1s_mis_beacon;
674static int hf_cmp_iface_feat_10t1s_sym_decode;
675
676static int hf_cmp_iface_feat_link_err;
677
678static int hf_cmp_iface_stream_ids;
679static int hf_cmp_iface_stream_id;
680static int hf_cmp_iface_vendor_data_len;
681static int hf_cmp_iface_vendor_data;
682
683/* Configuration Status Message */
684static int hf_cmp_status_msg_config;
685
686/* Data Lost Event Status Message */
687static int hf_cmp_dataloss_data_sink_port;
688static int hf_cmp_dataloss_device_id;
689static int hf_cmp_dataloss_reserved;
690static int hf_cmp_dataloss_stream_id;
691static int hf_cmp_dataloss_last_ssq_value;
692static int hf_cmp_dataloss_current_ssq_value;
693
694/* Time Sync Lost Event Status Message */
695static int hf_cmp_timeloss_port_nr;
696static int hf_cmp_timeloss_device_id;
697static int hf_cmp_timeloss_error_flags;
698
699static int hf_cmp_timeloss_error_flags_ts;
700static int hf_cmp_timeloss_error_flags_insync;
701static int hf_cmp_timeloss_error_flags_delta;
702static int hf_cmp_timeloss_error_flags_reserved;
703
704/* Vendor Specific */
705static int hf_cmp_status_msg_vendor_specific;
706
707/* Protocol trees */
708static int ett_asam_cmp;
709static int ett_asam_cmp_header;
710static int ett_asam_cmp_timestamp;
711static int ett_asam_cmp_trans_opts;
712static int ett_asam_cmp_common_flags;
713static int ett_asam_cmp_payload;
714static int ett_asam_cmp_payload_flags;
715static int ett_asam_cmp_payload_data;
716static int ett_asam_cmp_lin_pid;
717static int ett_asam_cmp_can_id;
718static int ett_asam_cmp_can_crc;
719static int ett_asam_cmp_digital_sample;
720static int ett_asam_cmp_uart_data;
721static int ett_asam_cmp_analog_sample;
722static int ett_asam_cmp_i2c_data_entry;
723static int ett_asam_cmp_a2b_upstream_settings;
724static int ett_asam_cmp_a2b_downstream_settings;
725static int ett_asam_cmp_a2b_general_settings;
726static int ett_asam_cmp_status_cm_flags;
727static int ett_asam_cmp_status_cm_uptime;
728static int ett_asam_cmp_status_timeloss_flags;
729static int ett_asam_cmp_status_interface;
730static int ett_asam_cmp_status_feature_support;
731static int ett_asam_cmp_status_stream_ids;
732static int ett_asam_cmp_status_technica;
733static int ett_asam_cmp_status_technica_meas;
734static int ett_asam_cmp_status_technica_flags;
735static int ett_asam_cmp_status_technica_props;
736
737/* General */
738#define CMP_HEADER_LEN8 8
739#define CMP_MSG_HEADER_LEN16 16
740#define CMP_MSG_HEADER_LEN_TX24 24
741
742/* CMP Message Type Names */
743#define CMP_MSG_TYPE_CAP_DATA_MSG0x01 0x01
744#define CMP_MSG_TYPE_CTRL_MSG0x02 0x02
745#define CMP_MSG_TYPE_STATUS_MSG0x03 0x03
746#define CMP_MSG_TYPE_TX_DATA_MSG0x04 0x04
747#define CMP_MSG_TYPE_VENDOR0xFF 0xFF
748
749/* CMP Segmentation Flag Values */
750#define CMP_SEG_UNSEGMENTED0x00 0x00
751#define CMP_SEG_FIRST0x01 0x01
752#define CMP_SEG_INTERMEDIARY0x02 0x02
753#define CMP_SEG_LAST0x03 0x03
754
755/* CMP Data Message Payload Type Names */
756#define CMP_DATA_MSG_INVALID0x00 0x00
757#define CMP_DATA_MSG_CAN0x01 0x01
758#define CMP_DATA_MSG_CANFD0x02 0x02
759#define CMP_DATA_MSG_LIN0x03 0x03
760#define CMP_DATA_MSG_FLEXRAY0x04 0x04
761#define CMP_DATA_MSG_DIGITAL0x05 0x05
762#define CMP_DATA_MSG_UART_RS_2320x06 0x06
763#define CMP_DATA_MSG_ANALOG0x07 0x07
764#define CMP_DATA_MSG_ETHERNET0x08 0x08
765#define CMP_DATA_MSG_SPI0x09 0x09
766#define CMP_DATA_MSG_I2C0x0A 0x0A
767#define CMP_DATA_MSG_GIGEVISION0x0B 0x0B
768#define CMP_DATA_MSG_MIPI_CSI20x0C 0x0C
769#define CMP_DATA_MSG_RAW_ETHERNET0x0D 0x0D
770#define CMP_DATA_MSG_10BASE_T1S_SYMBOL0x0E 0x0E
771#define CMP_DATA_MSG_A2B0x0F 0x0F
772#define CMP_DATA_MSG_LINK_STATE0xFE 0xFE
773#define CMP_DATA_MSG_VENDOR_DATA_MSG0xFF 0xFF
774
775/* CMP Digital Trigger Pattern Values */
776#define CMP_T_PATTERN_FALLING0x00 0x00
777#define CMP_T_PATTERN_RISING0x01 0x01
778
779/* CMP UART Data Message DL Values */
780#define CMP_UART_CL_50x00 0x00
781#define CMP_UART_CL_60x01 0x01
782#define CMP_UART_CL_70x02 0x02
783#define CMP_UART_CL_80x03 0x03
784#define CMP_UART_CL_90x04 0x04
785
786/* CMP Analog Data Message DT Values */
787#define CMP_ANALOG_DATA_MSG_DL_160x00 0x00
788#define CMP_ANALOG_DATA_MSG_DL_320x01 0x01
789#define CMP_ANALOG_DATA_MSG_DL_RES10x02 0x02
790#define CMP_ANALOG_DATA_MSG_DL_RES20x03 0x03
791
792/* CMP Control Message Payload Type Names */
793#define CMP_CTRL_MSG_INVALID0x00 0x00
794#define CMP_CTRL_MSG_DSR_CTRL_MSG0x01 0x01
795#define CMP_CTRL_MSG_USER_EVENT_CTRL_MSG0xFE 0xFE
796#define CMP_CTRL_MSG_VENDOR_CTRL_MSG0xFF 0xFF
797
798/* CMP Status Message Payload Type Names */
799#define CMP_STATUS_MSG_INVALID0x00 0x00
800#define CMP_STATUS_MSG_CM_STAT_MSG0x01 0x01
801#define CMP_STATUS_MSG_IF_STAT_MSG0x02 0x02
802#define CMP_STATUS_MSG_CONF_STAT_MSG0x03 0x03
803#define CMP_STATUS_MSG_DLE_STAT_MSG0x04 0x04
804#define CMP_STATUS_MSG_TSLE_STAT_MSG0x05 0x05
805#define CMP_STATUS_MSG_VENDOR_STAT_MSG0xFF 0xFF
806
807/* Interface Status Message Names */
808#define CMP_STATUS_IFACE_DOWN_EN0x00 0x00
809#define CMP_STATUS_IFACE_UP_EN0x01 0x01
810#define CMP_STATUS_IFACE_DOWN_DIS0x02 0x02
811
812static const value_string msg_type_names[] = {
813 {CMP_MSG_TYPE_CAP_DATA_MSG0x01, "Capture Data Message"},
814 {CMP_MSG_TYPE_CTRL_MSG0x02, "Control Message"},
815 {CMP_MSG_TYPE_STATUS_MSG0x03, "Status Message"},
816 {CMP_MSG_TYPE_TX_DATA_MSG0x04, "Transmit Data Message"},
817 {CMP_MSG_TYPE_VENDOR0xFF, "Vendor-defined Message"},
818 {0, NULL((void*)0)}
819};
820
821static const true_false_string timestamp_rel_abs = {
822 "Relative Mode",
823 "Absolute Mode"
824};
825
826static const value_string seg_flag_names[] = {
827 {CMP_SEG_INTERMEDIARY0x02, "Intermediary segment"},
828 {CMP_SEG_FIRST0x01, "First segment"},
829 {CMP_SEG_LAST0x03, "Last segment"},
830 {CMP_SEG_UNSEGMENTED0x00, "Unsegmented"},
831 {0, NULL((void*)0)}
832};
833
834static const true_false_string interface_direction = {
835 "Sending",
836 "Receive"
837};
838
839static const value_string data_msg_type_names[] = {
840 {CMP_DATA_MSG_INVALID0x00, "Invalid"},
841 {CMP_DATA_MSG_CAN0x01, "CAN"},
842 {CMP_DATA_MSG_CANFD0x02, "CAN FD"},
843 {CMP_DATA_MSG_LIN0x03, "LIN"},
844 {CMP_DATA_MSG_FLEXRAY0x04, "FlexRay"},
845 {CMP_DATA_MSG_DIGITAL0x05, "Digital"},
846 {CMP_DATA_MSG_UART_RS_2320x06, "UART/RS-232"},
847 {CMP_DATA_MSG_ANALOG0x07, "Analog"},
848 {CMP_DATA_MSG_ETHERNET0x08, "Ethernet"},
849 {CMP_DATA_MSG_SPI0x09, "SPI"},
850 {CMP_DATA_MSG_I2C0x0A, "I2C"},
851 {CMP_DATA_MSG_GIGEVISION0x0B, "Gigevision"},
852 {CMP_DATA_MSG_MIPI_CSI20x0C, "MIPI CSI-2"},
853 {CMP_DATA_MSG_RAW_ETHERNET0x0D, "Raw Ethernet"},
854 {CMP_DATA_MSG_10BASE_T1S_SYMBOL0x0E, "10BASE-T1S Symbol"},
855 {CMP_DATA_MSG_A2B0x0F, "A2B"},
856 {CMP_DATA_MSG_LINK_STATE0xFE, "Link State"},
857 {CMP_DATA_MSG_VENDOR_DATA_MSG0xFF, "Vendor-specific"},
858 {0, NULL((void*)0)}
859};
860
861static const true_false_string cmp_err_noerr = {
862 "Error",
863 "No Error"
864};
865
866static const true_false_string can_dom_rec = {
867 "Dominant",
868 "Recessive"
869};
870
871static const true_false_string can_rec_dom = {
872 "Recessive",
873 "Dominant"
874};
875
876static const true_false_string can_id_ide = {
877 "29bit ID",
878 "11bit ID"
879};
880
881static const true_false_string can_id_rtr = {
882 "Remote Frame",
883 "Data Frame"
884};
885
886static const true_false_string canfd_act_pas = {
887 "Error active",
888 "Error passive"
889};
890
891static const true_false_string flexray_leading_following = {
892 "Leading",
893 "Following"
894};
895
896static const true_false_string flexray_channel_b_a = {
897 "B",
898 "A"
899};
900
901static const value_string flexray_transmission_operations[] = {
902 {0x00, "Stop Sending"},
903 {0x01, "Send Once"},
904 {0x02, "Send Cyclically"},
905 {0x08, "Configuration"},
906 {0x09, "Start Node"},
907 {0x0a, "Stop Node"},
908 {0x0b, "Abort Node"},
909 {0x00, NULL((void*)0)}
910};
911
912static const value_string digital_trigger_pattern[] = {
913 {0, "Falling edge"},
914 {1, "Rising edge"},
915 {0, NULL((void*)0)}
916};
917
918static const value_string uart_cl_names[] = {
919 {CMP_UART_CL_50x00, "5 Bits"},
920 {CMP_UART_CL_60x01, "6 Bits"},
921 {CMP_UART_CL_70x02, "7 Bits"},
922 {CMP_UART_CL_80x03, "8 Bits"},
923 {CMP_UART_CL_90x04, "9 Bits"},
924 {0, NULL((void*)0)}
925};
926
927static const value_string analog_sample_dt[] = {
928 {CMP_ANALOG_DATA_MSG_DL_160x00, "A_INT16"},
929 {CMP_ANALOG_DATA_MSG_DL_320x01, "A_INT32"},
930 {CMP_ANALOG_DATA_MSG_DL_RES10x02, "Reserved"},
931 {CMP_ANALOG_DATA_MSG_DL_RES20x03, "Reserved"},
932 {0, NULL((void*)0)}
933};
934
935/* Also see packet-tecmp.c */
936#define CMP_ETH_RAW_PREAMBLE0x55 0x55
937#define CMP_ETH_RAW_SFD_ORIG0xD5 0xD5
938#define CMP_ETH_RAW_SFD_SMD_V0x07 0x07
939#define CMP_ETH_RAW_SFD_SMD_R0x19 0x19
940#define CMP_ETH_RAW_SFD_SMD_S00xE6 0xE6
941#define CMP_ETH_RAW_SFD_SMD_S10x4C 0x4C
942#define CMP_ETH_RAW_SFD_SMD_S20x7F 0x7F
943#define CMP_ETH_RAW_SFD_SMD_S30xB3 0xB3
944#define CMP_ETH_RAW_SFD_SMD_C00x61 0x61
945#define CMP_ETH_RAW_SFD_SMD_C10x52 0x52
946#define CMP_ETH_RAW_SFD_SMD_C20x9E 0x9E
947#define CMP_ETH_RAW_SFD_SMD_C30x2A 0x2A
948
949static const value_string eth_raw_sfd[] = {
950 {CMP_ETH_RAW_SFD_ORIG0xD5, "SFD/SMD-E"},
951 {CMP_ETH_RAW_SFD_SMD_V0x07, "SMD-V"},
952 {CMP_ETH_RAW_SFD_SMD_R0x19, "SMD-R"},
953 {CMP_ETH_RAW_SFD_SMD_S00xE6, "SMD-S0"},
954 {CMP_ETH_RAW_SFD_SMD_S10x4C, "SMD-S1"},
955 {CMP_ETH_RAW_SFD_SMD_S20x7F, "SMD-S2"},
956 {CMP_ETH_RAW_SFD_SMD_S30xB3, "SMD-S3"},
957 {CMP_ETH_RAW_SFD_SMD_C00x61, "SMD-C0"},
958 {CMP_ETH_RAW_SFD_SMD_C10x52, "SMD-C1"},
959 {CMP_ETH_RAW_SFD_SMD_C20x9E, "SMD-C2"},
960 {CMP_ETH_RAW_SFD_SMD_C30x2A, "SMD-C3"},
961 {0, NULL((void*)0)}
962};
963
964static const true_false_string i2c_addr_length = {
965 "10 Bit Address",
966 "7 Bit Address"
967};
968
969static const true_false_string i2c_nack_ack = {
970 "NACK",
971 "ACK"
972};
973
974static const true_false_string i2c_stop_repeated_start = {
975 "Stop",
976 "Repeated-Start"
977};
978
979static const true_false_string i2c_repeated_start_start = {
980 "Repeated-Start",
981 "Start"
982};
983
984static const true_false_string mipi_csi2_ecc_noecc = {
985 "6-bit ECC",
986 "No ECC"
987};
988
989static const true_false_string mipi_csi2_cmcounter_csicounter = {
990 "Counter generated by Capture Module",
991 "Counter extracted from MIPI CSI-2 data"
992};
993
994/*
995 * Based on what is publicly available:
996 * https://elixir.bootlin.com/linux/v5.19.17/source/include/media/mipi-csi2.h
997 * https://www.nxp.com/docs/en/application-note/AN5305.pdf
998 * https://www.efinixinc.com/docs/mipi-csi2-rx-core-ug-v3.2.pdf
999 * https://introspect.ca/blog/mipi-cse-and-csi-2/
1000 * https://www.macnica.co.jp/en/business/semiconductor/articles/lattice/142604/
1001 * https://www.design-reuse.com/article/60991-generating-high-speed-csi2-video-by-an-fpga/
1002 * https://www.ti.com/lit/ds/symlink/ds90ub954-q1.pdf
1003 * https://bitsimnow.se/wp-content/uploads/2021/04/Data_Sheet_bitcsi2rx_rH.pdf
1004 */
1005
1006#define MIPI_CSI2_DT_BITS0x3F 0x3F
1007#define MIPI_CSI2_DT_SHORT_START0x00 0x00
1008#define MIPI_CSI2_DT_SHORT_END0x0F 0x0F
1009
1010static const value_string mipi_csi2_data_type_names[] = {
1011 /* 0x00 - 0x07 Sync Short Packets */
1012 {MIPI_CSI2_DT_SHORT_START0x00, "Frame Start Code"},
1013 {0x01, "Frame End Code"},
1014 {0x02, "Line Start Code"},
1015 {0x03, "Line End Code"},
1016 /* 0x08 - 0x0F Generic Short Packets */
1017 /* 0x10 - 0x17 Generic Long Packets */
1018 {0x10, "Null"},
1019 {0x11, "Blanking Data"},
1020 {0x12, "Embedded 8-bit non-Image Data"},
1021 /* 0x18 - 0x1F YUV Data Long Packets */
1022 {0x18, "YUV420 8-bit"},
1023 {0x19, "YUV420 10-bit"},
1024 {0x1A, "Legacy YUV420 8-bit"},
1025 {0x1C, "YUV420 8-bit (CSPS)"},
1026 {0x1D, "YUV420 10-bit (CSPS)"},
1027 {0x1E, "YUV422 8-bit"},
1028 {0x1F, "YUV422 10-bit"},
1029 /* 0x20 - 0x27 RGB Data Long Packets */
1030 {0x20, "RGB444"},
1031 {0x21, "RGB555"},
1032 {0x22, "RGB565"},
1033 {0x23, "RGB666"},
1034 {0x24, "RGB888"},
1035 /* 0x28 - 0x2F RAW Data Long Packets */
1036 {0x26, "RAW24"},
1037 {0x27, "RAW28"},
1038 {0x28, "RAW6"},
1039 {0x29, "RAW7"},
1040 {0x2A, "RAW8"},
1041 {0x2B, "RAW10"},
1042 {0x2C, "RAW12"},
1043 {0x2D, "RAW14"},
1044 {0x2E, "RAW16"},
1045 {0x2F, "RAW20"},
1046 /* 0x30 - 0x37 User Defined Long Packets */
1047 {0x30, "User Defined 8-bit Data Type 1"},
1048 {0x31, "User Defined 8-bit Data Type 2"},
1049 {0x32, "User Defined 8-bit Data Type 3"},
1050 {0x33, "User Defined 8-bit Data Type 4"},
1051 {0x34, "User Defined 8-bit Data Type 5"},
1052 {0x35, "User Defined 8-bit Data Type 6"},
1053 {0x36, "User Defined 8-bit Data Type 7"},
1054 {0x37, "User Defined 8-bit Data Type 8"},
1055 /* 0x38 - 0x3F Reserved */
1056 {0x3E, "SEP (MIPI CSE)"},
1057 {0, NULL((void*)0)}
1058};
1059
1060static const true_false_string eth_10baset1s_firstbeacon_notfirstbeacon = {
1061 "First Beacon",
1062 "Not First Beacon"
1063};
1064
1065/* IEEE 802.3-2022 Table 147-1: 4B/5B Encoding */
1066static const value_string eth_10baset1s_symbol_names[] = {
1067 {0x1F, "SILENCE"}, /* I: 11111 */
1068 {0x18, "SYNC / COMMIT"}, /* J: 11000 */
1069 {0x11, "ESDERR"}, /* K: 10001 */
1070 {0x0D, "ESD / HB"}, /* T: 01101 */
1071 {0x07, "ESDOK / ESDBRS"}, /* R: 00111 */
1072 {0x04, "SSD"}, /* H: 00100 */
1073 {0x08, "BEACON"}, /* N: 01000 */
1074 {0x19, "ESDJAB"}, /* I: 11001 */
1075 {0, NULL((void*)0)}
1076};
1077
1078static const true_false_string a2b_switch_closed_open = {
1079 "Switch completed closing",
1080 "Switch is open or has not finished closing"
1081};
1082
1083static const true_false_string a2b_cable_fault_no_fault = {
1084 "Cable fault detected",
1085 "Cable fault not detected"
1086};
1087
1088static const value_string a2b_fault_code_names[] = {
1089 {0x0, "No fault detected"},
1090 {0x1, "Cable terminal shorted to GND"},
1091 {0x2, "Cable terminal shorted to VBAT"},
1092 {0x3, "Cable terminals shorted together"},
1093 {0x4, "Cable disconnected or open circuit"},
1094 {0x5, "Cable is reverse connected"},
1095 {0x6, "Reserved"},
1096 {0x7, "Undetermined fault"},
1097 {0, NULL((void*)0)}
1098};
1099
1100static const true_false_string a2b_cable_fault_not_localized_localized = {
1101 "Cable fault not localized",
1102 "Cable fault localized"
1103};
1104
1105static const true_false_string a2b_data_decode_error_no_error = {
1106 "Data decoding error detected",
1107 "No data decoding error"
1108};
1109
1110static const true_false_string a2b_crc_error_no_error = {
1111 "CRC error detected",
1112 "No CRC error"
1113};
1114
1115static const true_false_string a2b_data_parity_error_no_error = {
1116 "Data parity error detected",
1117 "No data parity error"
1118};
1119
1120static const true_false_string a2b_downstream_power_switch_error_no_error = {
1121 "Downstream power switch error",
1122 "No power error"
1123};
1124
1125static const true_false_string a2b_bit_error_count_error_no_error = {
1126 "BEC error pending",
1127 "No BEC error pending"
1128};
1129
1130static const true_false_string a2b_srf_miss_error_no_error = {
1131 "SRF miss error detected",
1132 "No SRF miss error"
1133};
1134
1135static const true_false_string a2b_srf_crc_error_no_error = {
1136 "SRF CRC error detected",
1137 "No SRF CRC error"
1138};
1139
1140static const true_false_string a2b_iocrc_error_no_error = {
1141 "Interrupt Frame CRC error detected",
1142 "No error"
1143};
1144
1145static const true_false_string a2b_i2c_transaction_error_no_error = {
1146 "An I2C access error occurred",
1147 "No error"
1148};
1149
1150static const true_false_string a2b_fmt_alternate_normal = {
1151 "Alternate data slot format",
1152 "Normal data slot format"
1153};
1154
1155static const value_string a2b_slot_sizes[] = {
1156 {0x00, "8 bits"},
1157 {0x01, "12 bits"},
1158 {0x02, "16 bits"},
1159 {0x03, "20 bits"},
1160 {0x04, "24 bits"},
1161 {0x05, "28 bits"},
1162 {0x06, "32 bits"},
1163 {0x07, "Reserved"},
1164 {0, NULL((void*)0)}
1165};
1166
1167static const val64_string a2b_tdmmode_values[] = {
1168 {0x00, "TDM2"},
1169 {0x01, "TDM4"},
1170 {0x02, "TDM8"},
1171 {0x03, "TDM12"},
1172 {0x04, "TDM16"},
1173 {0x05, "TDM20"},
1174 {0x06, "TDM24"},
1175 {0x07, "TDM32"},
1176 {0, NULL((void*)0)}
1177};
1178
1179static const true_false_string a2b_tdmss_16_32 = {
1180 "32bit",
1181 "16bit"
1182};
1183
1184static const val64_string a2b_blckrate_values[] = {
1185 {0x00, "BCLK frequency as configured in A2B_I2SGCFG"},
1186 {0x01, "SYNC frequency x 2048"},
1187 {0x02, "SYNC frequency x 4096"},
1188 {0x04, "SFF frequency x 64"},
1189 {0x05, "SFF frequency x 128"},
1190 {0x06, "SFF frequency x 256"},
1191 {0, NULL((void*)0)}
1192};
1193
1194static const val64_string a2b_i2srate_values[] = {
1195 {0x00, "SFF x 1"},
1196 {0x01, "SFF / 2"},
1197 {0x02, "SFF / 4"},
1198 {0x03, "SFF / A2B_I2SRRATE.RRDIV"},
1199 {0x05, "SFF x 2"},
1200 {0x06, "SFF x 4"},
1201 {0, NULL((void*)0)}
1202};
1203
1204static const val64_string a2b_rrdiv_values[] = {
1205 {1, "Superframe frequency (SFF)"},
1206 {2, "SFF / 2"},
1207 {4, "SFF / 4"},
1208 {8, "SFF / 8"},
1209 {12, "SFF / 12"},
1210 {16, "SFF / 16"},
1211 {20, "SFF / 20"},
1212 {24, "SFF / 24"},
1213 {28, "SFF / 28"},
1214 {32, "SFF / 32"},
1215 {0, NULL((void*)0)}
1216};
1217
1218static const val64_string a2b_rrsoffset_values[] = {
1219 {0, "No Offset"},
1220 {1, "1 Superframe Earlier"},
1221 {2, "2 Superframes Earlier"},
1222 {3, "3 Superframes Earlier"},
1223 {0, NULL((void*)0)}
1224};
1225
1226static const true_false_string a2b_raw_capturing = {
1227 "Raw A2B Busline was captured",
1228 "I²S/TDM representation was captured"
1229};
1230
1231static const value_string link_state_names[] = {
1232 {0x00, "Down"},
1233 {0x01, "Up"},
1234 {0x02, "Disabled"},
1235 {0x03, "Testing"},
1236 {0x04, "Unknown"},
1237 {0x05, "Dormant"},
1238 {0x06, "NotPresent"},
1239 {0, NULL((void*)0)}
1240};
1241
1242static const value_string ctrl_msg_type_names[] = {
1243 {CMP_CTRL_MSG_INVALID0x00, "Invalid"},
1244 {CMP_CTRL_MSG_DSR_CTRL_MSG0x01, "Data Sink ready to receive Control Message"},
1245 {CMP_CTRL_MSG_USER_EVENT_CTRL_MSG0xFE, "User Event Message"},
1246 {CMP_CTRL_MSG_VENDOR_CTRL_MSG0xFF, "Vendor-specific Control Message"},
1247 {0, NULL((void*)0)}
1248};
1249
1250static const value_string status_msg_type_names[] = {
1251 {CMP_STATUS_MSG_INVALID0x00, "Invalid"},
1252 {CMP_STATUS_MSG_CM_STAT_MSG0x01, "Capture Module Status"},
1253 {CMP_STATUS_MSG_IF_STAT_MSG0x02, "Interface Status"},
1254 {CMP_STATUS_MSG_CONF_STAT_MSG0x03, "Configuration Status"},
1255 {CMP_STATUS_MSG_DLE_STAT_MSG0x04, "Data Lost Status"},
1256 {CMP_STATUS_MSG_TSLE_STAT_MSG0x05, "Time Sync Lost Status"},
1257 {CMP_STATUS_MSG_VENDOR_STAT_MSG0xFF, "Vendor-specific Status Message"},
1258 {0, NULL((void*)0)}
1259};
1260
1261static const value_string interface_status_names[] = {
1262 {CMP_STATUS_IFACE_DOWN_EN0x00, "Down and enabled"},
1263 {CMP_STATUS_IFACE_UP_EN0x01, "Up and enabled"},
1264 {CMP_STATUS_IFACE_DOWN_DIS0x02, "Down and disabled"},
1265 {0, NULL((void*)0)}
1266};
1267
1268/* As defined by the ASAM Vendor ID registry for POD and CMP */
1269#define CMP_VENDOR_ID_AVL_LIST0x0006 0x0006
1270#define CMP_VENDOR_DSPACE0x000b 0x000b
1271#define CMP_VENDOR_ETAS0x000c 0x000c
1272#define CMP_VENDOR_BOSCH0x0027 0x0027
1273#define CMP_VENDOR_VECTOR0x002d 0x002d
1274#define CMP_VENDOR_CONTINENTAL0x003c 0x003c
1275#define CMP_VENDOR_MK0x003e 0x003e
1276#define CMP_VENDOR_ID_ACCURATE0x004a 0x004a
1277#define CMP_VENDOR_RA0x006c 0x006c
1278#define CMP_VENDOR_X2E0x00ca 0x00ca
1279#define CMP_VENDOR_INTREPIDCS0x00f0 0x00f0
1280#define CMP_VENDOR_ID_BPLUS0x010f 0x010f
1281#define CMP_VENDOR_VIGEM0x012a 0x012a
1282#define CMP_VENDOR_TECHNICA0x019c 0x019c
1283#define CMP_VENDOR_ID_AED_ENG0x0241 0x0241
1284
1285/* As defined by the ASAM Vendor ID registry for POD and CMP */
1286static const value_string vendor_ids[] = {
1287 {CMP_VENDOR_ID_ACCURATE0x004a, "Accurate Technologies Inc."},
1288 {CMP_VENDOR_ID_AED_ENG0x0241, "AED Engineering GmbH"},
1289 {CMP_VENDOR_ID_AVL_LIST0x0006, "AVL List GmbH"},
1290 {CMP_VENDOR_ID_BPLUS0x010f, "b-plus GmbH"},
1291 {CMP_VENDOR_CONTINENTAL0x003c, "Continental AG"},
1292 {CMP_VENDOR_DSPACE0x000b, "dSPACE GmbH"},
1293 {CMP_VENDOR_ETAS0x000c, "ETAS GmbH"},
1294 {CMP_VENDOR_INTREPIDCS0x00f0, "Intrepid Control Systems, Inc."},
1295 {CMP_VENDOR_MK0x003e, "M&K Meß- und Kommunikationstechnik GmbH"},
1296 {CMP_VENDOR_RA0x006c, "RA Consulting GmbH"},
1297 {CMP_VENDOR_BOSCH0x0027, "Robert Bosch GmbH"},
1298 {CMP_VENDOR_TECHNICA0x019c, "Technica Engineering GmbH"},
1299 {CMP_VENDOR_VECTOR0x002d, "Vector Informatik GmbH"},
1300 {CMP_VENDOR_VIGEM0x012a, "ViGEM GmbH"},
1301 {CMP_VENDOR_X2E0x00ca, "X2E GmbH"},
1302 {0, NULL((void*)0)}
1303};
1304
1305static const value_string analog_units[] = {
1306 {0x01, "s"},
1307 {0x02, "m"},
1308 {0x03, "kg"},
1309 {0x04, "A"},
1310 {0x05, "K"},
1311 {0x06, "mol"},
1312 {0x07, "cd"},
1313 {0x08, "Hz"},
1314 {0x09, "rad"},
1315 {0x0a, "sr"},
1316 {0x0b, "N"},
1317 {0x0c, "Pa"},
1318 {0x0d, "J"},
1319 {0x0e, "W"},
1320 {0x0f, "C"},
1321 {0x10, "V"},
1322 {0x11, "F"},
1323 {0x12, "Ω"},
1324 {0x13, "S"},
1325 {0x14, "Wb"},
1326 {0x15, "T"},
1327 {0x16, "H"},
1328 {0x17, "°C"},
1329 {0x18, "lm"},
1330 {0x19, "lx"},
1331 {0x1A, "Bq"},
1332 {0x1B, "Gy"},
1333 {0x1C, "Sv"},
1334 {0x1D, "kat"},
1335 {0x1E, "m/s"},
1336 {0x1F, "m/s2"},
1337 {0x20, "m/s3"},
1338 {0x21, "m/s4"},
1339 {0x22, "rad/s"},
1340 {0x23, "rad/s2"},
1341 {0x24, "Hz/s"},
1342 {0x25, "m3/s"},
1343 {0x26, "m2"},
1344 {0x27, "m3"},
1345 {0x28, "N s"},
1346 {0x29, "N m s"},
1347 {0x2A, "N m"},
1348 {0x2B, "kg/m2"},
1349 {0x2C, "kg/m3"},
1350 {0x2D, "m3/kg"},
1351 {0x2E, "J s"},
1352 {0x2F, "J/kg"},
1353 {0x30, "J/m3"},
1354 {0x31, "N/m"},
1355 {0x32, "W/m2"},
1356 {0x33, "m2/s"},
1357 {0x34, "Pa s"},
1358 {0x35, "kg/s"},
1359 {0x36, "W/(sr m2)"},
1360 {0x37, "Gy/s"},
1361 {0x38, "m/m3"},
1362 {0x39, "W/m3"},
1363 {0x3A, "J/(m2 s)"},
1364 {0x3B, "kg m2"},
1365 {0x3C, "W/sr"},
1366 {0x3D, "mol/m3"},
1367 {0x3E, "m3/mol"},
1368 {0x3F, "J/(mol K)"},
1369 {0x40, "J/mol"},
1370 {0x41, "mol/kg"},
1371 {0x42, "kg/mol"},
1372 {0x45, "C/m3"},
1373 {0x46, "A/m2"},
1374 {0x47, "S/m"},
1375 {0x48, "F/m"},
1376 {0x49, "H/m"},
1377 {0x4A, "V/m"},
1378 {0x4B, "A/m"},
1379 {0x4C, "C/Kg"},
1380 {0x4D, "J/T"},
1381 {0x4E, "lm s"},
1382 {0x4F, "lx s"},
1383 {0x50, "cd/m2"},
1384 {0x51, "lm/W"},
1385 {0x52, "J/K"},
1386 {0x53, "J/(K kg)"},
1387 {0x54, "W/(m K)"},
1388 {0, NULL((void*)0)}
1389};
1390
1391/********* UATs *********/
1392
1393typedef struct _generic_one_id_string {
1394 unsigned id;
1395 char *name;
1396} generic_one_id_string_t;
1397
1398/* Interface UAT */
1399typedef struct _interface_config {
1400 unsigned id;
1401 unsigned bus_id;
1402 char *name;
1403} interface_config_t;
1404
1405/* Devices */
1406#define DATAFILE_ASAM_CMP_DEVICES_IDS"ASAM_CMP_devices" "ASAM_CMP_devices"
1407
1408static GHashTable *data_asam_cmp_devices;
1409static generic_one_id_string_t *asam_cmp_devices;
1410static unsigned asam_cmp_devices_num;
1411
1412UAT_HEX_CB_DEF(asam_cmp_devices, id, generic_one_id_string_t)static void asam_cmp_devices_id_set_cb(void* rec, const char*
buf, unsigned len, const void* u1 __attribute__((unused)), const
void* u2 __attribute__((unused))) { char* tmp_str = g_strndup
(buf,len); ws_hexstrtou32(tmp_str, ((void*)0), &((generic_one_id_string_t
*)rec)->id); (__builtin_object_size ((tmp_str), 0) != ((size_t
) - 1)) ? g_free_sized (tmp_str, __builtin_object_size ((tmp_str
), 0)) : (g_free) (tmp_str); } static void asam_cmp_devices_id_tostr_cb
(void* rec, char** out_ptr, unsigned* out_len, const void* u1
__attribute__((unused)), const void* u2 __attribute__((unused
))) { *out_ptr = wmem_strdup_printf(((void*)0), "%x",((generic_one_id_string_t
*)rec)->id); *out_len = (unsigned)strlen(*out_ptr); }
1413UAT_CSTRING_CB_DEF(asam_cmp_devices, name, generic_one_id_string_t)static void asam_cmp_devices_name_set_cb(void* rec, const char
* buf, unsigned len, const void* u1 __attribute__((unused)), const
void* u2 __attribute__((unused))) { char* new_buf = g_strndup
(buf,len); (__builtin_object_size (((((generic_one_id_string_t
*)rec)->name)), 0) != ((size_t) - 1)) ? g_free_sized ((((generic_one_id_string_t
*)rec)->name), __builtin_object_size (((((generic_one_id_string_t
*)rec)->name)), 0)) : (g_free) ((((generic_one_id_string_t
*)rec)->name)); (((generic_one_id_string_t*)rec)->name)
= new_buf; } static void asam_cmp_devices_name_tostr_cb(void
* rec, char** out_ptr, unsigned* out_len, const void* u1 __attribute__
((unused)), const void* u2 __attribute__((unused))) { if (((generic_one_id_string_t
*)rec)->name ) { *out_ptr = g_strdup_inline ((((generic_one_id_string_t
*)rec)->name)); *out_len = (unsigned)strlen((((generic_one_id_string_t
*)rec)->name)); } else { *out_ptr = g_strdup_inline (""); *
out_len = 0; } }
1414
1415/* Interfaces */
1416#define DATAFILE_ASAM_CMP_IFACE_IDS"ASAM_CMP_interfaces" "ASAM_CMP_interfaces"
1417
1418static GHashTable *data_asam_cmp_interfaces;
1419static interface_config_t *asam_cmp_interfaces;
1420static unsigned asam_cmp_interface_num;
1421
1422UAT_HEX_CB_DEF(asam_cmp_interfaces, id, interface_config_t)static void asam_cmp_interfaces_id_set_cb(void* rec, const char
* buf, unsigned len, const void* u1 __attribute__((unused)), const
void* u2 __attribute__((unused))) { char* tmp_str = g_strndup
(buf,len); ws_hexstrtou32(tmp_str, ((void*)0), &((interface_config_t
*)rec)->id); (__builtin_object_size ((tmp_str), 0) != ((size_t
) - 1)) ? g_free_sized (tmp_str, __builtin_object_size ((tmp_str
), 0)) : (g_free) (tmp_str); } static void asam_cmp_interfaces_id_tostr_cb
(void* rec, char** out_ptr, unsigned* out_len, const void* u1
__attribute__((unused)), const void* u2 __attribute__((unused
))) { *out_ptr = wmem_strdup_printf(((void*)0), "%x",((interface_config_t
*)rec)->id); *out_len = (unsigned)strlen(*out_ptr); }
1423UAT_CSTRING_CB_DEF(asam_cmp_interfaces, name, interface_config_t)static void asam_cmp_interfaces_name_set_cb(void* rec, const char
* buf, unsigned len, const void* u1 __attribute__((unused)), const
void* u2 __attribute__((unused))) { char* new_buf = g_strndup
(buf,len); (__builtin_object_size (((((interface_config_t*)rec
)->name)), 0) != ((size_t) - 1)) ? g_free_sized ((((interface_config_t
*)rec)->name), __builtin_object_size (((((interface_config_t
*)rec)->name)), 0)) : (g_free) ((((interface_config_t*)rec
)->name)); (((interface_config_t*)rec)->name) = new_buf
; } static void asam_cmp_interfaces_name_tostr_cb(void* rec, char
** out_ptr, unsigned* out_len, const void* u1 __attribute__((
unused)), const void* u2 __attribute__((unused))) { if (((interface_config_t
*)rec)->name ) { *out_ptr = g_strdup_inline ((((interface_config_t
*)rec)->name)); *out_len = (unsigned)strlen((((interface_config_t
*)rec)->name)); } else { *out_ptr = g_strdup_inline (""); *
out_len = 0; } }
1424UAT_HEX_CB_DEF(asam_cmp_interfaces, bus_id, interface_config_t)static void asam_cmp_interfaces_bus_id_set_cb(void* rec, const
char* buf, unsigned len, const void* u1 __attribute__((unused
)), const void* u2 __attribute__((unused))) { char* tmp_str =
g_strndup(buf,len); ws_hexstrtou32(tmp_str, ((void*)0), &
((interface_config_t*)rec)->bus_id); (__builtin_object_size
((tmp_str), 0) != ((size_t) - 1)) ? g_free_sized (tmp_str, __builtin_object_size
((tmp_str), 0)) : (g_free) (tmp_str); } static void asam_cmp_interfaces_bus_id_tostr_cb
(void* rec, char** out_ptr, unsigned* out_len, const void* u1
__attribute__((unused)), const void* u2 __attribute__((unused
))) { *out_ptr = wmem_strdup_printf(((void*)0), "%x",((interface_config_t
*)rec)->bus_id); *out_len = (unsigned)strlen(*out_ptr); }
1425
1426/*** expert info items ***/
1427static expert_field ei_asam_cmp_length_mismatch;
1428static expert_field ei_asam_cmp_unsupported_crc_not_zero;
1429static expert_field ei_asam_cmp_too_deep;
1430
1431/* ID -> Name */
1432static void *
1433copy_generic_one_id_string_cb(void *n, const void *o, size_t size _U___attribute__((unused))) {
1434 generic_one_id_string_t *new_rec = (generic_one_id_string_t *)n;
1435 const generic_one_id_string_t *old_rec = (const generic_one_id_string_t *)o;
1436
1437 new_rec->name = g_strdup(old_rec->name)g_strdup_inline (old_rec->name);
1438 new_rec->id = old_rec->id;
1439 return new_rec;
1440}
1441
1442static bool_Bool
1443update_generic_one_identifier_16bit(void *r, char **err) {
1444 generic_one_id_string_t *rec = (generic_one_id_string_t *)r;
1445
1446 if (rec->id > 0xffff) {
1447 *err = ws_strdup_printf("We currently only support 16 bit identifiers (ID: %i Name: %s)", rec->id, rec->name)wmem_strdup_printf(((void*)0), "We currently only support 16 bit identifiers (ID: %i Name: %s)"
, rec->id, rec->name)
;
1448 return false0;
1449 }
1450
1451 if (rec->name == NULL((void*)0) || rec->name[0] == 0) {
1452 *err = g_strdup("Name cannot be empty")g_strdup_inline ("Name cannot be empty");
1453 return false0;
1454 }
1455
1456 return true1;
1457}
1458
1459static void
1460free_generic_one_id_string_cb(void *r) {
1461 generic_one_id_string_t *rec = (generic_one_id_string_t *)r;
1462 /* freeing result of g_strdup */
1463 g_free(rec->name)(__builtin_object_size ((rec->name), 0) != ((size_t) - 1))
? g_free_sized (rec->name, __builtin_object_size ((rec->
name), 0)) : (g_free) (rec->name)
;
1464 rec->name = NULL((void*)0);
1465}
1466
1467static char *
1468ht_lookup_device_name(uint16_t device_id) {
1469 if (data_asam_cmp_devices == NULL((void*)0)) {
1470 return NULL((void*)0);
1471 }
1472
1473 return g_hash_table_lookup(data_asam_cmp_devices, GUINT_TO_POINTER(device_id)((gpointer) (gulong) (device_id)));
1474}
1475
1476/* ID -> ID, Name */
1477static void *
1478copy_interface_config_cb(void *n, const void *o, size_t size _U___attribute__((unused))) {
1479 interface_config_t *new_rec = (interface_config_t *)n;
1480 const interface_config_t *old_rec = (const interface_config_t *)o;
1481
1482 new_rec->id = old_rec->id;
1483 new_rec->name = g_strdup(old_rec->name)g_strdup_inline (old_rec->name);
1484 new_rec->bus_id = old_rec->bus_id;
1485 return new_rec;
1486}
1487
1488static bool_Bool
1489update_interface_config(void *r, char **err) {
1490 interface_config_t *rec = (interface_config_t *)r;
1491
1492 if (rec->id > 0xffffffff) {
1493 *err = ws_strdup_printf("We currently only support 32 bit identifiers (ID: %i Name: %s)", rec->id, rec->name)wmem_strdup_printf(((void*)0), "We currently only support 32 bit identifiers (ID: %i Name: %s)"
, rec->id, rec->name)
;
1494 return false0;
1495 }
1496
1497 if (rec->name == NULL((void*)0) || rec->name[0] == 0) {
1498 *err = g_strdup("Name cannot be empty")g_strdup_inline ("Name cannot be empty");
1499 return false0;
1500 }
1501
1502 if (rec->bus_id > 0xffff) {
1503 *err = ws_strdup_printf("We currently only support 16 bit bus identifiers (ID: %i Name: %s Bus-ID: %i)", rec->id, rec->name, rec->bus_id)wmem_strdup_printf(((void*)0), "We currently only support 16 bit bus identifiers (ID: %i Name: %s Bus-ID: %i)"
, rec->id, rec->name, rec->bus_id)
;
1504 return false0;
1505 }
1506
1507 return true1;
1508}
1509
1510static void
1511free_interface_config_cb(void *r) {
1512 interface_config_t *rec = (interface_config_t *)r;
1513 /* freeing result of g_strdup */
1514 g_free(rec->name)(__builtin_object_size ((rec->name), 0) != ((size_t) - 1))
? g_free_sized (rec->name, __builtin_object_size ((rec->
name), 0)) : (g_free) (rec->name)
;
1515 rec->name = NULL((void*)0);
1516}
1517
1518static interface_config_t *
1519ht_lookup_interface(unsigned int identifier) {
1520 if (data_asam_cmp_interfaces == NULL((void*)0)) {
1521 return NULL((void*)0);
1522 }
1523
1524 return g_hash_table_lookup(data_asam_cmp_interfaces, GUINT_TO_POINTER(identifier)((gpointer) (gulong) (identifier)));
1525}
1526
1527
1528static char *
1529ht_interface_config_to_string(unsigned int identifier) {
1530 interface_config_t *tmp = ht_lookup_interface(identifier);
1531 if (tmp == NULL((void*)0)) {
1532 return NULL((void*)0);
1533 }
1534
1535 return tmp->name;
1536}
1537
1538static uint16_t
1539ht_interface_config_to_bus_id(unsigned int identifier) {
1540 interface_config_t *tmp = ht_lookup_interface(identifier);
1541 if (tmp == NULL((void*)0)) {
1542 /* 0 means basically any or none */
1543 return 0;
1544 }
1545
1546 return (uint16_t)tmp->bus_id;
1547}
1548
1549static void
1550reset_asam_cmp_devices_cb(void) {
1551 /* destroy old hash table, if it exists */
1552 if (data_asam_cmp_devices) {
1553 g_hash_table_destroy(data_asam_cmp_devices);
1554 data_asam_cmp_devices = NULL((void*)0);
1555 }
1556}
1557
1558static void
1559post_update_asam_cmp_devices_cb(void) {
1560 /* destroy old hash table, if it exists */
1561 reset_asam_cmp_devices_cb();
1562
1563 /* create new hash table */
1564 data_asam_cmp_devices = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL((void*)0), NULL((void*)0));
1565
1566 for (unsigned i = 0; i < asam_cmp_devices_num; i++) {
1567 g_hash_table_insert(data_asam_cmp_devices, GUINT_TO_POINTER(asam_cmp_devices[i].id)((gpointer) (gulong) (asam_cmp_devices[i].id)), asam_cmp_devices[i].name);
1568 }
1569}
1570
1571static void
1572reset_interface_config_cb(void) {
1573 /* destroy old hash table, if it exists */
1574 if (data_asam_cmp_interfaces) {
1575 g_hash_table_destroy(data_asam_cmp_interfaces);
1576 data_asam_cmp_interfaces = NULL((void*)0);
1577 }
1578}
1579
1580static void
1581post_update_interface_config_cb(void) {
1582 /* destroy old hash table, if it exists */
1583 reset_interface_config_cb();
1584
1585 /* create new hash table */
1586 data_asam_cmp_interfaces = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL((void*)0), NULL((void*)0));
1587
1588 for (unsigned i = 0; i < asam_cmp_interface_num; i++) {
1589 g_hash_table_insert(data_asam_cmp_interfaces, GUINT_TO_POINTER(asam_cmp_interfaces[i].id)((gpointer) (gulong) (asam_cmp_interfaces[i].id)), &asam_cmp_interfaces[i]);
1590 }
1591}
1592
1593static void
1594add_device_id_text(proto_item *ti, uint16_t device_id) {
1595 const char *descr = ht_lookup_device_name(device_id);
1596
1597 if (descr != NULL((void*)0)) {
1598 proto_item_append_text(ti, " (%s)", descr);
1599 }
1600}
1601
1602static void
1603add_interface_id_text(proto_item *ti, uint32_t interface_id) {
1604 const char *descr = ht_interface_config_to_string(interface_id);
1605
1606 if (descr != NULL((void*)0)) {
1607 proto_item_append_text(ti, " (%s)", descr);
1608 }
1609}
1610
1611static uint32_t
1612dissect_asam_cmp_data_msg_can(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, unsigned interface_id, bool_Bool tx) {
1613 uint32_t offset = 0;
1614
1615 static int * const asam_cmp_can_flags_cap[] = {
1616 &hf_cmp_can_flag_reserved,
1617 &hf_cmp_can_flag_srr_dom,
1618 &hf_cmp_can_flag_r0,
1619 &hf_cmp_can_flag_bit_err,
1620 &hf_cmp_can_flag_eof_err,
1621 &hf_cmp_can_flag_crc_del_err,
1622 &hf_cmp_can_flag_stuff_err,
1623 &hf_cmp_can_flag_form_err,
1624 &hf_cmp_can_flag_ack_del_err,
1625 &hf_cmp_can_flag_active_ack_err,
1626 &hf_cmp_can_flag_passive_ack_err,
1627 &hf_cmp_can_flag_ack_err,
1628 &hf_cmp_can_flag_crc_err,
1629 NULL((void*)0)
1630 };
1631
1632 static int * const asam_cmp_can_flags_tx[] = {
1633 &hf_cmp_can_flag_reserved_tx,
1634 &hf_cmp_can_flag_gen_err,
1635 &hf_cmp_can_flag_reserved_2000,
1636 &hf_cmp_can_flag_reserved_1000,
1637 &hf_cmp_can_flag_srr_dom,
1638 &hf_cmp_can_flag_r0,
1639 &hf_cmp_can_flag_bit_err,
1640 &hf_cmp_can_flag_eof_err,
1641 &hf_cmp_can_flag_crc_del_err,
1642 &hf_cmp_can_flag_stuff_err,
1643 &hf_cmp_can_flag_form_err,
1644 &hf_cmp_can_flag_ack_del_err,
1645 &hf_cmp_can_flag_reserved_0008,
1646 &hf_cmp_can_flag_reserved_0004,
1647 &hf_cmp_can_flag_ack_err,
1648 &hf_cmp_can_flag_crc_err,
1649 NULL((void*)0)
1650 };
1651
1652 static int * const asam_cmp_can_id_field_11bit[] = {
1653 &hf_cmp_can_id_ide,
1654 &hf_cmp_can_id_rtr,
1655 &hf_cmp_can_id_err,
1656 &hf_cmp_can_id_11bit,
1657 NULL((void*)0)
1658 };
1659
1660 static int * const asam_cmp_can_id_field_11bit_old[] = {
1661 &hf_cmp_can_id_ide,
1662 &hf_cmp_can_id_rtr,
1663 &hf_cmp_can_id_err,
1664 &hf_cmp_can_id_11bit_old,
1665 NULL((void*)0)
1666 };
1667
1668 static int * const asam_cmp_can_id_field_29bit[] = {
1669 &hf_cmp_can_id_ide,
1670 &hf_cmp_can_id_rtr,
1671 &hf_cmp_can_id_err,
1672 &hf_cmp_can_id_29bit,
1673 NULL((void*)0)
1674 };
1675
1676 static int * const asam_cmp_can_crc_field[] = {
1677 &hf_cmp_can_crc_crc_support,
1678 &hf_cmp_can_crc_res,
1679 &hf_cmp_can_crc_crc,
1680 NULL((void*)0)
1681 };
1682
1683 uint16_t can_flags = tvb_get_uint16(tvb, offset, ENC_BIG_ENDIAN0x00000000);
1684 if (tx) {
1685 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_can_flags, ett_asam_cmp_payload_flags, asam_cmp_can_flags_tx, ENC_BIG_ENDIAN0x00000000);
1686 } else {
1687 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_can_flags, ett_asam_cmp_payload_flags, asam_cmp_can_flags_cap, ENC_BIG_ENDIAN0x00000000);
1688 }
1689 offset += 2;
1690
1691 proto_tree_add_item(tree, hf_cmp_can_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
1692 offset += 2;
1693
1694 uint32_t can_id_field = tvb_get_uint32(tvb, offset, ENC_BIG_ENDIAN0x00000000);
1695 bool_Bool can_id_29bit = (can_id_field & CMP_CAN_ID_IDE0x80000000) == CMP_CAN_ID_IDE0x80000000;
1696 uint32_t can_id = 0;
1697 if (can_id_29bit) {
1698 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_can_id, ett_asam_cmp_can_id, asam_cmp_can_id_field_29bit, ENC_BIG_ENDIAN0x00000000, BMT_NO_FALSE0x04);
1699 can_id = can_id_field & (CMP_CAN_ID_29BIT_MASK0x1fffffff | CMP_CAN_ID_RTR0x40000000 | CMP_CAN_ID_IDE0x80000000);
1700 } else {
1701 if (old_11bit_canid_encoding) {
1702 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_can_id, ett_asam_cmp_can_id, asam_cmp_can_id_field_11bit_old, ENC_BIG_ENDIAN0x00000000, BMT_NO_FALSE0x04);
1703 can_id = can_id_field & (CMP_CAN_ID_RTR0x40000000 | CMP_CAN_ID_IDE0x80000000 | CMP_CAN_ID_11BIT_MASK_OLD0x000007ff);
1704 } else {
1705 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_can_id, ett_asam_cmp_can_id, asam_cmp_can_id_field_11bit, ENC_BIG_ENDIAN0x00000000, BMT_NO_FALSE0x04);
1706 can_id = (can_id_field & (CMP_CAN_ID_RTR0x40000000 | CMP_CAN_ID_IDE0x80000000)) + ((can_id_field & CMP_CAN_ID_11BIT_MASK0x1ffc0000) >> CMP_CAN_ID_11BIT_SHIFT18);
1707 }
1708 }
1709 offset += 4;
1710
1711 uint64_t tmp64;
1712 proto_tree_add_bitmask_with_flags_ret_uint64(tree, tvb, offset, hf_cmp_can_crc, ett_asam_cmp_can_crc, asam_cmp_can_crc_field, ENC_BIG_ENDIAN0x00000000, BMT_NO_FALSE0x04, &tmp64);
1713 if ((tmp64 & CMP_CAN_CRC_CRC_SUPP0x80000000) == 0 && (tmp64 & CMP_CAN_CRC_CRC0x00007fff) != 0) {
1714 proto_tree_add_expert(tree, pinfo, &ei_asam_cmp_unsupported_crc_not_zero, tvb, offset, 4);
1715 }
1716 offset += 4;
1717
1718 uint32_t err_pos = 0;
1719 proto_tree_add_item_ret_uint(tree, hf_cmp_can_err_pos, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &err_pos);
1720 offset += 2;
1721
1722 proto_tree_add_item(tree, hf_cmp_can_dlc, tvb, offset, 1, ENC_NA0x00000000);
1723 offset += 1;
1724
1725 uint32_t msg_payload_type_length;
1726 proto_tree_add_item_ret_uint(tree, hf_cmp_can_data_len, tvb, offset, 1, ENC_NA0x00000000, &msg_payload_type_length);
1727 offset += 1;
1728
1729 if (msg_payload_type_length > 0) {
1730 tvbuff_t *sub_tvb = tvb_new_subset_length(tvb, offset, msg_payload_type_length);
1731
1732 if ((can_flags & CMP_CAN_FLAGS_ERRORS0x03ff) != 0) {
1733 can_id = can_id | CAN_ERR_FLAG0x20000000;
1734 }
1735
1736 struct can_info can_info = { .id = can_id, .len = msg_payload_type_length, .fd = CAN_TYPE_CAN_CLASSIC0, .bus_id = ht_interface_config_to_bus_id(interface_id) };
1737 if (!socketcan_call_subdissectors(sub_tvb, pinfo, tree, &can_info, heuristic_first)) {
1738 call_data_dissector(sub_tvb, pinfo, tree);
1739 }
1740
1741 offset += msg_payload_type_length;
1742 }
1743
1744 return offset;
1745}
1746
1747static uint32_t
1748dissect_asam_cmp_data_msg_canfd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, unsigned interface_id, bool_Bool tx) {
1749 uint32_t offset = 0;
1750
1751 static int * const asam_cmp_canfd_flags_cap[] = {
1752 &hf_cmp_canfd_flag_reserved,
1753 &hf_cmp_canfd_flag_esi,
1754 &hf_cmp_canfd_flag_brs,
1755 &hf_cmp_canfd_flag_srr_dom,
1756 &hf_cmp_canfd_flag_res,
1757 &hf_cmp_canfd_flag_bit_err,
1758 &hf_cmp_canfd_flag_eof_err,
1759 &hf_cmp_canfd_flag_crc_del_err,
1760 &hf_cmp_canfd_flag_stuff_err,
1761 &hf_cmp_canfd_flag_form_err,
1762 &hf_cmp_canfd_flag_ack_del_err,
1763 &hf_cmp_canfd_flag_active_ack_err,
1764 &hf_cmp_canfd_flag_passive_ack_err,
1765 &hf_cmp_canfd_flag_ack_err,
1766 &hf_cmp_canfd_flag_crc_err,
1767 NULL((void*)0)
1768 };
1769
1770 static int * const asam_cmp_canfd_flags_tx[] = {
1771 &hf_cmp_canfd_flag_reserved_tx,
1772 &hf_cmp_canfd_flag_gen_err,
1773 &hf_cmp_canfd_flag_esi,
1774 &hf_cmp_canfd_flag_brs,
1775 &hf_cmp_canfd_flag_srr_dom,
1776 &hf_cmp_canfd_flag_res,
1777 &hf_cmp_canfd_flag_bit_err,
1778 &hf_cmp_canfd_flag_eof_err,
1779 &hf_cmp_canfd_flag_crc_del_err,
1780 &hf_cmp_canfd_flag_stuff_err,
1781 &hf_cmp_canfd_flag_form_err,
1782 &hf_cmp_canfd_flag_ack_del_err,
1783 &hf_cmp_canfd_flag_reserved_0008,
1784 &hf_cmp_canfd_flag_reserved_0004,
1785 &hf_cmp_canfd_flag_ack_err,
1786 &hf_cmp_canfd_flag_crc_err,
1787 NULL((void*)0)
1788 };
1789
1790 static int * const asam_cmp_canfd_id_field_11bit[] = {
1791 &hf_cmp_canfd_id_ide,
1792 &hf_cmp_canfd_id_rrs,
1793 &hf_cmp_canfd_id_err,
1794 &hf_cmp_canfd_id_11bit,
1795 NULL((void*)0)
1796 };
1797
1798 static int * const asam_cmp_canfd_id_field_11bit_old[] = {
1799 &hf_cmp_canfd_id_ide,
1800 &hf_cmp_canfd_id_rrs,
1801 &hf_cmp_canfd_id_err,
1802 &hf_cmp_canfd_id_11bit_old,
1803 NULL((void*)0)
1804 };
1805
1806 static int * const asam_cmp_canfd_id_field_29bit[] = {
1807 &hf_cmp_canfd_id_ide,
1808 &hf_cmp_canfd_id_rrs,
1809 &hf_cmp_canfd_id_err,
1810 &hf_cmp_canfd_id_29bit,
1811 NULL((void*)0)
1812 };
1813
1814 static int * const asam_cmp_canfd_crc_field_17bit[] = {
1815 &hf_cmp_canfd_crc_crc_support,
1816 &hf_cmp_canfd_crc_sbc_support,
1817 &hf_cmp_canfd_crc_res,
1818 &hf_cmp_canfd_crc_sbc_parity,
1819 &hf_cmp_canfd_crc_sbc,
1820 &hf_cmp_canfd_crc_crc17,
1821 NULL((void*)0)
1822 };
1823
1824 static int * const asam_cmp_canfd_crc_field_21bit[] = {
1825 &hf_cmp_canfd_crc_crc_support,
1826 &hf_cmp_canfd_crc_sbc_support,
1827 &hf_cmp_canfd_crc_res,
1828 &hf_cmp_canfd_crc_sbc_parity,
1829 &hf_cmp_canfd_crc_sbc,
1830 &hf_cmp_canfd_crc_crc21,
1831 NULL((void*)0)
1832 };
1833
1834 uint16_t canfd_flags = tvb_get_uint16(tvb, offset, ENC_BIG_ENDIAN0x00000000);
1835 if (tx) {
1836 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_canfd_flags, ett_asam_cmp_payload_flags, asam_cmp_canfd_flags_tx, ENC_BIG_ENDIAN0x00000000);
1837 } else {
1838 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_canfd_flags, ett_asam_cmp_payload_flags, asam_cmp_canfd_flags_cap, ENC_BIG_ENDIAN0x00000000);
1839 }
1840 offset += 2;
1841
1842 proto_tree_add_item(tree, hf_cmp_canfd_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
1843 offset += 2;
1844
1845 uint32_t can_id_field = tvb_get_uint32(tvb, offset, ENC_BIG_ENDIAN0x00000000);
1846 bool_Bool can_id_29bit = (can_id_field & CMP_CANFD_ID_IDE0x80000000) == CMP_CANFD_ID_IDE0x80000000;
1847 uint32_t can_id = 0;
1848 if (can_id_29bit) {
1849 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_canfd_id, ett_asam_cmp_can_id, asam_cmp_canfd_id_field_29bit, ENC_BIG_ENDIAN0x00000000, BMT_NO_FALSE0x04);
1850 can_id = can_id_field & (CMP_CAN_ID_29BIT_MASK0x1fffffff | CMP_CANFD_ID_IDE0x80000000);
1851 } else {
1852 if (old_11bit_canid_encoding) {
1853 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_canfd_id, ett_asam_cmp_can_id, asam_cmp_canfd_id_field_11bit_old, ENC_BIG_ENDIAN0x00000000, BMT_NO_FALSE0x04);
1854 can_id = can_id_field & (CMP_CANFD_ID_IDE0x80000000 | CMP_CAN_ID_11BIT_MASK_OLD0x000007ff);
1855 } else {
1856 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_canfd_id, ett_asam_cmp_can_id, asam_cmp_canfd_id_field_11bit, ENC_BIG_ENDIAN0x00000000, BMT_NO_FALSE0x04);
1857 can_id = (can_id_field & CMP_CANFD_ID_IDE0x80000000) + ((can_id_field & CMP_CAN_ID_11BIT_MASK0x1ffc0000) >> CMP_CAN_ID_11BIT_SHIFT18);
1858 }
1859 }
1860 offset += 4;
1861
1862 /* We peek ahead to find out the DLC. 0..10: 17bit CRC, 11..15: 21bit CRC. */
1863 if (tvb_get_uint8(tvb, offset + 6) <= 10) {
1864 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_canfd_crc, ett_asam_cmp_can_crc, asam_cmp_canfd_crc_field_17bit, ENC_BIG_ENDIAN0x00000000, BMT_NO_FALSE0x04);
1865 } else {
1866 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_canfd_crc, ett_asam_cmp_can_crc, asam_cmp_canfd_crc_field_21bit, ENC_BIG_ENDIAN0x00000000, BMT_NO_FALSE0x04);
1867 }
1868 offset += 4;
1869
1870 proto_tree_add_item(tree, hf_cmp_canfd_err_pos, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
1871 offset += 2;
1872
1873 proto_tree_add_item(tree, hf_cmp_canfd_dlc, tvb, offset, 1, ENC_NA0x00000000);
1874 offset += 1;
1875
1876 uint32_t msg_payload_type_length;
1877 proto_tree_add_item_ret_uint(tree, hf_cmp_canfd_data_len, tvb, offset, 1, ENC_NA0x00000000, &msg_payload_type_length);
1878 offset += 1;
1879
1880 if (msg_payload_type_length > 0) {
1881 tvbuff_t *sub_tvb = tvb_new_subset_length(tvb, offset, msg_payload_type_length);
1882
1883 if ((canfd_flags & CMP_CANFD_FLAGS_ERRORS0x03ff) != 0) {
1884 can_id = can_id | CAN_ERR_FLAG0x20000000;
1885 }
1886
1887 struct can_info can_info = { .id = can_id, .len = msg_payload_type_length, .fd = CAN_TYPE_CAN_FD1, .bus_id = ht_interface_config_to_bus_id(interface_id) };
1888 if (!socketcan_call_subdissectors(sub_tvb, pinfo, tree, &can_info, heuristic_first)) {
1889 call_data_dissector(sub_tvb, pinfo, tree);
1890 }
1891
1892 offset += msg_payload_type_length;
1893 }
1894
1895 return offset;
1896}
1897
1898static uint32_t
1899dissect_asam_cmp_data_msg_lin(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, unsigned interface_id, bool_Bool tx) {
1900 uint32_t offset = 0;
1901
1902 lin_info_t lin_info = { 0, 0, 0 };
1903
1904 static int * const asam_cmp_lin_pid[] = {
1905 &hf_cmp_lin_pid_parity,
1906 &hf_cmp_lin_pid_id,
1907 NULL((void*)0)
1908 };
1909
1910 static int * const asam_cmp_lin_flags_cap[] = {
1911 &hf_cmp_lin_flag_reserved,
1912 &hf_cmp_lin_flag_wup,
1913 &hf_cmp_lin_flag_long_dom_err,
1914 &hf_cmp_lin_flag_short_dom_err,
1915 &hf_cmp_lin_flag_framing_err,
1916 &hf_cmp_lin_flag_sync_err,
1917 &hf_cmp_lin_flag_no_slave_res,
1918 &hf_cmp_lin_flag_parity_err,
1919 &hf_cmp_lin_flag_col_err,
1920 &hf_cmp_lin_flag_checksum_err,
1921 NULL((void*)0)
1922 };
1923
1924 static int * const asam_cmp_lin_flags_tx[] = {
1925 &hf_cmp_lin_flag_reserved,
1926 &hf_cmp_lin_flag_wup,
1927 &hf_cmp_lin_flag_long_dom_err,
1928 &hf_cmp_lin_flag_short_dom_err,
1929 &hf_cmp_lin_flag_framing_err,
1930 &hf_cmp_lin_flag_sync_err,
1931 &hf_cmp_lin_flag_reserved_0x0008,
1932 &hf_cmp_lin_flag_parity_err,
1933 &hf_cmp_lin_flag_reserved_0x0002,
1934 &hf_cmp_lin_flag_checksum_err,
1935 NULL((void*)0)
1936 };
1937
1938 if (tx) {
1939 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_lin_flags, ett_asam_cmp_payload_flags, asam_cmp_lin_flags_tx, ENC_BIG_ENDIAN0x00000000);
1940 } else {
1941 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_lin_flags, ett_asam_cmp_payload_flags, asam_cmp_lin_flags_cap, ENC_BIG_ENDIAN0x00000000);
1942 }
1943 offset += 2;
1944
1945 proto_tree_add_item(tree, hf_cmp_lin_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
1946 offset += 2;
1947
1948 lin_info.id = tvb_get_uint8(tvb, offset) & CMP_CANFD_PID_ID_MASK0x3f;
1949 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_lin_pid, ett_asam_cmp_lin_pid, asam_cmp_lin_pid, ENC_BIG_ENDIAN0x00000000);
1950 offset += 1;
1951
1952 proto_tree_add_item(tree, hf_cmp_lin_reserved_2, tvb, offset, 1, ENC_NA0x00000000);
1953 offset += 1;
1954
1955 proto_tree_add_item(tree, hf_cmp_lin_checksum, tvb, offset, 1, ENC_NA0x00000000);
1956 offset += 1;
1957
1958 uint32_t msg_payload_type_length;
1959 proto_tree_add_item_ret_uint(tree, hf_cmp_lin_data_len, tvb, offset, 1, ENC_NA0x00000000, &msg_payload_type_length);
1960 offset += 1;
1961
1962 if (msg_payload_type_length > 0) {
1963 lin_info.bus_id = ht_interface_config_to_bus_id(interface_id);
1964 lin_info.len = (uint16_t)msg_payload_type_length;
1965
1966 tvbuff_t *sub_tvb = tvb_new_subset_length(tvb, offset, msg_payload_type_length);
1967 dissect_lin_message(sub_tvb, pinfo, tree, &lin_info);
1968 offset += msg_payload_type_length;
1969 }
1970
1971 return offset;
1972}
1973
1974static uint32_t
1975dissect_asam_cmp_data_msg_flexray(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, unsigned interface_id, bool_Bool tx) {
1976 uint32_t offset = 0;
1977
1978 flexray_info_t fr_info = { 0, 0, 0, 0 };
1979 uint32_t tmp;
1980
1981 static int * const asam_cmp_flexray_flags_cap[] = {
1982 &hf_cmp_flexray_flag_reserved,
1983 &hf_cmp_flexray_flag_channel,
1984 &hf_cmp_flexray_flag_reserved_0x0100,
1985 &hf_cmp_flexray_flag_cas,
1986 &hf_cmp_flexray_flag_ppi,
1987 &hf_cmp_flexray_flag_wus,
1988 &hf_cmp_flexray_flag_sync,
1989 &hf_cmp_flexray_flag_sf,
1990 &hf_cmp_flexray_flag_nf,
1991 &hf_cmp_flexray_flag_crc_header_err,
1992 &hf_cmp_flexray_flag_crc_frame_err,
1993 NULL((void*)0)
1994 };
1995
1996 static int * const asam_cmp_flexray_flags_tx[] = {
1997 &hf_cmp_flexray_flag_reserved,
1998 &hf_cmp_flexray_flag_channel,
1999 &hf_cmp_flexray_flag_leading,
2000 &hf_cmp_flexray_flag_cas,
2001 &hf_cmp_flexray_flag_ppi,
2002 &hf_cmp_flexray_flag_wus,
2003 &hf_cmp_flexray_flag_sync,
2004 &hf_cmp_flexray_flag_sf,
2005 &hf_cmp_flexray_flag_nf,
2006 &hf_cmp_flexray_flag_crc_header_err,
2007 &hf_cmp_flexray_flag_crc_frame_err,
2008 NULL((void*)0)
2009 };
2010
2011 uint16_t flags = tvb_get_uint16(tvb, offset, ENC_BIG_ENDIAN0x00000000);
2012 if (tx) {
2013 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_flexray_flags, ett_asam_cmp_payload_flags, asam_cmp_flexray_flags_tx, ENC_BIG_ENDIAN0x00000000);
2014 } else {
2015 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_flexray_flags, ett_asam_cmp_payload_flags, asam_cmp_flexray_flags_cap, ENC_BIG_ENDIAN0x00000000);
2016 }
2017 offset += 2;
2018
2019 proto_tree_add_item(tree, hf_cmp_flexray_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2020 offset += 2;
2021
2022 proto_tree_add_item(tree, hf_cmp_flexray_header_crc, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2023 offset += 2;
2024
2025 proto_tree_add_item_ret_uint(tree, hf_cmp_flexray_frame_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &tmp);
2026 fr_info.id = (uint16_t)tmp;
2027 offset += 2;
2028
2029 proto_tree_add_item_ret_uint(tree, hf_cmp_flexray_cycle, tvb, offset, 1, ENC_NA0x00000000, &tmp);
2030 fr_info.cc = (uint8_t)tmp;
2031 offset += 1;
2032
2033 proto_tree_add_item(tree, hf_cmp_flexray_frame_crc, tvb, offset, 3, ENC_BIG_ENDIAN0x00000000);
2034 offset += 3;
2035
2036 proto_tree_add_item(tree, hf_cmp_flexray_reserved_2, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000);
2037 offset += 1;
2038
2039 uint32_t msg_payload_type_length;
2040 proto_tree_add_item_ret_uint(tree, hf_cmp_flexray_data_len, tvb, offset, 1, ENC_NA0x00000000, &msg_payload_type_length);
2041 offset += 1;
2042
2043 if (msg_payload_type_length > 0 && (flags & CMP_FLEXRAY_FLAGS_NF0x0004) == 0) {
2044 fr_info.bus_id = ht_interface_config_to_bus_id(interface_id);
2045 fr_info.ch = 0; /* Assuming A! Could this be B? */
2046
2047 tvbuff_t *sub_tvb = tvb_new_subset_length(tvb, offset, msg_payload_type_length);
2048 if (!flexray_call_subdissectors(sub_tvb, pinfo, tree, &fr_info, heuristic_first)) {
2049 call_data_dissector(sub_tvb, pinfo, tree);
2050 }
2051 }
2052
2053 offset += msg_payload_type_length;
2054
2055 return offset;
2056}
2057
2058static uint32_t
2059dissect_asam_cmp_data_msg_digital(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
2060 uint32_t offset = 0;
2061
2062 static int * const asam_cmp_digital_flags[] = {
2063 &hf_cmp_digital_flag_reserved,
2064 &hf_cmp_digital_flag_sampl_present,
2065 &hf_cmp_digital_flag_trig_present,
2066 NULL((void*)0)
2067 };
2068
2069 uint64_t flags;
2070 proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_cmp_digital_flags, ett_asam_cmp_payload_flags, asam_cmp_digital_flags, ENC_BIG_ENDIAN0x00000000, &flags);
2071 offset += 2;
2072
2073 proto_tree_add_item(tree, hf_cmp_digital_reserved, tvb, offset, 1, ENC_NA0x00000000);
2074 offset += 1;
2075
2076 uint32_t pin_count;
2077 proto_tree_add_item_ret_uint(tree, hf_cmp_digital_pin_count, tvb, offset, 1, ENC_NA0x00000000, &pin_count);
2078 offset += 1;
2079
2080 if ((flags & CMP_DIGITAL_FLAG_TRIGGER_PRESENT0x0001) == CMP_DIGITAL_FLAG_TRIGGER_PRESENT0x0001) {
2081 proto_tree_add_item(tree, hf_cmp_digital_trig_pattern, tvb, offset, 1, ENC_NA0x00000000);
2082 offset += 1;
2083
2084 proto_tree_add_item(tree, hf_cmp_digital_trig_pin, tvb, offset, 1, ENC_NA0x00000000);
2085 offset += 1;
2086
2087 proto_tree_add_item(tree, hf_cmp_digital_flag_reserved2, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2088 offset += 2;
2089 }
2090
2091 if ((flags & CMP_DIGITAL_FLAG_SAMPLE_PRESENT0x0002) == CMP_DIGITAL_FLAG_SAMPLE_PRESENT0x0002) {
2092 proto_tree_add_item(tree, hf_cmp_digital_sample_interval, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
2093 offset += 4;
2094
2095 uint32_t sample_count;
2096 proto_tree_add_item_ret_uint(tree, hf_cmp_digital_sample_count, tvb, offset, 1, ENC_NA0x00000000, &sample_count);
2097 offset += 1;
2098
2099 uint32_t sample_byte_count = (uint32_t)floor((pin_count + 7) / 8);
2100
2101 for (uint32_t i = 0; i < sample_count; i++) {
2102
2103 proto_item *ti = proto_tree_add_item(tree, hf_cmp_digital_sample, tvb, offset, sample_byte_count, ENC_NA0x00000000);
2104 proto_item_append_text(ti, " [%d] ", i);
2105 proto_tree *sample_tree = proto_item_add_subtree(ti, ett_asam_cmp_digital_sample);
2106
2107 /* we are supporting 32 pins for the beginning */
2108 if (4 < sample_byte_count) {
2109 /* skip unsupported pins */
2110 offset += sample_byte_count - 4;
2111 }
2112 if (4 <= sample_byte_count) {
2113 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_31, tvb, offset, 1, ENC_NA0x00000000);
2114 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_30, tvb, offset, 1, ENC_NA0x00000000);
2115 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_29, tvb, offset, 1, ENC_NA0x00000000);
2116 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_28, tvb, offset, 1, ENC_NA0x00000000);
2117 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_27, tvb, offset, 1, ENC_NA0x00000000);
2118 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_26, tvb, offset, 1, ENC_NA0x00000000);
2119 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_25, tvb, offset, 1, ENC_NA0x00000000);
2120 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_24, tvb, offset, 1, ENC_NA0x00000000);
2121 col_append_fstr(pinfo->cinfo, COL_INFO, " 0x%02x", tvb_get_uint8(tvb, offset));
2122 offset += 1;
2123 }
2124
2125 if (3 <= sample_byte_count) {
2126 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_23, tvb, offset, 1, ENC_NA0x00000000);
2127 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_22, tvb, offset, 1, ENC_NA0x00000000);
2128 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_21, tvb, offset, 1, ENC_NA0x00000000);
2129 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_20, tvb, offset, 1, ENC_NA0x00000000);
2130 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_19, tvb, offset, 1, ENC_NA0x00000000);
2131 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_18, tvb, offset, 1, ENC_NA0x00000000);
2132 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_17, tvb, offset, 1, ENC_NA0x00000000);
2133 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_16, tvb, offset, 1, ENC_NA0x00000000);
2134 col_append_fstr(pinfo->cinfo, COL_INFO, " 0x%02x", tvb_get_uint8(tvb, offset));
2135 offset += 1;
2136 }
2137
2138 if (2 <= sample_byte_count) {
2139 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_15, tvb, offset, 1, ENC_NA0x00000000);
2140 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_14, tvb, offset, 1, ENC_NA0x00000000);
2141 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_13, tvb, offset, 1, ENC_NA0x00000000);
2142 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_12, tvb, offset, 1, ENC_NA0x00000000);
2143 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_11, tvb, offset, 1, ENC_NA0x00000000);
2144 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_10, tvb, offset, 1, ENC_NA0x00000000);
2145 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_9, tvb, offset, 1, ENC_NA0x00000000);
2146 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_8, tvb, offset, 1, ENC_NA0x00000000);
2147 col_append_fstr(pinfo->cinfo, COL_INFO, " 0x%02x", tvb_get_uint8(tvb, offset));
2148 offset += 1;
2149 }
2150
2151 if (1 <= sample_byte_count) {
2152 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_7, tvb, offset, 1, ENC_NA0x00000000);
2153 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_6, tvb, offset, 1, ENC_NA0x00000000);
2154 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_5, tvb, offset, 1, ENC_NA0x00000000);
2155 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_4, tvb, offset, 1, ENC_NA0x00000000);
2156 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_3, tvb, offset, 1, ENC_NA0x00000000);
2157 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_2, tvb, offset, 1, ENC_NA0x00000000);
2158 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_1, tvb, offset, 1, ENC_NA0x00000000);
2159 proto_tree_add_item(sample_tree, hf_cmp_digital_sample_pin_0, tvb, offset, 1, ENC_NA0x00000000);
2160 col_append_fstr(pinfo->cinfo, COL_INFO, " 0x%02x", tvb_get_uint8(tvb, offset));
2161 offset += 1;
2162 }
2163 }
2164 }
2165
2166 return offset;
2167}
2168
2169static uint32_t
2170dissect_asam_cmp_data_msg_uart(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
2171 uint32_t offset = 0;
2172
2173 static int * const asam_cmp_uart_flags[] = {
2174 &hf_cmp_uart_flag_reserved,
2175 &hf_cmp_uart_flag_cl,
2176 NULL((void*)0)
2177 };
2178
2179 static int * const asam_cmp_uart_data[] = {
2180 &hf_cmp_uart_data_parity_err,
2181 &hf_cmp_uart_data_break_condition,
2182 &hf_cmp_uart_data_framing_err,
2183 &hf_cmp_uart_data_reserved,
2184 &hf_cmp_uart_data_data,
2185 NULL((void*)0)
2186 };
2187
2188 uint64_t char_len;
2189 proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_cmp_uart_flags, ett_asam_cmp_payload_flags, asam_cmp_uart_flags, ENC_BIG_ENDIAN0x00000000, &char_len);
2190 char_len = char_len & 0x07;
2191 offset += 2;
2192
2193 proto_tree_add_item(tree, hf_cmp_uart_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2194 offset += 2;
2195
2196 uint32_t msg_payload_type_length;
2197 proto_tree_add_item_ret_uint(tree, hf_cmp_uart_data_len, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &msg_payload_type_length);
2198 offset += 2;
2199
2200 for (unsigned i = 0; i < msg_payload_type_length; i++) {
2201 uint8_t *buf = NULL((void*)0);
2202 proto_item *ti = proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_uart_data, ett_asam_cmp_uart_data, asam_cmp_uart_data, ENC_BIG_ENDIAN0x00000000);
2203 if (char_len == CMP_UART_CL_70x02 || char_len == CMP_UART_CL_80x03) {
2204 buf = tvb_get_string_enc(pinfo->pool, tvb, offset + 1, 1, ENC_ASCII0x00000000 | ENC_NA0x00000000);
2205
2206 /* sanitizing buffer */
2207 if (buf[0] > 0x00 && buf[0] < 0x20) {
2208 buf[0] = 0x20;
2209 } else {
2210 proto_item_append_text(ti, ": %s", buf);
2211 }
2212 }
2213 offset += 2;
2214 }
2215
2216 return offset;
2217}
2218
2219static uint32_t
2220dissect_asam_cmp_data_msg_analog(tvbuff_t *tvb, proto_tree *tree) {
2221 uint32_t offset = 0;
2222
2223 static int * const asam_cmp_analog_flags[] = {
2224 &hf_cmp_analog_flag_reserved,
2225 &hf_cmp_analog_flag_sample_dt,
2226 NULL((void*)0)
2227 };
2228
2229 uint64_t flags;
2230 proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_cmp_analog_flags, ett_asam_cmp_payload_flags, asam_cmp_analog_flags, ENC_BIG_ENDIAN0x00000000, &flags);
2231 offset += 2;
2232
2233 proto_tree_add_item(tree, hf_cmp_analog_reserved, tvb, offset, 1, ENC_NA0x00000000);
2234 offset += 1;
2235
2236 unsigned analog_unit;
2237 proto_tree_add_item_ret_uint(tree, hf_cmp_analog_unit, tvb, offset, 1, ENC_NA0x00000000, &analog_unit);
2238 const char *unit_symbol;
2239 unit_symbol = try_val_to_str(analog_unit, analog_units);
2240 offset += 1;
2241
2242 proto_tree_add_item(tree, hf_cmp_analog_sample_interval, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
2243 offset += 4;
2244
2245 float sample_offset;
2246 proto_tree_add_item(tree, hf_cmp_analog_sample_offset, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
2247 sample_offset = tvb_get_ieee_float(tvb, offset, ENC_BIG_ENDIAN0x00000000);
2248 offset += 4;
2249
2250 float sample_scalar;
2251 proto_tree_add_item(tree, hf_cmp_analog_sample_scalar, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
2252 sample_scalar = tvb_get_ieee_float(tvb, offset, ENC_BIG_ENDIAN0x00000000);
2253 offset += 4;
2254
2255 int data_width;
2256 switch (flags & 0x03) {
2257 case 0: /* INT16 */
2258 data_width = 2;
2259 break;
2260 case 1: /* INT32 */
2261 data_width = 4;
2262 break;
2263 default:
2264 data_width = 0;
2265 }
2266
2267 int data_left = tvb_captured_length(tvb) - offset;
2268
2269 while (data_width != 0 && data_left >= data_width) {
2270 switch (flags & 0x03) {
2271 case 0: {
2272 /* INT16 */
2273 double sample_value = ((double)tvb_get_int16(tvb, offset, ENC_BIG_ENDIAN0x00000000) * sample_scalar + sample_offset);
2274 proto_item *ti = proto_tree_add_double(tree, hf_cmp_analog_sample, tvb, offset, 2, sample_value);
2275 if (unit_symbol == NULL((void*)0)) {
2276 proto_item_append_text(ti, " (%.9f)", sample_value);
2277 } else {
2278 proto_item_append_text(ti, "%s (%.9f%s)", unit_symbol, sample_value, unit_symbol);
2279 }
2280 PROTO_ITEM_SET_GENERATED(ti)proto_item_set_generated((ti));
2281
2282 proto_tree *sample_tree = proto_item_add_subtree(ti, ett_asam_cmp_analog_sample);
2283 ti = proto_tree_add_item(sample_tree, hf_cmp_analog_sample_raw, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2284 PROTO_ITEM_SET_HIDDEN(ti)proto_item_set_hidden((ti));
2285
2286 data_left -= 2;
2287 offset += 2;
2288 break;
2289 }
2290 case 1: { /* INT32 */
2291 double sample_value = ((double)tvb_get_int32(tvb, offset, ENC_BIG_ENDIAN0x00000000) * sample_scalar + sample_offset);
2292 proto_item *ti = proto_tree_add_double(tree, hf_cmp_analog_sample, tvb, offset, 4, sample_value);
2293 if (unit_symbol == NULL((void*)0)) {
2294 proto_item_append_text(ti, " (%.9f)", sample_value);
2295 } else {
2296 proto_item_append_text(ti, "%s (%.9f%s)", unit_symbol, sample_value, unit_symbol);
2297 }
2298 PROTO_ITEM_SET_GENERATED(ti)proto_item_set_generated((ti));
2299
2300 proto_tree *sample_tree = proto_item_add_subtree(ti, ett_asam_cmp_analog_sample);
2301 ti = proto_tree_add_item(sample_tree, hf_cmp_analog_sample_raw, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
2302 PROTO_ITEM_SET_HIDDEN(ti)proto_item_set_hidden((ti));
2303
2304 data_left -= 4;
2305 offset += 4;
2306 break;
2307 }
2308 default:
2309 /* Other types are reserved as of now, so we do not know how to parse them. Just ignore. */
2310 break;
2311 }
2312 }
2313
2314 return offset;
2315}
2316
2317static void
2318call_asam_cmp_ethernet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *root_tree) {
2319 /* The Ethernet frame may carry ASAM CMP again; stop before the layer limit */
2320 if (wmem_list_count(pinfo->layers) + 16 >= prefs.gui_max_tree_depth) {
2321 proto_tree_add_expert_remaining(tree, pinfo, &ei_asam_cmp_too_deep, tvb, 0);
2322 return;
2323 }
2324 call_dissector(eth_handle, tvb, pinfo, root_tree);
2325}
2326
2327static uint32_t
2328dissect_asam_cmp_data_msg_ethernet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *root_tree, bool_Bool tx) {
2329 uint32_t offset = 0;
2330
2331 static int * const asam_cmp_ethernet_flags_cap[] = {
2332 &hf_cmp_eth_flag_reserved_cap,
2333 &hf_cmp_eth_flag_fcs_supported,
2334 &hf_cmp_eth_flag_truncated,
2335 &hf_cmp_eth_flag_phy_err,
2336 &hf_cmp_eth_flag_long_err,
2337 &hf_cmp_eth_flag_collision,
2338 &hf_cmp_eth_flag_tx_down,
2339 &hf_cmp_eth_flag_short_err,
2340 &hf_cmp_eth_flag_fcs_err,
2341 NULL((void*)0)
2342 };
2343
2344 static int * const asam_cmp_ethernet_flags_tx[] = {
2345 &hf_cmp_eth_flag_reserved_tx2,
2346 &hf_cmp_eth_flag_fcs_sending,
2347 &hf_cmp_eth_flag_reserved_tx,
2348 NULL((void*)0)
2349 };
2350
2351 if (tx) {
2352 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_eth_flags, ett_asam_cmp_payload_flags, asam_cmp_ethernet_flags_tx, ENC_BIG_ENDIAN0x00000000);
2353 } else {
2354 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_eth_flags, ett_asam_cmp_payload_flags, asam_cmp_ethernet_flags_cap, ENC_BIG_ENDIAN0x00000000);
2355 }
2356 offset += 2;
2357
2358 proto_tree_add_item(tree, hf_cmp_eth_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2359 offset += 2;
2360
2361 uint32_t msg_payload_type_length;
2362 proto_tree_add_item_ret_uint(tree, hf_cmp_eth_payload_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &msg_payload_type_length);
2363 offset += 2;
2364
2365 if (msg_payload_type_length > 0) {
2366 tvbuff_t *sub_tvb = tvb_new_subset_length(tvb, offset, (int)msg_payload_type_length);
2367 call_asam_cmp_ethernet(sub_tvb, pinfo, tree, root_tree);
2368 offset += msg_payload_type_length;
2369 }
2370
2371 return offset;
2372}
2373
2374static uint32_t
2375dissect_asam_cmp_data_msg_spi(tvbuff_t *tvb, proto_tree *tree) {
2376 uint32_t offset = 0;
2377
2378 static int * const asam_cmp_spi_flags[] = {
2379 &hf_cmp_spi_flag_reserved,
2380 NULL((void*)0)
2381 };
2382
2383 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_spi_flags, ett_asam_cmp_payload_flags, asam_cmp_spi_flags, ENC_BIG_ENDIAN0x00000000);
2384 offset += 2;
2385
2386 proto_tree_add_item(tree, hf_cmp_spi_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2387 offset += 2;
2388
2389 uint32_t cipo_length;
2390 proto_tree_add_item_ret_uint(tree, hf_cmp_spi_cipo_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &cipo_length);
2391 offset += 2;
2392
2393 if (cipo_length > 0) {
2394 proto_tree_add_item(tree, hf_cmp_spi_cipo, tvb, offset, cipo_length, ENC_NA0x00000000);
2395 offset += cipo_length;
2396 }
2397
2398 uint32_t copi_length;
2399 proto_tree_add_item_ret_uint(tree, hf_cmp_spi_copi_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &copi_length);
2400 offset += 2;
2401
2402 if (copi_length > 0) {
2403 proto_tree_add_item(tree, hf_cmp_spi_copi, tvb, offset, copi_length, ENC_NA0x00000000);
2404 offset += copi_length;
2405 }
2406
2407 return offset;
2408}
2409
2410static uint32_t
2411dissect_asam_cmp_data_msg_i2c(tvbuff_t *tvb, proto_tree *tree) {
2412 uint32_t offset = 0;
2413
2414 static int * const asam_cmp_i2c_flags[] = {
2415 &hf_cmp_i2c_flag_reserved,
2416 &hf_cmp_i2c_flag_start_cond,
2417 &hf_cmp_i2c_flag_stop_cond,
2418 &hf_cmp_i2c_flag_addr_err,
2419 &hf_cmp_i2c_flag_addr_ack,
2420 &hf_cmp_i2c_flag_addr_len,
2421 &hf_cmp_i2c_flag_dir,
2422 NULL((void*)0)
2423 };
2424
2425 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_i2c_flags, ett_asam_cmp_payload_flags, asam_cmp_i2c_flags, ENC_BIG_ENDIAN0x00000000, BMT_NO_APPEND0x01);
2426 offset += 2;
2427
2428 proto_tree_add_item(tree, hf_cmp_i2c_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2429 offset += 2;
2430
2431 proto_tree_add_item(tree, hf_cmp_i2c_addr, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2432 offset += 2;
2433
2434 uint32_t data_entry_count;
2435 proto_tree_add_item_ret_uint(tree, hf_cmp_i2c_data_entry_count, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &data_entry_count);
2436 offset += 2;
2437
2438 static int * const asam_cmp_i2c_data[] = {
2439 &hf_cmp_i2c_data_control_res,
2440 &hf_cmp_i2c_data_control_ack,
2441 &hf_cmp_i2c_data_byte,
2442 NULL((void*)0)
2443 };
2444
2445 for (uint32_t i = 0; i < data_entry_count; i++) {
2446 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_i2c_data, ett_asam_cmp_i2c_data_entry, asam_cmp_i2c_data, ENC_BIG_ENDIAN0x00000000);
2447 offset += 2;
2448 }
2449
2450 return offset;
2451}
2452
2453static uint32_t
2454dissect_asam_cmp_data_msg_gige_vision(tvbuff_t *tvb, proto_tree *tree) {
2455 uint32_t offset = 0;
2456
2457 static int * const asam_cmp_gige_flags[] = {
2458 &hf_cmp_gige_flag_reserved,
2459 NULL((void*)0)
2460 };
2461
2462 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_gige_flags, ett_asam_cmp_payload_flags, asam_cmp_gige_flags, ENC_BIG_ENDIAN0x00000000, BMT_NO_APPEND0x01);
2463 offset += 2;
2464
2465 proto_tree_add_item(tree, hf_cmp_gige_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2466 offset += 2;
2467
2468 uint32_t msg_payload_type_length;
2469 proto_tree_add_item_ret_uint(tree, hf_cmp_gige_payload_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &msg_payload_type_length);
2470 offset += 2;
2471
2472 if (msg_payload_type_length > 0) {
2473 proto_tree_add_item(tree, hf_cmp_gige_payload, tvb, offset, msg_payload_type_length, ENC_NA0x00000000);
2474 offset += msg_payload_type_length;
2475 }
2476
2477 return offset;
2478}
2479
2480static uint32_t
2481dissect_asam_cmp_data_msg_mipi_csi2(tvbuff_t *tvb, proto_tree *tree, bool_Bool tx) {
2482 uint32_t offset = 0;
2483
2484 static int * const asam_cmp_mipi_csi2_flags_cap[] = {
2485 &hf_cmp_mipi_csi2_flag_reserved,
2486 &hf_cmp_mipi_csi2_flag_cs_support,
2487 &hf_cmp_mipi_csi2_flag_line_ctr_src,
2488 &hf_cmp_mipi_csi2_flag_frame_ctr_src,
2489 &hf_cmp_mipi_csi2_flag_ecc_fmt,
2490 &hf_cmp_mipi_csi2_flag_ecc_err_uc,
2491 &hf_cmp_mipi_csi2_flag_ecc_err_c,
2492 &hf_cmp_mipi_csi2_flag_crc_err,
2493 NULL((void*)0)
2494 };
2495
2496 static int * const asam_cmp_mipi_csi2_flags_tx[] = {
2497 &hf_cmp_mipi_csi2_flag_reserved_tx,
2498 NULL((void*)0)
2499 };
2500
2501 if (tx) {
2502 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_mipi_csi2_flags, ett_asam_cmp_payload_flags, asam_cmp_mipi_csi2_flags_tx, ENC_BIG_ENDIAN0x00000000, BMT_NO_APPEND0x01);
2503 } else {
2504 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_mipi_csi2_flags, ett_asam_cmp_payload_flags, asam_cmp_mipi_csi2_flags_cap, ENC_BIG_ENDIAN0x00000000, BMT_NO_APPEND0x01);
2505 }
2506 offset += 2;
2507
2508 proto_tree_add_item(tree, hf_cmp_mipi_csi2_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2509 offset += 2;
2510
2511 proto_tree_add_item(tree, hf_cmp_mipi_csi2_frame_counter, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2512 offset += 2;
2513
2514 proto_tree_add_item(tree, hf_cmp_mipi_csi2_line_counter, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2515 offset += 2;
2516
2517 static int * const asam_cmp_mipi_dt[] = {
2518 &hf_cmp_mipi_csi2_dt_res,
2519 &hf_cmp_mipi_csi2_dt_dt,
2520 NULL((void*)0)
2521 };
2522
2523 uint64_t mipi_csi2_dt_flags;
2524 proto_tree_add_bitmask_with_flags_ret_uint64(tree, tvb, offset, hf_cmp_mipi_csi2_dt, ett_asam_cmp_payload_flags, asam_cmp_mipi_dt, ENC_NA0x00000000, BMT_NO_APPEND0x01, &mipi_csi2_dt_flags);
2525 offset += 1;
2526
2527 bool_Bool asam_cmp_mipi_csi_short_packet = (mipi_csi2_dt_flags & MIPI_CSI2_DT_BITS0x3F) <= MIPI_CSI2_DT_SHORT_END0x0F;
2528
2529 static int * const asam_cmp_mipi_vci[] = {
2530 &hf_cmp_mipi_csi2_vci_res,
2531 &hf_cmp_mipi_csi2_vci_vcx,
2532 &hf_cmp_mipi_csi2_vci_vci,
2533 NULL((void*)0)
2534 };
2535
2536 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_mipi_csi2_vci, ett_asam_cmp_payload_flags, asam_cmp_mipi_vci, ENC_NA0x00000000, BMT_NO_APPEND0x01);
2537 offset += 1;
2538
2539 proto_tree_add_item(tree, hf_cmp_mipi_csi2_reserved2, tvb, offset, 1, ENC_NA0x00000000);
2540 offset += 1;
2541
2542 static int * const asam_cmp_mipi_ecc[] = {
2543 &hf_cmp_mipi_csi2_ecc_res,
2544 &hf_cmp_mipi_csi2_ecc_ecc,
2545 NULL((void*)0)
2546 };
2547
2548 proto_tree_add_bitmask_with_flags(tree, tvb, offset, hf_cmp_mipi_csi2_ecc, ett_asam_cmp_payload_flags, asam_cmp_mipi_ecc, ENC_NA0x00000000, BMT_NO_APPEND0x01);
2549 offset += 1;
2550
2551 proto_tree_add_item(tree, hf_cmp_mipi_csi2_cs, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2552 offset += 2;
2553
2554 if (asam_cmp_mipi_csi_short_packet) {
2555 proto_tree_add_item(tree, hf_cmp_mipi_csi2_short_packet_data, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2556 offset += 2;
2557 } else {
2558 uint32_t word_count;
2559 proto_tree_add_item_ret_uint(tree, hf_cmp_mipi_csi2_wc, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &word_count);
2560 offset += 2;
2561
2562 proto_tree_add_item(tree, hf_cmp_mipi_csi2_data, tvb, offset, word_count, ENC_NA0x00000000);
2563 offset += word_count;
2564 }
2565
2566 return offset;
2567}
2568
2569static uint32_t
2570dissect_asam_cmp_data_msg_raw_ethernet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *root_tree) {
2571 uint32_t offset = 0;
2572
2573 static int * const asam_cmp_raw_ethernet_flags[] = {
2574 &hf_cmp_raw_eth_flag_reserved,
2575 NULL((void*)0)
2576 };
2577
2578 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_eth_flags, ett_asam_cmp_payload_flags, asam_cmp_raw_ethernet_flags, ENC_BIG_ENDIAN0x00000000);
2579 offset += 2;
2580
2581 proto_tree_add_item(tree, hf_cmp_eth_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2582 offset += 2;
2583
2584 uint32_t msg_payload_type_length;
2585 proto_tree_add_item_ret_uint(tree, hf_cmp_eth_payload_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &msg_payload_type_length);
2586 offset += 2;
2587
2588 uint32_t payload_end = offset + msg_payload_type_length;
2589
2590 uint32_t preamble_length = 0;
2591 while ((preamble_length < msg_payload_type_length) && (CMP_ETH_RAW_PREAMBLE0x55 == tvb_get_uint8(tvb, offset + preamble_length))) {
2592 preamble_length += 1;
2593 }
2594
2595 if (preamble_length > 0) {
2596 proto_tree_add_item(tree, hf_cmp_raw_eth_preamble, tvb, offset, preamble_length, ENC_NA0x00000000);
2597 offset += preamble_length;
2598
2599 if (offset < payload_end) {
2600 uint8_t sfd_candidate = tvb_get_uint8(tvb, offset);
2601
2602 if (try_val_to_str(sfd_candidate, eth_raw_sfd) != NULL((void*)0)) {
2603 proto_tree_add_item(tree, hf_cmp_raw_eth_sfd, tvb, offset, 1, ENC_BIG_ENDIAN0x00000000);
2604 offset += 1;
2605
2606 if (offset < payload_end) {
2607 uint32_t bytes_left = msg_payload_type_length - preamble_length - 1;
2608
2609 if (bytes_left > 0) {
2610 if (sfd_candidate == CMP_ETH_RAW_SFD_ORIG0xD5) {
2611 call_asam_cmp_ethernet(tvb_new_subset_length(tvb, offset, bytes_left), pinfo, tree, root_tree);
2612 } else {
2613 proto_tree_add_item(tree, hf_cmp_raw_eth_mpacket, tvb, offset, bytes_left, ENC_NA0x00000000);
2614 }
2615 offset += (int)bytes_left;
2616 }
2617 }
2618 }
2619 }
2620 }
2621
2622 return offset;
2623}
2624
2625static uint32_t
2626dissect_asam_cmp_data_msg_10baset1s_symbols(tvbuff_t *tvb, proto_tree *tree) {
2627 uint32_t offset = 0;
2628
2629 static int * const asam_cmp_10baset1s_flags[] = {
2630 &hf_cmp_10t1s_symb_flag_first_beacon,
2631 &hf_cmp_10t1s_symb_flag_res,
2632 &hf_cmp_10t1s_symb_flag_miss_beacon,
2633 &hf_cmp_10t1s_symb_flag_decode_err,
2634 NULL((void*)0)
2635 };
2636
2637 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_10t1s_symb_flags, ett_asam_cmp_payload_flags, asam_cmp_10baset1s_flags, ENC_BIG_ENDIAN0x00000000);
2638 offset += 2;
2639
2640 uint32_t msg_payload_type_length;
2641 proto_tree_add_item_ret_uint(tree, hf_cmp_10t1s_symb_data_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &msg_payload_type_length);
2642 offset += 2;
2643
2644 proto_item *ti = proto_tree_add_item(tree, hf_cmp_10t1s_symb_data, tvb, offset, msg_payload_type_length, ENC_NA0x00000000);
2645 proto_tree *data_tree = proto_item_add_subtree(ti, ett_asam_cmp_payload_data);
2646 for (uint32_t i = 0; i < msg_payload_type_length; i++) {
2647 proto_tree_add_item(data_tree, hf_cmp_10t1s_symb_data_symbol, tvb, offset, 1, ENC_NA0x00000000);
2648 offset += 1;
2649 }
2650
2651 return offset;
2652}
2653
2654static uint32_t
2655dissect_asam_cmp_data_msg_a2b(tvbuff_t *tvb, proto_tree *tree) {
2656 uint32_t offset = 0;
2657
2658 static int * const asam_cmp_a2b_flags[] = {
2659 &hf_cmp_a2b_flag_i2c_err,
2660 &hf_cmp_a2b_flag_icrc_err,
2661 &hf_cmp_a2b_flag_srfcrc_err,
2662 &hf_cmp_a2b_flag_srf_err,
2663 &hf_cmp_a2b_flag_becovf_err,
2664 &hf_cmp_a2b_flag_pwd_err,
2665 &hf_cmp_a2b_flag_dp_err,
2666 &hf_cmp_a2b_flag_crc_err,
2667 &hf_cmp_a2b_flag_dd_err,
2668 &hf_cmp_a2b_flag_hdcnt_err,
2669 &hf_cmp_a2b_flag_fault_nloc,
2670 &hf_cmp_a2b_flag_fault_code,
2671 &hf_cmp_a2b_flag_fault_err,
2672 &hf_cmp_a2b_flag_fin,
2673 NULL((void*)0)
2674 };
2675
2676 static int * const asam_cmp_a2b_upstream_settings[] = {
2677 &hf_cmp_a2b_upstream_set_upoffset,
2678 &hf_cmp_a2b_upstream_set_upslots,
2679 &hf_cmp_a2b_upstream_set_upsize,
2680 &hf_cmp_a2b_upstream_set_ups,
2681 &hf_cmp_a2b_upstream_set_upfmt,
2682 NULL((void*)0)
2683 };
2684
2685 static int * const asam_cmp_a2b_downstream_settings[] = {
2686 &hf_cmp_a2b_downstream_set_dnoffset,
2687 &hf_cmp_a2b_downstream_set_dnslots,
2688 &hf_cmp_a2b_downstream_set_dnsize,
2689 &hf_cmp_a2b_downstream_set_dns,
2690 &hf_cmp_a2b_downstream_set_dnfmt,
2691 NULL((void*)0)
2692 };
2693
2694 static int * const asam_cmp_a2b_general_settings[] = {
2695 &hf_cmp_a2b_general_set_raw_cap,
2696 &hf_cmp_a2b_general_set_reserved,
2697 &hf_cmp_a2b_general_set_rrsoffset,
2698 &hf_cmp_a2b_general_set_rrdiv,
2699 &hf_cmp_a2b_general_set_syncoffset,
2700 &hf_cmp_a2b_general_set_rxoffset,
2701 &hf_cmp_a2b_general_set_txoffset,
2702 &hf_cmp_a2b_general_set_i2srate,
2703 &hf_cmp_a2b_general_set_bclkrate,
2704 &hf_cmp_a2b_general_set_bmmen,
2705 &hf_cmp_a2b_general_set_tdmss,
2706 &hf_cmp_a2b_general_set_tdmmode,
2707 &hf_cmp_a2b_general_set_rx2pintl,
2708 &hf_cmp_a2b_general_set_tx2pintl,
2709 &hf_cmp_a2b_general_set_discvd,
2710 &hf_cmp_a2b_general_set_endsniff,
2711 &hf_cmp_a2b_general_set_standby,
2712 &hf_cmp_a2b_general_set_mstr,
2713 NULL((void*)0)
2714 };
2715
2716 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_a2b_flags, ett_asam_cmp_payload_flags, asam_cmp_a2b_flags, ENC_BIG_ENDIAN0x00000000);
2717 offset += 2;
2718
2719 proto_tree_add_item(tree, hf_cmp_a2b_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2720 offset += 2;
2721
2722 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_a2b_upstream_set, ett_asam_cmp_a2b_upstream_settings, asam_cmp_a2b_upstream_settings, ENC_BIG_ENDIAN0x00000000);
2723 offset += 2;
2724
2725 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_a2b_downstream_set, ett_asam_cmp_a2b_downstream_settings, asam_cmp_a2b_downstream_settings, ENC_BIG_ENDIAN0x00000000);
2726 offset += 2;
2727
2728 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_a2b_general_set, ett_asam_cmp_a2b_general_settings, asam_cmp_a2b_general_settings, ENC_BIG_ENDIAN0x00000000);
2729 offset += 8;
2730
2731 uint32_t msg_payload_type_length;
2732 proto_tree_add_item_ret_uint(tree, hf_cmp_a2b_data_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &msg_payload_type_length);
2733 offset += 2;
2734
2735 if (msg_payload_type_length > 0) {
2736 proto_tree_add_item(tree, hf_cmp_a2b_data, tvb, offset, msg_payload_type_length, ENC_NA0x00000000);
2737 offset += msg_payload_type_length;
2738 }
2739
2740 return offset;
2741}
2742
2743static uint32_t
2744dissect_asam_cmp_data_msg_link_state(tvbuff_t *tvb, proto_tree *tree, bool_Bool tx) {
2745 uint32_t offset = 0;
2746
2747 static int * const asam_cmp_link_state_flags_cap[] = {
2748 &hf_cmp_link_state_flag_reserved,
2749 &hf_cmp_link_state_flag_link_err,
2750 NULL((void*)0)
2751 };
2752
2753 static int * const asam_cmp_link_state_flags_tx[] = {
2754 &hf_cmp_link_state_flag_reserved_tx,
2755 NULL((void*)0)
2756 };
2757
2758 if (tx) {
2759 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_link_state_flags, ett_asam_cmp_payload_flags, asam_cmp_link_state_flags_tx, ENC_BIG_ENDIAN0x00000000);
2760 } else {
2761 proto_tree_add_bitmask(tree, tvb, offset, hf_cmp_link_state_flags, ett_asam_cmp_payload_flags, asam_cmp_link_state_flags_cap, ENC_BIG_ENDIAN0x00000000);
2762 }
2763 offset += 2;
2764
2765 proto_tree_add_item(tree, hf_cmp_link_state_interface_status, tvb, offset, 1, ENC_NA0x00000000);
2766 offset += 1;
2767
2768 proto_tree_add_item(tree, hf_cmp_link_state_reserved, tvb, offset, 1, ENC_NA0x00000000);
2769 offset += 1;
2770
2771
2772 return offset;
2773}
2774
2775static uint32_t
2776dissect_asam_cmp_data_msg_user_defined(tvbuff_t *tvb, proto_tree *tree) {
2777 uint32_t offset = 0;
2778
2779 proto_tree_add_item(tree, hf_cmp_vendor_def_vendor_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2780 offset += 2;
2781
2782 proto_tree_add_item(tree, hf_cmp_vendor_def_vendor_payload_type, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
2783 offset += 2;
2784
2785 proto_tree_add_item(tree, hf_cmp_vendor_def_vendor_payload_data, tvb, offset, tvb_captured_length_remaining(tvb, offset), ENC_NA0x00000000);
2786 offset += tvb_captured_length_remaining(tvb, offset);
2787
2788 return offset;
2789}
2790
2791static uint32_t
2792dissect_asam_cmp_data_msg_payload(tvbuff_t *payload_tvb, packet_info *pinfo, proto_tree *tree, proto_tree *root_tree, uint32_t msg_payload_type, uint32_t interface_id, bool_Bool tx) {
2793 uint32_t offset = 0;
2794 uint32_t msg_payload_length = tvb_captured_length(payload_tvb);
2795
2796 switch (msg_payload_type) {
2797 case CMP_DATA_MSG_INVALID0x00:
2798 if (msg_payload_length > 0) {
2799 call_data_dissector(payload_tvb, pinfo, tree);
2800 offset += tvb_captured_length(payload_tvb);
2801 }
2802 break;
2803
2804 case CMP_DATA_MSG_CAN0x01:
2805 offset += dissect_asam_cmp_data_msg_can(payload_tvb, pinfo, tree, interface_id, tx);
2806 break;
2807
2808 case CMP_DATA_MSG_CANFD0x02:
2809 offset += dissect_asam_cmp_data_msg_canfd(payload_tvb, pinfo, tree, interface_id, tx);
2810 break;
2811
2812 case CMP_DATA_MSG_LIN0x03:
2813 offset += dissect_asam_cmp_data_msg_lin(payload_tvb, pinfo, tree, interface_id, tx);
2814 break;
2815
2816 case CMP_DATA_MSG_FLEXRAY0x04:
2817 offset += dissect_asam_cmp_data_msg_flexray(payload_tvb, pinfo, tree, interface_id, tx);
2818 break;
2819
2820 case CMP_DATA_MSG_DIGITAL0x05:
2821 offset += dissect_asam_cmp_data_msg_digital(payload_tvb, pinfo, tree);
2822 break;
2823
2824 case CMP_DATA_MSG_UART_RS_2320x06:
2825 offset += dissect_asam_cmp_data_msg_uart(payload_tvb, pinfo, tree);
2826 break;
2827
2828 case CMP_DATA_MSG_ANALOG0x07:
2829 offset += dissect_asam_cmp_data_msg_analog(payload_tvb, tree);
2830 break;
2831
2832 case CMP_DATA_MSG_ETHERNET0x08:
2833 offset += dissect_asam_cmp_data_msg_ethernet(payload_tvb, pinfo, tree, root_tree, tx);
2834 break;
2835
2836 case CMP_DATA_MSG_SPI0x09:
2837 offset += dissect_asam_cmp_data_msg_spi(payload_tvb, tree);
2838 break;
2839
2840 case CMP_DATA_MSG_I2C0x0A:
2841 offset += dissect_asam_cmp_data_msg_i2c(payload_tvb, tree);
2842 break;
2843
2844 case CMP_DATA_MSG_GIGEVISION0x0B:
2845 offset += dissect_asam_cmp_data_msg_gige_vision(payload_tvb, tree);
2846 break;
2847
2848 case CMP_DATA_MSG_MIPI_CSI20x0C:
2849 offset += dissect_asam_cmp_data_msg_mipi_csi2(payload_tvb, tree, tx);
2850 break;
2851
2852 case CMP_DATA_MSG_RAW_ETHERNET0x0D:
2853 offset += dissect_asam_cmp_data_msg_raw_ethernet(payload_tvb, pinfo, tree, root_tree);
2854 break;
2855
2856 case CMP_DATA_MSG_10BASE_T1S_SYMBOL0x0E:
2857 offset += dissect_asam_cmp_data_msg_10baset1s_symbols(payload_tvb, tree);
2858 break;
2859
2860 case CMP_DATA_MSG_A2B0x0F:
2861 offset += dissect_asam_cmp_data_msg_a2b(payload_tvb, tree);
2862 break;
2863
2864 case CMP_DATA_MSG_LINK_STATE0xFE:
2865 offset += dissect_asam_cmp_data_msg_link_state(payload_tvb, tree, tx);
2866 break;
2867
2868 case CMP_DATA_MSG_VENDOR_DATA_MSG0xFF:
2869 offset += dissect_asam_cmp_data_msg_user_defined(payload_tvb, tree);
2870 break;
2871
2872 default:
2873 offset += tvb_captured_length(payload_tvb);
2874 break;
2875 }
2876
2877 return offset;
2878}
2879
2880static void
2881dissect_asam_cmp_data_msg_transmission_options(tvbuff_t *tvb, proto_tree *tree, uint8_t payload_type) {
2882
2883 static int * const trans_opts_default[] = {
2884 &hf_cmp_msg_trans_opts_res,
2885 NULL((void*)0)
2886 };
2887
2888 static int * const trans_opts_lin[] = {
2889 &hf_cmp_msg_trans_opts_lin_wup_dura,
2890 &hf_cmp_msg_trans_opts_lin_res,
2891 NULL((void*)0)
2892 };
2893
2894 static int * const trans_opts_flexray[] = {
2895 &hf_cmp_msg_trans_opts_fr_op,
2896 &hf_cmp_msg_trans_opts_fr_cycle_rep,
2897 &hf_cmp_msg_trans_opts_fr_res,
2898 NULL((void*)0)
2899 };
2900
2901 switch (payload_type) {
2902 case CMP_DATA_MSG_LIN0x03:
2903 proto_tree_add_bitmask(tree, tvb, 0, hf_cmp_msg_trans_opts, ett_asam_cmp_trans_opts, trans_opts_lin, ENC_BIG_ENDIAN0x00000000);
2904 break;
2905
2906 case CMP_DATA_MSG_FLEXRAY0x04:
2907 proto_tree_add_bitmask(tree, tvb, 0, hf_cmp_msg_trans_opts, ett_asam_cmp_trans_opts, trans_opts_flexray, ENC_BIG_ENDIAN0x00000000);
2908 break;
2909
2910 default:
2911 proto_tree_add_bitmask(tree, tvb, 0, hf_cmp_msg_trans_opts, ett_asam_cmp_trans_opts, trans_opts_default, ENC_BIG_ENDIAN0x00000000);
2912 }
2913}
2914
2915static int
2916dissect_asam_cmp_data_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree *tree, unsigned offset_orig, bool_Bool tx) {
2917 proto_item *ti = NULL((void*)0);
2918 proto_item *ti_msg_header = NULL((void*)0);
2919 proto_item *ti_msg_payload = NULL((void*)0);
2920 proto_tree *asam_cmp_data_msg_header_tree = NULL((void*)0);
2921 proto_tree *asam_cmp_data_msg_payload_tree = NULL((void*)0);
2922 proto_tree *subtree = NULL((void*)0);
2923 unsigned offset = offset_orig;
2924
2925 unsigned msg_payload_type = 0;
2926 unsigned msg_payload_length = 0;
2927 unsigned interface_id = 0;
2928
2929 static int * const asam_cmp_common_flags_cap[] = {
2930 &hf_cmp_common_flag_reserved,
2931 &hf_cmp_common_flag_err_in_payload,
2932 &hf_cmp_common_flag_overflow,
2933 &hf_cmp_common_flag_dir_on_if,
2934 &hf_cmp_common_flag_seg,
2935 &hf_cmp_common_flag_insync,
2936 &hf_cmp_common_flag_recal,
2937 NULL((void*)0)
2938 };
2939
2940 static int * const asam_cmp_common_flags_tx[] = {
2941 &hf_cmp_common_flag_reserved_0xf0,
2942 &hf_cmp_common_flag_seg,
2943 &hf_cmp_common_flag_reserved_0x02,
2944 &hf_cmp_common_flag_relative,
2945 NULL((void*)0)
2946 };
2947
2948 /* Testing for Ethernet Padding */
2949 if ( (!tx && tvb_get_uint8(tvb, offset + 13) == 0) || (tx && tvb_get_uint8(tvb, offset + 21) == 0)) {
2950 return 0;
2951 }
2952
2953 ti_msg_header = proto_tree_add_item(tree, hf_cmp_msg_header, tvb, offset, 8, ENC_BIG_ENDIAN0x00000000);
2954 asam_cmp_data_msg_header_tree = proto_item_add_subtree(ti_msg_header, ett_asam_cmp_header);
2955 proto_item_append_text(ti_msg_header, " %s", "- Data Message");
2956
2957 uint64_t ns = tvb_get_uint64(tvb, offset, ENC_BIG_ENDIAN0x00000000);
2958 nstime_t timestamp = { .secs = (time_t)(ns / 1000000000), .nsecs = (int)(ns % 1000000000) };
2959
2960 ti = proto_tree_add_time(asam_cmp_data_msg_header_tree, hf_cmp_msg_timestamp, tvb, offset, 8, &timestamp);
2961 subtree = proto_item_add_subtree(ti, ett_asam_cmp_timestamp);
2962 proto_tree_add_item(subtree, hf_cmp_msg_timestamp_ns, tvb, offset, 8, ENC_BIG_ENDIAN0x00000000);
2963 offset += 8;
2964
2965 if (tx) {
2966 /* Deadline */
2967 proto_tree_add_item(asam_cmp_data_msg_header_tree, hf_cmp_msg_deadline, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
2968 offset += 4;
2969 }
2970
2971 ti = proto_tree_add_item_ret_uint(asam_cmp_data_msg_header_tree, hf_cmp_interface_id, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000, &interface_id);
2972 add_interface_id_text(ti, interface_id);
2973 offset += 4;
2974
2975 if (tx) {
2976 /* Transmission Options */
2977 // peek into msg_payload_type
2978 dissect_asam_cmp_data_msg_transmission_options(tvb_new_subset_length(tvb, offset, 4), asam_cmp_data_msg_header_tree, tvb_get_uint8(tvb, offset + 5));
2979 offset += 4;
2980
2981 proto_tree_add_bitmask(asam_cmp_data_msg_header_tree, tvb, offset, hf_cmp_msg_common_flags, ett_asam_cmp_common_flags, asam_cmp_common_flags_tx, ENC_BIG_ENDIAN0x00000000);
2982 offset += 1;
2983 } else {
2984 proto_tree_add_bitmask(asam_cmp_data_msg_header_tree, tvb, offset, hf_cmp_msg_common_flags, ett_asam_cmp_common_flags, asam_cmp_common_flags_cap, ENC_BIG_ENDIAN0x00000000);
2985 offset += 1;
2986 }
2987
2988 proto_tree_add_item_ret_uint(asam_cmp_data_msg_header_tree, hf_cmp_payload_type, tvb, offset, 1, ENC_NA0x00000000, &msg_payload_type);
2989 offset += 1;
2990
2991 proto_tree_add_item_ret_uint(asam_cmp_data_msg_header_tree, hf_cmp_msg_payload_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &msg_payload_length);
2992 offset += 2;
2993
2994 proto_item_set_end(ti_msg_header, tvb, offset);
2995
2996 ti_msg_payload = proto_tree_add_item(tree, hf_cmp_msg_payload, tvb, offset, msg_payload_length, ENC_BIG_ENDIAN0x00000000);
2997 asam_cmp_data_msg_payload_tree = proto_item_add_subtree(ti_msg_payload, ett_asam_cmp_header);
2998 proto_item_append_text(ti_msg_payload, " %s", "- Data Message");
2999
3000 const char *msg_payload_name = try_val_to_str(msg_payload_type, data_msg_type_names);
3001 if (msg_payload_name != NULL((void*)0)) {
3002 col_append_fstr(pinfo->cinfo, COL_INFO, " (%s)", msg_payload_name);
3003 proto_item_append_text(ti_msg_payload, " (%s)", msg_payload_name);
3004 }
3005
3006 tvbuff_t *payload_tvb = tvb_new_subset_length(tvb, offset, msg_payload_length);
3007
3008 offset += dissect_asam_cmp_data_msg_payload(payload_tvb, pinfo, asam_cmp_data_msg_payload_tree, root_tree, msg_payload_type, interface_id, tx);
3009
3010 uint8_t header_len = tx ? CMP_MSG_HEADER_LEN_TX24 : CMP_MSG_HEADER_LEN16;
3011 if ((header_len + msg_payload_length) < (offset - offset_orig)) {
3012 proto_tree_add_expert(tree, pinfo, &ei_asam_cmp_length_mismatch, tvb, offset_orig + header_len, msg_payload_length);
3013 proto_item_set_end(ti_msg_payload, tvb, offset);
3014 }
3015
3016 return header_len + msg_payload_length;
3017}
3018
3019static int
3020dissect_asam_cmp_ctrl_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, unsigned offset_orig) {
3021
3022 proto_item *ti = NULL((void*)0);
3023 proto_item *ti_msg_header = NULL((void*)0);
3024 proto_item *ti_msg_payload = NULL((void*)0);
3025 proto_tree *asam_cmp_ctrl_msg_header_tree = NULL((void*)0);
3026 proto_tree *asam_cmp_ctrl_msg_payload_tree = NULL((void*)0);
3027 proto_tree *subtree = NULL((void*)0);
3028 unsigned asam_cmp_ctrl_msg_payload_type = 0;
3029 unsigned asam_cmp_ctrl_msg_payload_length = 0;
3030 unsigned offset = offset_orig;
3031
3032 static int * const asam_cmp_common_flags[] = {
3033 &hf_cmp_common_flag_reserved_0xf0,
3034 &hf_cmp_common_flag_seg,
3035 &hf_cmp_common_flag_insync,
3036 &hf_cmp_common_flag_recal,
3037 NULL((void*)0)
3038 };
3039
3040 /* Testing for Ethernet Padding */
3041 if (tvb_get_uint8(tvb, offset + 13) == 0) {
3042 return 0;
3043 }
3044
3045 ti_msg_header = proto_tree_add_item(tree, hf_cmp_msg_header, tvb, offset, 8, ENC_BIG_ENDIAN0x00000000);
3046 asam_cmp_ctrl_msg_header_tree = proto_item_add_subtree(ti_msg_header, ett_asam_cmp_header);
3047 proto_item_append_text(ti_msg_header, " %s", "- Control Message");
3048
3049 uint64_t ns = tvb_get_uint64(tvb, offset, ENC_BIG_ENDIAN0x00000000);
3050 nstime_t timestamp = { .secs = (time_t)(ns / 1000000000), .nsecs = (int)(ns % 1000000000) };
3051
3052 ti = proto_tree_add_time(asam_cmp_ctrl_msg_header_tree, hf_cmp_msg_timestamp, tvb, offset, 8, &timestamp);
3053
3054 subtree = proto_item_add_subtree(ti, ett_asam_cmp_timestamp);
3055 proto_tree_add_item(subtree, hf_cmp_msg_timestamp_ns, tvb, offset, 8, ENC_BIG_ENDIAN0x00000000);
3056 offset += 8;
3057
3058 proto_tree_add_item(asam_cmp_ctrl_msg_header_tree, hf_cmp_ctrl_msg_reserved, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3059 offset += 4;
3060
3061 proto_tree_add_bitmask(asam_cmp_ctrl_msg_header_tree, tvb, offset, hf_cmp_msg_common_flags, ett_asam_cmp_common_flags, asam_cmp_common_flags, ENC_BIG_ENDIAN0x00000000);
3062 offset += 1;
3063
3064 proto_tree_add_item_ret_uint(asam_cmp_ctrl_msg_header_tree, hf_cmp_ctrl_msg_payload_type, tvb, offset, 1, ENC_NA0x00000000, &asam_cmp_ctrl_msg_payload_type);
3065 offset += 1;
3066
3067 proto_tree_add_item_ret_uint(asam_cmp_ctrl_msg_header_tree, hf_cmp_msg_payload_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &asam_cmp_ctrl_msg_payload_length);
3068 offset += 2;
3069
3070 proto_item_set_end(ti_msg_header, tvb, offset);
3071
3072 ti_msg_payload = proto_tree_add_item(tree, hf_cmp_msg_payload, tvb, offset, asam_cmp_ctrl_msg_payload_length, ENC_BIG_ENDIAN0x00000000);
3073 asam_cmp_ctrl_msg_payload_tree = proto_item_add_subtree(ti_msg_payload, ett_asam_cmp_header);
3074 proto_item_append_text(ti_msg_payload, " %s", "- Control Message");
3075
3076 switch (asam_cmp_ctrl_msg_payload_type) {
3077 case CMP_CTRL_MSG_INVALID0x00:
3078 col_append_str(pinfo->cinfo, COL_INFO, " (Invalid/Padding)");
3079 proto_item_append_text(ti_msg_payload, " %s", "(Invalid/Padding)");
3080 proto_item_set_end(ti_msg_payload, tvb, offset + asam_cmp_ctrl_msg_payload_length);
3081
3082 return tvb_reported_length_remaining(tvb, offset_orig);
3083
3084 case CMP_CTRL_MSG_DSR_CTRL_MSG0x01:
3085 col_append_str(pinfo->cinfo, COL_INFO, " (Data Sink Ready)");
3086 proto_item_append_text(ti_msg_payload, " %s", "(Data Sink Ready)");
3087
3088 proto_tree_add_item(asam_cmp_ctrl_msg_payload_tree, hf_cmp_ctrl_msg_device_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3089 offset += 2;
3090
3091 break;
3092
3093 case CMP_CTRL_MSG_USER_EVENT_CTRL_MSG0xFE:
3094 col_append_str(pinfo->cinfo, COL_INFO, " (User Event)");
3095 proto_item_append_text(ti_msg_payload, " %s", "(User Event)");
3096
3097 proto_tree_add_item(asam_cmp_ctrl_msg_payload_tree, hf_cmp_ctrl_msg_event_id, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3098 offset += 4;
3099
3100 break;
3101
3102 case CMP_CTRL_MSG_VENDOR_CTRL_MSG0xFF:
3103 col_append_str(pinfo->cinfo, COL_INFO, " (Vendor specific)");
3104 proto_item_append_text(ti_msg_payload, " %s", "(Vendor specific)");
3105
3106 proto_tree_add_item(asam_cmp_ctrl_msg_payload_tree, hf_cmp_ctrl_msg_vendor_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3107 offset += 2;
3108
3109 proto_tree_add_item(asam_cmp_ctrl_msg_payload_tree, hf_cmp_ctrl_msg_vendor_payload_type, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3110 offset += 2;
3111
3112 if (asam_cmp_ctrl_msg_payload_length > 4) {
3113 tvbuff_t *sub_tvb = tvb_new_subset_length(tvb, offset, asam_cmp_ctrl_msg_payload_length - 4);
3114 call_data_dissector(sub_tvb, pinfo, tree);
3115 offset += asam_cmp_ctrl_msg_payload_length - 4;
3116 }
3117 break;
3118
3119 default:
3120 if (asam_cmp_ctrl_msg_payload_length > 0) {
3121 offset += (int)asam_cmp_ctrl_msg_payload_length;
3122 }
3123
3124 proto_item_set_end(ti_msg_payload, tvb, offset);
3125 break;
3126 }
3127
3128 if ((CMP_MSG_HEADER_LEN16 + asam_cmp_ctrl_msg_payload_length) < (offset - offset_orig)) {
3129 proto_tree_add_expert(tree, pinfo, &ei_asam_cmp_length_mismatch, tvb, offset_orig + CMP_MSG_HEADER_LEN16, asam_cmp_ctrl_msg_payload_length);
3130 proto_item_set_end(ti_msg_payload, tvb, offset);
3131 }
3132
3133 return CMP_MSG_HEADER_LEN16 + asam_cmp_ctrl_msg_payload_length;
3134}
3135
3136/* Technica Engineering vendor data in the CM Status Message */
3137static const unit_name_string units_technica_mbit = { " Mbit", NULL((void*)0) };
3138static const unit_name_string units_technica_gbit = { " Gbit", NULL((void*)0) };
3139
3140static const true_false_string tfs_technica_buffer_overflow = {
3141 "Buffer Overflow occurred",
3142 "No Buffer Overflow occurred"
3143};
3144
3145#define CMP_TECHNICA_TEMP_LEGACY_NA(-128) (-128) /* 0x80 */
3146#define CMP_TECHNICA_TEMP_LEGACY_MAX127 127 /* 0x7f: 127 or more */
3147#define CMP_TECHNICA_VD_LEGACY_LEN10 10
3148#define CMP_TECHNICA_VD_MIN_LEN12 12
3149#define CMP_TECHNICA_VD_MEAS_LEN24 24
3150
3151static void
3152dissect_asam_cmp_status_technica_temp_legacy(tvbuff_t *tvb, proto_tree *tree, int hf, unsigned offset) {
3153 int8_t temperature = tvb_get_int8(tvb, offset);
3154
3155 if (temperature == CMP_TECHNICA_TEMP_LEGACY_NA(-128)) {
3156 proto_tree_add_int_format_value(tree, hf, tvb, offset, 1, temperature, "Not Available");
3157 } else {
3158 proto_item *ti = proto_tree_add_item(tree, hf, tvb, offset, 1, ENC_NA0x00000000);
3159 if (temperature == CMP_TECHNICA_TEMP_LEGACY_MAX127) {
3160 proto_item_append_text(ti, " or more");
3161 }
3162 }
3163}
3164
3165static void
3166dissect_asam_cmp_status_technica_float(tvbuff_t *tvb, proto_tree *tree, int hf, unsigned offset) {
3167 proto_item *ti = proto_tree_add_item(tree, hf, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3168
3169 if (isnan(tvb_get_ieee_float(tvb, offset, ENC_BIG_ENDIAN))__builtin_isnan (tvb_get_ieee_float(tvb, offset, 0x00000000))) {
3170 proto_item_append_text(ti, " (Not Available)");
3171 }
3172}
3173
3174/* Returns true, if the vendor data was dissected. */
3175static bool_Bool
3176dissect_asam_cmp_status_vendor_data_technica(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, unsigned offset_orig, unsigned length) {
3177 static int * const meas_flags[] = {
3178 &hf_cmp_status_technica_meas_flag_res,
3179 &hf_cmp_status_technica_meas_flag_ovfl,
3180 NULL((void*)0)
3181 };
3182
3183 unsigned offset = offset_orig;
3184 unsigned end = offset_orig + length;
3185 proto_item *ti;
3186 proto_tree *vd_tree;
3187
3188 if (length != CMP_TECHNICA_VD_LEGACY_LEN10 && length < CMP_TECHNICA_VD_MIN_LEN12) {
3189 return false0;
3190 }
3191
3192 if (length == CMP_TECHNICA_VD_LEGACY_LEN10) {
3193 unsigned volt_int;
3194 unsigned volt_frac;
3195
3196 ti = proto_tree_add_bytes_format_value(tree, hf_cmp_status_vendor_data, tvb, offset, length, NULL((void*)0), "Technica Engineering, Legacy");
3197 vd_tree = proto_item_add_subtree(ti, ett_asam_cmp_status_technica);
3198
3199 ti = proto_tree_add_item(vd_tree, hf_cmp_status_technica_leg_fill_level, tvb, offset, 1, ENC_NA0x00000000);
3200 proto_item_append_text(ti, "%%");
3201 offset += 1;
3202
3203 proto_tree_add_item(vd_tree, hf_cmp_status_technica_leg_overflow, tvb, offset, 1, ENC_NA0x00000000);
3204 offset += 1;
3205
3206 proto_tree_add_item(vd_tree, hf_cmp_status_technica_leg_buf_s_gbit, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3207 offset += 4;
3208
3209 proto_tree_add_item_ret_uint(vd_tree, hf_cmp_status_technica_leg_voltage_int, tvb, offset, 1, ENC_NA0x00000000, &volt_int);
3210 proto_tree_add_item_ret_uint(vd_tree, hf_cmp_status_technica_leg_voltage_frac, tvb, offset + 1, 1, ENC_NA0x00000000, &volt_frac);
3211 ti = proto_tree_add_double(vd_tree, hf_cmp_status_technica_leg_voltage, tvb, offset, 2, (double)volt_int + volt_frac / 100.0);
3212 proto_item_set_generated(ti);
3213 offset += 2;
3214
3215 dissect_asam_cmp_status_technica_temp_legacy(tvb, vd_tree, hf_cmp_status_technica_leg_temp_chassis, offset);
3216 offset += 1;
3217
3218 dissect_asam_cmp_status_technica_temp_legacy(tvb, vd_tree, hf_cmp_status_technica_leg_temp_silicon, offset);
3219 return true1;
3220 }
3221
3222 uint32_t meas_size;
3223 uint32_t props_size;
3224
3225 if (tvb_get_uint8(tvb, offset) != 1) {
3226 /* unknown major version, we do not know the layout */
3227 return false0;
3228 }
3229
3230 ti = proto_tree_add_bytes_format_value(tree, hf_cmp_status_vendor_data, tvb, offset, length, NULL((void*)0), "Technica Engineering");
3231 vd_tree = proto_item_add_subtree(ti, ett_asam_cmp_status_technica);
3232
3233 proto_tree_add_item(vd_tree, hf_cmp_status_technica_major, tvb, offset, 1, ENC_NA0x00000000);
3234 offset += 1;
3235 proto_tree_add_item(vd_tree, hf_cmp_status_technica_minor, tvb, offset, 1, ENC_NA0x00000000);
3236 offset += 1;
3237 proto_tree_add_item(vd_tree, hf_cmp_status_technica_product_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3238 offset += 2;
3239
3240 proto_tree_add_item(vd_tree, hf_cmp_status_technica_reserved, tvb, offset, 2, ENC_NA0x00000000);
3241 offset += 2;
3242
3243 proto_tree_add_item_ret_uint(vd_tree, hf_cmp_status_technica_meas_size, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &meas_size);
3244 offset += 2;
3245
3246 /* measurements data, reserved (2) and properties size (2) must follow */
3247 if (meas_size > end - offset || end - offset - meas_size < 4) {
3248 proto_tree_add_expert(vd_tree, pinfo, &ei_asam_cmp_length_mismatch, tvb, offset, end - offset);
3249 return true1;
3250 }
3251
3252 if (meas_size > 0) {
3253 unsigned meas_end = offset + meas_size;
3254 proto_tree *meas_tree;
3255
3256 ti = proto_tree_add_item(vd_tree, hf_cmp_status_technica_meas, tvb, offset, meas_size, ENC_NA0x00000000);
3257 meas_tree = proto_item_add_subtree(ti, ett_asam_cmp_status_technica_meas);
3258
3259 if (meas_size >= CMP_TECHNICA_VD_MEAS_LEN24) {
3260 proto_tree_add_bitmask(meas_tree, tvb, offset, hf_cmp_status_technica_meas_flags, ett_asam_cmp_status_technica_flags, meas_flags, ENC_NA0x00000000);
3261 offset += 1;
3262
3263 ti = proto_tree_add_item(meas_tree, hf_cmp_status_technica_fill_level, tvb, offset, 1, ENC_NA0x00000000);
3264 proto_item_append_text(ti, "%%");
3265 offset += 1;
3266
3267 proto_tree_add_item(meas_tree, hf_cmp_status_technica_reserved, tvb, offset, 2, ENC_NA0x00000000);
3268 offset += 2;
3269
3270 proto_tree_add_item(meas_tree, hf_cmp_status_technica_buffer_size_mbit, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3271 offset += 4;
3272
3273 dissect_asam_cmp_status_technica_float(tvb, meas_tree, hf_cmp_status_technica_voltage, offset);
3274 offset += 4;
3275
3276 proto_tree_add_item(meas_tree, hf_cmp_status_technica_reserved, tvb, offset, 4, ENC_NA0x00000000);
3277 offset += 4;
3278
3279 dissect_asam_cmp_status_technica_float(tvb, meas_tree, hf_cmp_status_technica_temp_chassis, offset);
3280 offset += 4;
3281
3282 dissect_asam_cmp_status_technica_float(tvb, meas_tree, hf_cmp_status_technica_temp_silicon, offset);
3283 offset += 4;
Value stored to 'offset' is never read
3284 }
3285 /* skip fields we do not know (newer minor versions) or a too short structure */
3286 offset = meas_end;
3287 }
3288
3289 proto_tree_add_item(vd_tree, hf_cmp_status_technica_reserved, tvb, offset, 2, ENC_NA0x00000000);
3290 offset += 2;
3291
3292 proto_tree_add_item_ret_uint(vd_tree, hf_cmp_status_technica_props_size, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &props_size);
3293 offset += 2;
3294
3295 if (props_size > end - offset) {
3296 proto_tree_add_expert(vd_tree, pinfo, &ei_asam_cmp_length_mismatch, tvb, offset, end - offset);
3297 return true1;
3298 }
3299
3300 if (props_size > 0) {
3301 unsigned props_end = offset + props_size;
3302 proto_tree *props_tree;
3303
3304 ti = proto_tree_add_item(vd_tree, hf_cmp_status_technica_props, tvb, offset, props_size, ENC_NA0x00000000);
3305 props_tree = proto_item_add_subtree(ti, ett_asam_cmp_status_technica_props);
3306
3307 while (offset < props_end) {
3308 unsigned nl_offset;
3309 bool_Bool found = tvb_find_uint8_length(tvb, offset, props_end - offset, '\n', &nl_offset);
3310 unsigned line_len = nl_offset - offset;
3311
3312 if (line_len > 0) {
3313 proto_tree_add_item(props_tree, hf_cmp_status_technica_prop, tvb, offset, line_len, ENC_UTF_80x00000002);
3314 }
3315 offset += line_len + (found ? 1 : 0);
3316 }
3317 }
3318
3319 return true1;
3320}
3321
3322static int
3323dissect_asam_cmp_status_interface_support_mask(tvbuff_t *tvb, proto_tree *tree, unsigned offset_orig, uint8_t interface_type) {
3324 unsigned offset = offset_orig;
3325 uint64_t temp = 0;
3326
3327 static int *const can_feature_support[] = {
3328 &hf_cmp_iface_feat_can_gen_err,
3329 &hf_cmp_iface_feat_can_srr_dom,
3330 &hf_cmp_iface_feat_can_r0,
3331 &hf_cmp_iface_feat_can_bit_err,
3332 &hf_cmp_iface_feat_can_eof_err,
3333 &hf_cmp_iface_feat_can_crc_del_err,
3334 &hf_cmp_iface_feat_can_stuff_err,
3335 &hf_cmp_iface_feat_can_form_err,
3336 &hf_cmp_iface_feat_can_ack_del_err,
3337 &hf_cmp_iface_feat_can_act_ack,
3338 &hf_cmp_iface_feat_can_pas_ack,
3339 &hf_cmp_iface_feat_can_ack_err,
3340 &hf_cmp_iface_feat_can_crr_err,
3341 NULL((void*)0)
3342 };
3343
3344 static int *const canfd_feature_support[] = {
3345 &hf_cmp_iface_feat_canfd_gen_err,
3346 &hf_cmp_iface_feat_canfd_esi,
3347 &hf_cmp_iface_feat_canfd_brs,
3348 &hf_cmp_iface_feat_canfd_srr_dom,
3349 &hf_cmp_iface_feat_canfd_rsvd,
3350 &hf_cmp_iface_feat_canfd_bit_err,
3351 &hf_cmp_iface_feat_canfd_eof_err,
3352 &hf_cmp_iface_feat_canfd_crc_del_err,
3353 &hf_cmp_iface_feat_canfd_stuff_err,
3354 &hf_cmp_iface_feat_canfd_form_err,
3355 &hf_cmp_iface_feat_canfd_ack_del_err,
3356 &hf_cmp_iface_feat_canfd_act_ack,
3357 &hf_cmp_iface_feat_canfd_pas_ack,
3358 &hf_cmp_iface_feat_canfd_ack_err,
3359 &hf_cmp_iface_feat_canfd_crr_err,
3360 NULL((void*)0)
3361 };
3362
3363 static int *const lin_feature_support[] = {
3364 &hf_cmp_iface_feat_lin_wup,
3365 &hf_cmp_iface_feat_lin_long_dom_err,
3366 &hf_cmp_iface_feat_lin_short_dom_err,
3367 &hf_cmp_iface_feat_lin_framing_err,
3368 &hf_cmp_iface_feat_lin_sync_err,
3369 &hf_cmp_iface_feat_lin_no_slave_resp_err,
3370 &hf_cmp_iface_feat_lin_parity_err,
3371 &hf_cmp_iface_feat_lin_coll_err,
3372 &hf_cmp_iface_feat_lin_checksum_err,
3373 NULL((void*)0)
3374 };
3375
3376 static int *const flexray_feature_support[] = {
3377 &hf_cmp_iface_feat_fr_channel,
3378 &hf_cmp_iface_feat_fr_cas,
3379 &hf_cmp_iface_feat_fr_ppi,
3380 &hf_cmp_iface_feat_fr_wus,
3381 &hf_cmp_iface_feat_fr_sync,
3382 &hf_cmp_iface_feat_fr_sf,
3383 &hf_cmp_iface_feat_fr_nf,
3384 &hf_cmp_iface_feat_fr_crc_header_err,
3385 &hf_cmp_iface_feat_fr_crc_frame_err,
3386 NULL((void*)0)
3387 };
3388
3389 static int *const eth_feature_support[] = {
3390 &hf_cmp_iface_feat_eth_fcs,
3391 &hf_cmp_iface_feat_eth_trunc,
3392 &hf_cmp_iface_feat_eth_phy_err,
3393 &hf_cmp_iface_feat_eth_too_long,
3394 &hf_cmp_iface_feat_eth_collision,
3395 &hf_cmp_iface_feat_eth_tx_port_down,
3396 &hf_cmp_iface_feat_eth_too_short,
3397 &hf_cmp_iface_feat_eth_fcs_err,
3398 NULL((void*)0)
3399 };
3400
3401 static int *const eth_10baset1s_feature_support[] = {
3402 &hf_cmp_iface_feat_10t1s_first_beacon,
3403 &hf_cmp_iface_feat_10t1s_mis_beacon,
3404 &hf_cmp_iface_feat_10t1s_sym_decode,
3405 NULL((void*)0)
3406 };
3407
3408 static int *const link_state_feature_support[] = {
3409 &hf_cmp_iface_feat_link_err,
3410 NULL((void*)0)
3411 };
3412
3413 switch (interface_type) {
3414 case CMP_DATA_MSG_CAN0x01:
3415 proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_cmp_iface_feat, ett_asam_cmp_status_feature_support, can_feature_support, ENC_BIG_ENDIAN0x00000000, &temp);
3416 break;
3417
3418 case CMP_DATA_MSG_CANFD0x02:
3419 proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_cmp_iface_feat, ett_asam_cmp_status_feature_support, canfd_feature_support, ENC_BIG_ENDIAN0x00000000, &temp);
3420 break;
3421
3422 case CMP_DATA_MSG_LIN0x03:
3423 proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_cmp_iface_feat, ett_asam_cmp_status_feature_support, lin_feature_support, ENC_BIG_ENDIAN0x00000000, &temp);
3424 break;
3425
3426 case CMP_DATA_MSG_FLEXRAY0x04:
3427 proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_cmp_iface_feat, ett_asam_cmp_status_feature_support, flexray_feature_support, ENC_BIG_ENDIAN0x00000000, &temp);
3428 break;
3429
3430 case CMP_DATA_MSG_ETHERNET0x08:
3431 proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_cmp_iface_feat, ett_asam_cmp_status_feature_support, eth_feature_support, ENC_BIG_ENDIAN0x00000000, &temp);
3432 break;
3433
3434 case CMP_DATA_MSG_RAW_ETHERNET0x0D:
3435 proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_cmp_iface_feat, ett_asam_cmp_status_feature_support, eth_feature_support, ENC_BIG_ENDIAN0x00000000, &temp);
3436 break;
3437
3438 case CMP_DATA_MSG_10BASE_T1S_SYMBOL0x0E:
3439 proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_cmp_iface_feat, ett_asam_cmp_status_feature_support, eth_10baset1s_feature_support, ENC_BIG_ENDIAN0x00000000, &temp);
3440 break;
3441
3442 case CMP_DATA_MSG_LINK_STATE0xFE:
3443 proto_tree_add_bitmask_ret_uint64(tree, tvb, offset, hf_cmp_iface_feat, ett_asam_cmp_status_feature_support, link_state_feature_support, ENC_BIG_ENDIAN0x00000000, &temp);
3444 break;
3445
3446 default:
3447 proto_tree_add_item(tree, hf_cmp_iface_feat, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3448 }
3449
3450 offset += 4;
3451
3452 return offset - offset_orig;
3453}
3454
3455static int
3456dissect_asam_cmp_status_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, unsigned offset_orig) {
3457 proto_item *ti = NULL((void*)0);
3458 proto_item *ti_msg_header = NULL((void*)0);
3459 proto_item *ti_msg_payload = NULL((void*)0);
3460 proto_item *ti_interface = NULL((void*)0);
3461 proto_item *ti_stream_ids = NULL((void*)0);
3462 proto_tree *asam_cmp_status_msg_header_tree = NULL((void*)0);
3463 proto_tree *asam_cmp_status_msg_payload_tree = NULL((void*)0);
3464 proto_tree *subtree = NULL((void*)0);
3465 proto_tree *stream_ids_subtree = NULL((void*)0);
3466 unsigned offset = offset_orig;
3467
3468 unsigned asam_cmp_status_msg_payload_type = 0;
3469 unsigned asam_cmp_status_msg_payload_length = 0;
3470 unsigned asam_cmp_status_msg_cm_dev_desc_length = 0;
3471 unsigned asam_cmp_status_msg_cm_sn_length = 0;
3472 unsigned asam_cmp_status_msg_cm_hw_ver_length = 0;
3473 unsigned asam_cmp_status_msg_cm_sw_ver_length = 0;
3474 unsigned asam_cmp_status_msg_vendor_data_length = 0;
3475 unsigned asam_cmp_status_msg_vendor_id = 0;
3476 unsigned asam_cmp_status_msg_iface_stream_id_count = 0;
3477 uint64_t uptime = 0;
3478 const char *descr = NULL((void*)0);
3479
3480 static int * const asam_cmp_common_flags[] = {
3481 &hf_cmp_common_flag_reserved_0xf0,
3482 &hf_cmp_common_flag_seg,
3483 &hf_cmp_common_flag_insync,
3484 &hf_cmp_common_flag_recal,
3485 NULL((void*)0)
3486 };
3487
3488 static int * const asam_cmp_status_cm_flags[] = {
3489 &hf_cmp_gptp_flags_reserved,
3490 &hf_cmp_gptp_flags_freq_traceable,
3491 &hf_cmp_gptp_flags_time_traceable,
3492 &hf_cmp_gptp_flags_ptp_timescale,
3493 &hf_cmp_gptp_flags_cur_utco_valid,
3494 &hf_cmp_gptp_flags_leap59,
3495 &hf_cmp_gptp_flags_leap61,
3496 NULL((void*)0)
3497 };
3498
3499 static int * const asam_cmp_status_timeloss_error_flags[] = {
3500 &hf_cmp_timeloss_error_flags_reserved,
3501 &hf_cmp_timeloss_error_flags_delta,
3502 &hf_cmp_timeloss_error_flags_insync,
3503 &hf_cmp_timeloss_error_flags_ts,
3504 NULL((void*)0)
3505 };
3506
3507 /* Testing for Ethernet Padding */
3508 if (tvb_get_uint8(tvb, offset + 13) == 0) {
3509 return 0;
3510 }
3511
3512 ti_msg_header = proto_tree_add_item(tree, hf_cmp_msg_header, tvb, offset, 16, ENC_BIG_ENDIAN0x00000000);
3513 asam_cmp_status_msg_header_tree = proto_item_add_subtree(ti_msg_header, ett_asam_cmp_header);
3514 proto_item_append_text(ti_msg_header, " %s", "- Status Message");
3515
3516 uint64_t ns = tvb_get_uint64(tvb, offset, ENC_BIG_ENDIAN0x00000000);
3517 nstime_t timestamp = { .secs = (time_t)(ns / 1000000000), .nsecs = (int)(ns % 1000000000) };
3518
3519 ti = proto_tree_add_time(asam_cmp_status_msg_header_tree, hf_cmp_msg_timestamp, tvb, offset, 8, &timestamp);
3520 subtree = proto_item_add_subtree(ti, ett_asam_cmp_timestamp);
3521 proto_tree_add_item(subtree, hf_cmp_msg_timestamp_ns, tvb, offset, 8, ENC_BIG_ENDIAN0x00000000);
3522 offset += 8;
3523
3524 proto_tree_add_item(asam_cmp_status_msg_header_tree, hf_cmp_msg_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3525 offset += 2;
3526
3527 proto_tree_add_item_ret_uint(asam_cmp_status_msg_header_tree, hf_cmp_msg_vendor_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &asam_cmp_status_msg_vendor_id);
3528 offset += 2;
3529
3530 proto_tree_add_bitmask(asam_cmp_status_msg_header_tree, tvb, offset, hf_cmp_msg_common_flags, ett_asam_cmp_common_flags, asam_cmp_common_flags, ENC_BIG_ENDIAN0x00000000);
3531 offset += 1;
3532
3533 proto_tree_add_item_ret_uint(asam_cmp_status_msg_header_tree, hf_cmp_status_msg_payload_type, tvb, offset, 1, ENC_NA0x00000000, &asam_cmp_status_msg_payload_type);
3534 offset += 1;
3535
3536 proto_tree_add_item_ret_uint(asam_cmp_status_msg_header_tree, hf_cmp_msg_payload_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &asam_cmp_status_msg_payload_length);
3537 offset += 2;
3538
3539 proto_item_set_end(ti_msg_header, tvb, offset);
3540
3541 ti_msg_payload = proto_tree_add_item(tree, hf_cmp_msg_payload, tvb, offset, asam_cmp_status_msg_payload_length, ENC_BIG_ENDIAN0x00000000);
3542 asam_cmp_status_msg_payload_tree = proto_item_add_subtree(ti_msg_payload, ett_asam_cmp_header);
3543 proto_item_append_text(ti_msg_payload, " %s", "- Status Message");
3544
3545 switch (asam_cmp_status_msg_payload_type) {
3546 case CMP_STATUS_MSG_INVALID0x00:
3547 col_append_str(pinfo->cinfo, COL_INFO, " (Invalid/Padding)");
3548 proto_item_append_text(ti_msg_payload, " %s", "(Invalid/Padding)");
3549 proto_item_set_end(ti_msg_payload, tvb, offset + asam_cmp_status_msg_payload_length);
3550
3551 return tvb_reported_length_remaining(tvb, offset_orig);
3552
3553 case CMP_STATUS_MSG_CM_STAT_MSG0x01:
3554 col_append_str(pinfo->cinfo, COL_INFO, " (CM)");
3555 proto_item_append_text(ti_msg_payload, " %s", "(CM)");
3556
3557 ti = proto_tree_add_item_ret_uint64(asam_cmp_status_msg_payload_tree, hf_cmp_status_msg_cm_uptime_ns, tvb, offset, 8, ENC_BIG_ENDIAN0x00000000, &uptime);
3558
3559 subtree = proto_item_add_subtree(ti, ett_asam_cmp_status_cm_uptime);
3560 proto_tree_add_uint64(subtree, hf_cmp_status_msg_cm_uptime_s, tvb, offset, 8, uptime / 1000000000);
3561 offset += 8;
3562
3563 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_msg_gm_identity, tvb, offset, 8, ENC_BIG_ENDIAN0x00000000);
3564 offset += 8;
3565
3566 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_msg_gm_clock_quality, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3567 offset += 4;
3568
3569 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_msg_current_utc_offset, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3570 offset += 2;
3571
3572 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_msg_time_source, tvb, offset, 1, ENC_NA0x00000000);
3573 offset += 1;
3574
3575 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_msg_domain_num, tvb, offset, 1, ENC_NA0x00000000);
3576 offset += 1;
3577
3578 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_msg_res, tvb, offset, 1, ENC_NA0x00000000);
3579 offset += 1;
3580
3581 proto_tree_add_bitmask(asam_cmp_status_msg_payload_tree, tvb, offset, hf_cmp_gptp_flags, ett_asam_cmp_status_cm_flags, asam_cmp_status_cm_flags, ENC_BIG_ENDIAN0x00000000);
3582 offset += 1;
3583
3584 proto_tree_add_item_ret_uint(asam_cmp_status_msg_payload_tree, hf_cmp_status_dev_desc_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &asam_cmp_status_msg_cm_dev_desc_length);
3585 offset += 2;
3586
3587 if (asam_cmp_status_msg_cm_dev_desc_length > 0) {
3588 asam_cmp_status_msg_cm_dev_desc_length += (asam_cmp_status_msg_cm_dev_desc_length % 2); /* padding to 16bit */
3589 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_dev_desc, tvb, offset, asam_cmp_status_msg_cm_dev_desc_length, ENC_UTF_80x00000002);
3590 offset += (int)asam_cmp_status_msg_cm_dev_desc_length;
3591 }
3592
3593 proto_tree_add_item_ret_uint(asam_cmp_status_msg_payload_tree, hf_cmp_status_sn_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &asam_cmp_status_msg_cm_sn_length);
3594 offset += 2;
3595
3596 if (asam_cmp_status_msg_cm_sn_length > 0) {
3597 asam_cmp_status_msg_cm_sn_length += (asam_cmp_status_msg_cm_sn_length % 2); /* padding to 16bit */
3598 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_sn, tvb, offset, asam_cmp_status_msg_cm_sn_length, ENC_UTF_80x00000002);
3599 offset += (int)asam_cmp_status_msg_cm_sn_length;
3600 }
3601
3602 proto_tree_add_item_ret_uint(asam_cmp_status_msg_payload_tree, hf_cmp_status_hw_ver_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &asam_cmp_status_msg_cm_hw_ver_length);
3603 offset += 2;
3604
3605 if (asam_cmp_status_msg_cm_hw_ver_length > 0) {
3606 asam_cmp_status_msg_cm_hw_ver_length += (asam_cmp_status_msg_cm_hw_ver_length % 2); /* padding to 16bit */
3607 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_hw_ver, tvb, offset, asam_cmp_status_msg_cm_hw_ver_length, ENC_UTF_80x00000002);
3608 offset += (int)asam_cmp_status_msg_cm_hw_ver_length;
3609 }
3610
3611 proto_tree_add_item_ret_uint(asam_cmp_status_msg_payload_tree, hf_cmp_status_sw_ver_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &asam_cmp_status_msg_cm_sw_ver_length);
3612 offset += 2;
3613
3614 if (asam_cmp_status_msg_cm_sw_ver_length > 0) {
3615 asam_cmp_status_msg_cm_sw_ver_length += (asam_cmp_status_msg_cm_sw_ver_length % 2); /* padding to 16bit */
3616 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_sw_ver, tvb, offset, asam_cmp_status_msg_cm_sw_ver_length, ENC_UTF_80x00000002);
3617 offset += (int)asam_cmp_status_msg_cm_sw_ver_length;
3618 }
3619
3620 proto_tree_add_item_ret_uint(asam_cmp_status_msg_payload_tree, hf_cmp_status_vendor_data_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &asam_cmp_status_msg_vendor_data_length);
3621 offset += 2;
3622
3623 if (asam_cmp_status_msg_vendor_data_length > 0) {
3624 if (asam_cmp_status_msg_vendor_id != CMP_VENDOR_TECHNICA0x019c ||
3625 offset + asam_cmp_status_msg_vendor_data_length > tvb_captured_length(tvb) ||
3626 !dissect_asam_cmp_status_vendor_data_technica(tvb, pinfo, asam_cmp_status_msg_payload_tree, offset, asam_cmp_status_msg_vendor_data_length)) {
3627 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_vendor_data, tvb, offset, asam_cmp_status_msg_vendor_data_length, ENC_NA0x00000000);
3628 }
3629 offset += (int)asam_cmp_status_msg_vendor_data_length;
3630 }
3631 break;
3632
3633 case CMP_STATUS_MSG_IF_STAT_MSG0x02:
3634 col_append_str(pinfo->cinfo, COL_INFO, " (Interface)");
3635 proto_item_append_text(ti_msg_payload, " %s", "(Interface)");
3636
3637 /* each entry is 40 bytes, header is 16 bytes */
3638 while (tvb_reported_length_remaining(tvb, offset) >= 40 && offset - offset_orig + 40 <= 16 + asam_cmp_status_msg_payload_length) {
3639 uint32_t ifaceid;
3640 uint32_t ifacetype;
3641
3642 ti_interface = proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_iface_interface, tvb, offset, 34, ENC_NA0x00000000);
3643 subtree = proto_item_add_subtree(ti_interface, ett_asam_cmp_status_interface);
3644
3645 ti = proto_tree_add_item_ret_uint(subtree, hf_cmp_iface_iface_id, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000, &ifaceid);
3646 descr = ht_interface_config_to_string(ifaceid);
3647 if (descr != NULL((void*)0)) {
3648 proto_item_append_text(ti, " (%s)", descr);
3649 }
3650 offset += 4;
3651
3652 proto_tree_add_item(subtree, hf_cmp_iface_msg_total_rx, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3653 offset += 4;
3654
3655 proto_tree_add_item(subtree, hf_cmp_iface_msg_total_tx, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3656 offset += 4;
3657
3658 proto_tree_add_item(subtree, hf_cmp_iface_msg_dropped_rx, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3659 offset += 4;
3660
3661 proto_tree_add_item(subtree, hf_cmp_iface_msg_dropped_tx, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3662 offset += 4;
3663
3664 proto_tree_add_item(subtree, hf_cmp_iface_errs_total_rx, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3665 offset += 4;
3666
3667 proto_tree_add_item(subtree, hf_cmp_iface_errs_total_tx, tvb, offset, 4, ENC_BIG_ENDIAN0x00000000);
3668 offset += 4;
3669
3670 proto_tree_add_item_ret_uint(subtree, hf_cmp_iface_iface_type, tvb, offset, 1, ENC_NA0x00000000, &ifacetype);
3671 offset += 1;
3672
3673 if (descr != NULL((void*)0)) {
3674 proto_item_append_text(ti_interface, " %s, Type: %s", descr, val_to_str(pinfo->pool, ifacetype, data_msg_type_names, "Unknown (0x%x)"));
3675 } else {
3676 proto_item_append_text(ti_interface, " 0x%x, Type: %s", ifaceid, val_to_str(pinfo->pool, ifacetype, data_msg_type_names, "Unknown (0x%x)"));
3677 }
3678
3679 proto_tree_add_item(subtree, hf_cmp_iface_iface_status, tvb, offset, 1, ENC_NA0x00000000);
3680 offset += 1;
3681
3682 proto_tree_add_item(subtree, hf_cmp_iface_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3683 offset += 2;
3684
3685 offset += dissect_asam_cmp_status_interface_support_mask(tvb, subtree, offset, (uint8_t)ifacetype);
3686
3687 proto_tree_add_item_ret_uint(subtree, hf_cmp_iface_stream_id_cnt, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &asam_cmp_status_msg_iface_stream_id_count);
3688 offset += 2;
3689
3690 if (asam_cmp_status_msg_iface_stream_id_count > 0) {
3691 ti_stream_ids = proto_tree_add_item(subtree, hf_cmp_iface_stream_ids, tvb, offset, asam_cmp_status_msg_iface_stream_id_count, ENC_NA0x00000000);
3692 stream_ids_subtree = proto_item_add_subtree(ti_stream_ids, ett_asam_cmp_status_stream_ids);
3693
3694 for (unsigned i = 0; i < asam_cmp_status_msg_iface_stream_id_count; i++) {
3695 proto_tree_add_item(stream_ids_subtree, hf_cmp_iface_stream_id, tvb, offset, 1, ENC_NA0x00000000);
3696 offset += 1;
3697 }
3698 offset += (asam_cmp_status_msg_iface_stream_id_count % 2); /* padding to 16bit */
3699 }
3700
3701 proto_tree_add_item_ret_uint(subtree, hf_cmp_iface_vendor_data_len, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &asam_cmp_status_msg_vendor_data_length);
3702 offset += 2;
3703
3704 if (asam_cmp_status_msg_vendor_data_length > 0) {
3705 proto_tree_add_item(subtree, hf_cmp_iface_vendor_data, tvb, offset, asam_cmp_status_msg_vendor_data_length, ENC_NA0x00000000);
3706 offset += (int)asam_cmp_status_msg_vendor_data_length;
3707 }
3708
3709 proto_item_set_end(ti_interface, tvb, offset);
3710 }
3711 break;
3712
3713 case CMP_STATUS_MSG_CONF_STAT_MSG0x03:
3714 col_append_str(pinfo->cinfo, COL_INFO, " (Configuration)");
3715 proto_item_append_text(ti_msg_payload, " %s", "(Configuration)");
3716
3717 if (asam_cmp_status_msg_payload_length > 0) {
3718 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_msg_config, tvb, offset, asam_cmp_status_msg_payload_length, ENC_NA0x00000000);
3719 offset += (int)asam_cmp_status_msg_payload_length;
3720 }
3721 break;
3722
3723 case CMP_STATUS_MSG_DLE_STAT_MSG0x04:
3724 col_append_str(pinfo->cinfo, COL_INFO, " (Data Lost Event)");
3725 proto_item_append_text(ti_msg_payload, " %s", "(Data Lost Event)");
3726
3727 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_dataloss_data_sink_port, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3728 offset += 2;
3729
3730 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_dataloss_device_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3731 offset += 2;
3732
3733 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_dataloss_reserved, tvb, offset, 1, ENC_NA0x00000000);
3734 offset += 1;
3735
3736 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_dataloss_stream_id, tvb, offset, 1, ENC_NA0x00000000);
3737 offset += 1;
3738
3739 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_dataloss_last_ssq_value, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3740 offset += 2;
3741
3742 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_dataloss_current_ssq_value, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3743 offset += 2;
3744 break;
3745
3746 case CMP_STATUS_MSG_TSLE_STAT_MSG0x05:
3747 col_append_str(pinfo->cinfo, COL_INFO, " (Time Sync Lost Event)");
3748 proto_item_append_text(ti_msg_payload, " %s", "(Time Sync Lost Event)");
3749
3750 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_timeloss_port_nr, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3751 offset += 2;
3752
3753 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_timeloss_device_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3754 offset += 2;
3755
3756 proto_tree_add_bitmask(asam_cmp_status_msg_payload_tree, tvb, offset, hf_cmp_timeloss_error_flags, ett_asam_cmp_status_timeloss_flags, asam_cmp_status_timeloss_error_flags, ENC_BIG_ENDIAN0x00000000);
3757 offset += 1;
3758 break;
3759
3760 case CMP_STATUS_MSG_VENDOR_STAT_MSG0xFF:
3761 col_append_str(pinfo->cinfo, COL_INFO, " (Vendor specific)");
3762 proto_item_append_text(ti_msg_payload, " %s", "(Vendor specific)");
3763
3764 if (asam_cmp_status_msg_payload_length > 0) {
3765 proto_tree_add_item(asam_cmp_status_msg_payload_tree, hf_cmp_status_msg_vendor_specific, tvb, offset, asam_cmp_status_msg_payload_length, ENC_NA0x00000000);
3766 offset += (int)asam_cmp_status_msg_payload_length;
3767 }
3768 break;
3769
3770 default:
3771 if (asam_cmp_status_msg_payload_length > 0) {
3772 offset += (int)asam_cmp_status_msg_payload_length;
3773 }
3774
3775 proto_item_set_end(ti_msg_payload, tvb, offset);
3776 break;
3777 }
3778
3779 if ((CMP_MSG_HEADER_LEN16 + asam_cmp_status_msg_payload_length) < (offset - offset_orig)) {
3780 proto_tree_add_expert(tree, pinfo, &ei_asam_cmp_length_mismatch, tvb, offset_orig + CMP_MSG_HEADER_LEN16, asam_cmp_status_msg_payload_length);
3781 proto_item_set_end(ti_msg_payload, tvb, offset);
3782 }
3783
3784 return CMP_MSG_HEADER_LEN16 + asam_cmp_status_msg_payload_length;
3785}
3786
3787static int
3788dissect_asam_cmp_vendor_msg(tvbuff_t *tvb, packet_info *pinfo _U___attribute__((unused)), proto_tree *tree, unsigned offset_orig) {
3789 proto_item *ti = NULL((void*)0);
3790 proto_item *ti_msg_header = NULL((void*)0);
3791 proto_item *ti_msg_payload = NULL((void*)0);
3792 proto_tree *asam_cmp_vendor_msg_header_tree = NULL((void*)0);
3793 proto_tree *subtree = NULL((void*)0);
3794 unsigned asam_cmp_vendor_msg_payload_type = 0;
3795 unsigned asam_cmp_vendor_msg_payload_length = 0;
3796 unsigned offset = offset_orig;
3797
3798 static int * const asam_cmp_common_flags[] = {
3799 &hf_cmp_common_flag_reserved_0xf0,
3800 &hf_cmp_common_flag_seg,
3801 &hf_cmp_common_flag_insync,
3802 &hf_cmp_common_flag_recal,
3803 NULL((void*)0)
3804 };
3805
3806 ti_msg_header = proto_tree_add_item(tree, hf_cmp_msg_header, tvb, offset, 8, ENC_BIG_ENDIAN0x00000000);
3807 asam_cmp_vendor_msg_header_tree = proto_item_add_subtree(ti_msg_header, ett_asam_cmp_header);
3808 proto_item_append_text(ti_msg_header, " %s", "- Vendor-Defined Message");
3809
3810 uint64_t ns = tvb_get_uint64(tvb, offset, ENC_BIG_ENDIAN0x00000000);
3811 nstime_t timestamp = { .secs = (time_t)(ns / 1000000000), .nsecs = (int)(ns % 1000000000) };
3812
3813 ti = proto_tree_add_time(asam_cmp_vendor_msg_header_tree, hf_cmp_msg_timestamp, tvb, offset, 8, &timestamp);
3814
3815 subtree = proto_item_add_subtree(ti, ett_asam_cmp_timestamp);
3816 proto_tree_add_item(subtree, hf_cmp_msg_timestamp_ns, tvb, offset, 8, ENC_BIG_ENDIAN0x00000000);
3817 offset += 8;
3818
3819 proto_tree_add_item(asam_cmp_vendor_msg_header_tree, hf_cmp_msg_reserved, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3820 offset += 2;
3821
3822 proto_tree_add_item(asam_cmp_vendor_msg_header_tree, hf_cmp_msg_vendor_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3823 offset += 2;
3824
3825 proto_tree_add_bitmask(asam_cmp_vendor_msg_header_tree, tvb, offset, hf_cmp_msg_common_flags, ett_asam_cmp_common_flags, asam_cmp_common_flags, ENC_BIG_ENDIAN0x00000000);
3826 offset += 1;
3827
3828 proto_tree_add_item_ret_uint(asam_cmp_vendor_msg_header_tree, hf_cmp_vendor_msg_payload_type, tvb, offset, 1, ENC_NA0x00000000, &asam_cmp_vendor_msg_payload_type);
3829 offset += 1;
3830
3831 proto_tree_add_item_ret_uint(asam_cmp_vendor_msg_header_tree, hf_cmp_msg_payload_length, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &asam_cmp_vendor_msg_payload_length);
3832 offset += 2;
3833
3834 proto_item_set_end(ti_msg_header, tvb, offset);
3835
3836 ti_msg_payload = proto_tree_add_item(tree, hf_cmp_msg_payload, tvb, offset, asam_cmp_vendor_msg_payload_length, ENC_BIG_ENDIAN0x00000000);
3837 proto_item_append_text(ti_msg_payload, " %s", "- Vendor-Defined Message");
3838
3839 if (asam_cmp_vendor_msg_payload_length > 0) {
3840 offset += (int)asam_cmp_vendor_msg_payload_length;
3841 proto_item_set_end(ti_msg_payload, tvb, offset);
3842 }
3843
3844 return CMP_MSG_HEADER_LEN16 + asam_cmp_vendor_msg_payload_length;
3845}
3846
3847static int
3848dissect_asam_cmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U___attribute__((unused))) {
3849 proto_item *ti_root = NULL((void*)0);
3850 proto_item *ti_header = NULL((void*)0);
3851 proto_item *ti = NULL((void*)0);
3852 proto_tree *asam_cmp_tree = NULL((void*)0);
3853 proto_tree *asam_cmp_header_tree = NULL((void*)0);
3854 unsigned msg_type = 0;
3855 unsigned device_id = 0;
3856 unsigned offset = 0;
3857
3858 col_clear(pinfo->cinfo, COL_INFO);
3859 col_set_str(pinfo->cinfo, COL_INFO, "ASAM-CMP");
3860 col_set_str(pinfo->cinfo, COL_PROTOCOL, "ASAM-CMP");
3861
3862 ti_root = proto_tree_add_item(tree, proto_asam_cmp, tvb, 0, -1, ENC_NA0x00000000);
3863 asam_cmp_tree = proto_item_add_subtree(ti_root, ett_asam_cmp);
3864
3865 ti_header = proto_tree_add_item(asam_cmp_tree, hf_cmp_header, tvb, offset, CMP_HEADER_LEN8, ENC_BIG_ENDIAN0x00000000);
3866 asam_cmp_header_tree = proto_item_add_subtree(ti_header, ett_asam_cmp_header);
3867
3868 proto_tree_add_item(asam_cmp_header_tree, hf_cmp_version, tvb, offset, 1, ENC_NA0x00000000);
3869 offset += 1;
3870
3871 proto_tree_add_item(asam_cmp_header_tree, hf_cmp_header_res, tvb, offset, 1, ENC_NA0x00000000);
3872 offset += 1;
3873
3874 ti = proto_tree_add_item_ret_uint(asam_cmp_header_tree, hf_cmp_device_id, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000, &device_id);
3875 add_device_id_text(ti, (uint16_t)device_id);
3876 offset += 2;
3877
3878 proto_tree_add_item_ret_uint(asam_cmp_header_tree, hf_cmp_msg_type, tvb, offset, 1, ENC_NA0x00000000, &msg_type);
3879 offset += 1;
3880
3881 proto_tree_add_item(asam_cmp_header_tree, hf_cmp_stream_id, tvb, offset, 1, ENC_NA0x00000000);
3882 offset += 1;
3883
3884 proto_tree_add_item(asam_cmp_header_tree, hf_cmp_stream_seq_ctr, tvb, offset, 2, ENC_BIG_ENDIAN0x00000000);
3885 offset += 2;
3886
3887 proto_item_append_text(ti_root, ", Device: 0x%04x, Type: %s", (uint16_t)device_id, val_to_str(pinfo->pool, msg_type, msg_type_names, "Unknown (0x%x)"));
3888
3889 while (tvb_reported_length_remaining(tvb, offset) >= 16) {
3890 unsigned bytes_parsed = 0;
3891
3892 switch (msg_type) {
3893 case CMP_MSG_TYPE_CAP_DATA_MSG0x01:
3894 col_append_str(pinfo->cinfo, COL_INFO, ", Data Msg (Capturing)");
3895 bytes_parsed += dissect_asam_cmp_data_msg(tvb, pinfo, tree, asam_cmp_tree, offset, false0);
3896 break;
3897 case CMP_MSG_TYPE_CTRL_MSG0x02:
3898 col_append_str(pinfo->cinfo, COL_INFO, ", Control Msg");
3899 bytes_parsed = dissect_asam_cmp_ctrl_msg(tvb, pinfo, asam_cmp_tree, offset);
3900 break;
3901 case CMP_MSG_TYPE_STATUS_MSG0x03:
3902 col_append_str(pinfo->cinfo, COL_INFO, ", Status Msg");
3903 bytes_parsed = dissect_asam_cmp_status_msg(tvb, pinfo, asam_cmp_tree, offset);
3904 break;
3905 case CMP_MSG_TYPE_TX_DATA_MSG0x04:
3906 col_append_str(pinfo->cinfo, COL_INFO, ", Data Msg (Transmit)");
3907 bytes_parsed += dissect_asam_cmp_data_msg(tvb, pinfo, tree, asam_cmp_tree, offset, true1);
3908 break;
3909 case CMP_MSG_TYPE_VENDOR0xFF:
3910 col_append_str(pinfo->cinfo, COL_INFO, ", Vendor Msg");
3911 bytes_parsed = dissect_asam_cmp_vendor_msg(tvb, pinfo, asam_cmp_tree, offset);
3912 break;
3913 default:
3914 proto_item_set_end(ti_root, tvb, offset);
3915 return offset;
3916 }
3917
3918 offset += bytes_parsed;
3919
3920 /* Bytes are not being parsed, if detected as Ethernet padding, so we need to bail out. */
3921 if (bytes_parsed == 0) {
3922 proto_item_set_end(ti_root, tvb, offset);
3923 return offset;
3924 }
3925
3926 }
3927
3928 proto_item_set_end(ti_root, tvb, offset);
3929 return offset;
3930}
3931
3932void
3933proto_register_asam_cmp(void) {
3934 module_t *asam_cmp_module = NULL((void*)0);
3935 expert_module_t *expert_module_asam_cmp;
3936 uat_t *asam_cmp_deviceid_uat = NULL((void*)0);
3937 uat_t *asam_cmp_interfaceid_uat = NULL((void*)0);
3938
3939 static hf_register_info hf[] = {
3940 /* Header */
3941 { &hf_cmp_header, { "ASAM CMP Header", "asam-cmp.hdr", FT_PROTOCOL, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3942
3943 { &hf_cmp_version, { "Version", "asam-cmp.hdr.version", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3944 { &hf_cmp_header_res, { "Reserved", "asam-cmp.hdr.res", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3945 { &hf_cmp_device_id, { "Device ID", "asam-cmp.hdr.device_id", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3946 { &hf_cmp_msg_type, { "Message Type", "asam-cmp.hdr.msg_type", FT_UINT8, BASE_HEX, VALS(msg_type_names)((0 ? (const struct _value_string*)0 : ((msg_type_names)))), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3947 { &hf_cmp_stream_id, { "Stream ID", "asam-cmp.hdr.stream_id", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3948 { &hf_cmp_stream_seq_ctr, { "Stream Sequence Counter", "asam-cmp.hdr.stream_seq_cnt", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3949
3950 /* Message Header*/
3951 { &hf_cmp_msg_header, { "ASAM CMP Msg Header", "asam-cmp.msg_hdr", FT_PROTOCOL, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3952
3953 { &hf_cmp_msg_timestamp, { "Timestamp", "asam-cmp.msg_hdr.timestamp", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_UTC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3954 { &hf_cmp_msg_timestamp_ns, { "Timestamp (ns)", "asam-cmp.msg_hdr.timestamp_ns", FT_UINT64, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3955 { &hf_cmp_msg_deadline, { "Deadline", "asam-cmp.msg_hdr.deadline", FT_UINT32, BASE_DEC|BASE_UNIT_STRING0x00001000, UNS(&units_nanoseconds)((0 ? (const struct unit_name_string*)0 : ((&units_nanoseconds
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3956 { &hf_cmp_msg_reserved, { "Reserved", "asam-cmp.msg_hdr.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3957
3958 { &hf_cmp_msg_trans_opts, { "Transmission Options", "asam-cmp.msg_hdr.trans_opts", FT_UINT32, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3959 { &hf_cmp_msg_trans_opts_res, { "Reserved", "asam-cmp.msg_hdr.trans_opts.res", FT_UINT32, BASE_HEX, NULL((void*)0), 0xFFFFFFFF, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3960 { &hf_cmp_msg_trans_opts_lin_wup_dura, { "Wake Up Duration", "asam-cmp.msg_hdr.trans_opts.lin.wup_duration", FT_UINT32, BASE_DEC, NULL((void*)0), 0xFFFF0000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3961 { &hf_cmp_msg_trans_opts_lin_res, { "Reserved", "asam-cmp.msg_hdr.trans_opts.lin.reserved", FT_UINT32, BASE_HEX, NULL((void*)0), 0x0000FFFF, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3962 { &hf_cmp_msg_trans_opts_fr_op, { "Operation", "asam-cmp.msg_hdr.trans_opts.flexray.operation", FT_UINT32, BASE_HEX, VALS(flexray_transmission_operations)((0 ? (const struct _value_string*)0 : ((flexray_transmission_operations
))))
, 0xFF000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
3963 { &hf_cmp_msg_trans_opts_fr_cycle_rep, { "Cycle Repetition", "asam-cmp.msg_hdr.trans_opts.flexray.cycle_repetition", FT_UINT32, BASE_DEC, NULL((void*)0), 0x00FF0000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3964 { &hf_cmp_msg_trans_opts_fr_res, { "Reserved", "asam-cmp.msg_hdr.trans_opts.flexray.reserved", FT_UINT32, BASE_HEX, NULL((void*)0), 0x0000FFFF, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3965
3966 { &hf_cmp_msg_common_flags, { "Common Flags", "asam-cmp.msg_hdr.common_flags", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3967 { &hf_cmp_common_flag_recal, { "Timestamp recalculated", "asam-cmp.msg_hdr.recalculated", FT_BOOLEAN, 8, NULL((void*)0), 0x01, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3968 { &hf_cmp_common_flag_relative, { "Relative", "asam-cmp.msg_hdr.timestamp_relative", FT_BOOLEAN, 8, TFS(&timestamp_rel_abs)((0 ? (const struct true_false_string*)0 : ((&timestamp_rel_abs
))))
, 0x01, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
3969 { &hf_cmp_common_flag_insync, { "Synchronized", "asam-cmp.msg_hdr.sync", FT_BOOLEAN, 8, NULL((void*)0), 0x02, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3970 { &hf_cmp_common_flag_reserved_0x02, { "Reserved", "asam-cmp.msg_hdr.res3", FT_UINT8, BASE_HEX, NULL((void*)0), 0x02, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3971 { &hf_cmp_common_flag_seg, { "Segmentation", "asam-cmp.msg_hdr.seg", FT_UINT8, BASE_HEX, VALS(seg_flag_names)((0 ? (const struct _value_string*)0 : ((seg_flag_names)))), 0x0C, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3972 { &hf_cmp_common_flag_dir_on_if, { "Direction", "asam-cmp.msg_hdr.dir_on_if", FT_BOOLEAN, 8, TFS(&interface_direction)((0 ? (const struct true_false_string*)0 : ((&interface_direction
))))
, 0x10, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3973 { &hf_cmp_common_flag_overflow, { "Overflow", "asam-cmp.msg_hdr.overflow", FT_BOOLEAN, 8, NULL((void*)0), 0x20, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3974 { &hf_cmp_common_flag_err_in_payload, { "Error in payload", "asam-cmp.msg_hdr.error_in_payload", FT_BOOLEAN, 8, NULL((void*)0), 0x40, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3975 { &hf_cmp_common_flag_reserved, { "Reserved", "asam-cmp.msg_hdr.res", FT_UINT8, BASE_HEX, NULL((void*)0), 0x80, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3976 { &hf_cmp_common_flag_reserved_0xf0, { "Reserved", "asam-cmp.msg_hdr.res2", FT_UINT8, BASE_HEX, NULL((void*)0), 0xF0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
3977
3978 { &hf_cmp_msg_vendor_id, { "Vendor ID", "asam-cmp.msg_hdr.vendor_id", FT_UINT16, BASE_HEX, VALS(vendor_ids)((0 ? (const struct _value_string*)0 : ((vendor_ids)))), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3979 { &hf_cmp_msg_payload_length, { "Payload Length", "asam-cmp.msg_hdr.payload_length", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3980 { &hf_cmp_msg_payload, { "Payload", "asam-cmp.msg_payload", FT_PROTOCOL, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3981
3982 /* Data Message Header */
3983 { &hf_cmp_interface_id, { "Interface ID", "asam-cmp.msg_hdr.interface_id", FT_UINT32, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3984 { &hf_cmp_payload_type, { "Payload Type", "asam-cmp.msg_hdr.payload_type", FT_UINT8, BASE_HEX, VALS(data_msg_type_names)((0 ? (const struct _value_string*)0 : ((data_msg_type_names)
)))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3985
3986 /* Additional Control Message Header */
3987 { &hf_cmp_ctrl_msg_reserved, { "Reserved", "asam-cmp.msg_hdr.reserved", FT_UINT32, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3988 { &hf_cmp_ctrl_msg_payload_type, { "Payload Type", "asam-cmp.msg_hdr.payload_type", FT_UINT8, BASE_HEX, VALS(ctrl_msg_type_names)((0 ? (const struct _value_string*)0 : ((ctrl_msg_type_names)
)))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3989
3990 /* Additional Status Message Header */
3991 { &hf_cmp_status_msg_payload_type, { "Payload Type", "asam-cmp.msg_hdr.payload_type", FT_UINT8, BASE_HEX, VALS(status_msg_type_names)((0 ? (const struct _value_string*)0 : ((status_msg_type_names
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3992
3993 /* Additional Vendor Message Header */
3994 { &hf_cmp_vendor_msg_payload_type, { "Payload Type", "asam-cmp.msg_hdr.payload_type", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3995
3996 /* Data Message Payloads */
3997 /* CAN Data */
3998 { &hf_cmp_can_flags, { "Flags", "asam-cmp.msg.can.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
3999 { &hf_cmp_can_flag_crc_err, { "CRC Error", "asam-cmp.msg.can.flags.crc_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4000 { &hf_cmp_can_flag_ack_err, { "ACK Error", "asam-cmp.msg.can.flags.ack_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4001 { &hf_cmp_can_flag_passive_ack_err, { "Passive ACK Error", "asam-cmp.msg.can.flags.passive_ack_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4002 { &hf_cmp_can_flag_reserved_0004, { "Reserved", "asam-cmp.msg.can.flags.reserved_0x0004", FT_BOOLEAN, 16, NULL((void*)0), 0x0004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4003 { &hf_cmp_can_flag_active_ack_err, { "Active ACK Error", "asam-cmp.msg.can.flags.active_ack_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4004 { &hf_cmp_can_flag_reserved_0008, { "Reserved", "asam-cmp.msg.can.flags.reserved_0x0008", FT_BOOLEAN, 16, NULL((void*)0), 0x0008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4005 { &hf_cmp_can_flag_ack_del_err, { "ACK DEL Error", "asam-cmp.msg.can.flags.ack_del_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4006 { &hf_cmp_can_flag_form_err, { "Form Error", "asam-cmp.msg.can.flags.form_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4007 { &hf_cmp_can_flag_stuff_err, { "Stuff Error", "asam-cmp.msg.can.flags.stuff_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0040, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4008 { &hf_cmp_can_flag_crc_del_err, { "CRC DEL Error", "asam-cmp.msg.can.flags.crc_del_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0080, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4009 { &hf_cmp_can_flag_eof_err, { "EOF Error", "asam-cmp.msg.can.flags.eof_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0100, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4010 { &hf_cmp_can_flag_bit_err, { "Bit Error", "asam-cmp.msg.can.flags.bit_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0200, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4011 { &hf_cmp_can_flag_r0, { "R0", "asam-cmp.msg.can.flags.r0", FT_BOOLEAN, 16, TFS(&can_rec_dom)((0 ? (const struct true_false_string*)0 : ((&can_rec_dom
))))
, 0x0400, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4012 { &hf_cmp_can_flag_srr_dom, { "Substitute Remote Request (SRR)", "asam-cmp.msg.can.flags.srr", FT_BOOLEAN, 16, TFS(&can_dom_rec)((0 ? (const struct true_false_string*)0 : ((&can_dom_rec
))))
, 0x0800, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4013 { &hf_cmp_can_flag_reserved, { "Reserved", "asam-cmp.msg.can.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xF000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4014 { &hf_cmp_can_flag_reserved_1000, { "Reserved", "asam-cmp.msg.can.flags.reserved_0x1000", FT_UINT16, BASE_HEX, NULL((void*)0), 0x1000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4015 { &hf_cmp_can_flag_reserved_2000, { "Reserved", "asam-cmp.msg.can.flags.reserved_0x2000", FT_UINT16, BASE_HEX, NULL((void*)0), 0x2000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4016 { &hf_cmp_can_flag_gen_err, { "Generic Error", "asam-cmp.msg.can.flags.gen_err", FT_UINT16, BASE_HEX, NULL((void*)0), 0x4000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4017 { &hf_cmp_can_flag_reserved_tx, { "Reserved", "asam-cmp.msg.can.flags.reserved_tx", FT_UINT16, BASE_HEX, NULL((void*)0), 0x8000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4018
4019 { &hf_cmp_can_reserved, { "Reserved", "asam-cmp.msg.can.res", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4020
4021 { &hf_cmp_can_id, { "ID", "asam-cmp.msg.can.id_field", FT_UINT32, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4022 { &hf_cmp_can_id_11bit, { "ID (11bit)", "asam-cmp.msg.can.id_11bit", FT_UINT32, BASE_HEX_DEC, NULL((void*)0), CMP_CAN_ID_11BIT_MASK0x1ffc0000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4023 { &hf_cmp_can_id_11bit_old, { "ID (11bit)", "asam-cmp.msg.can.id_11bit", FT_UINT32, BASE_HEX_DEC, NULL((void*)0), CMP_CAN_ID_11BIT_MASK_OLD0x000007ff, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4024 { &hf_cmp_can_id_29bit, { "ID (29bit)", "asam-cmp.msg.can.id_29bit", FT_UINT32, BASE_HEX_DEC, NULL((void*)0), CMP_CAN_ID_29BIT_MASK0x1fffffff, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4025 { &hf_cmp_can_id_err, { "ID_ERR", "asam-cmp.msg.can.id_err", FT_BOOLEAN, 32, TFS(&tfs_invalid_valid)((0 ? (const struct true_false_string*)0 : ((&tfs_invalid_valid
))))
, CMP_CAN_ID_ERR0x20000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4026 { &hf_cmp_can_id_rtr, { "RTR", "asam-cmp.msg.can.rtr", FT_BOOLEAN, 32, TFS(&can_id_rtr)((0 ? (const struct true_false_string*)0 : ((&can_id_rtr)
)))
, CMP_CAN_ID_RTR0x40000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4027 { &hf_cmp_can_id_ide, { "IDE", "asam-cmp.msg.can.ide", FT_BOOLEAN, 32, TFS(&can_id_ide)((0 ? (const struct true_false_string*)0 : ((&can_id_ide)
)))
, CMP_CAN_ID_IDE0x80000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4028
4029 { &hf_cmp_can_crc, { "CRC", "asam-cmp.msg.can.crc_field", FT_UINT32, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4030 { &hf_cmp_can_crc_crc, { "CRC", "asam-cmp.msg.can.crc", FT_UINT32, BASE_HEX_DEC, NULL((void*)0), CMP_CAN_CRC_CRC0x00007fff, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4031 { &hf_cmp_can_crc_res, { "Reserved", "asam-cmp.msg.can.crc_res", FT_UINT32, BASE_HEX_DEC, NULL((void*)0), CMP_CAN_CRC_RES0x7fff8000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4032 { &hf_cmp_can_crc_crc_support, { "CRC Supported", "asam-cmp.msg.can.crc_support", FT_BOOLEAN, 32, NULL((void*)0), CMP_CAN_CRC_CRC_SUPP0x80000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4033
4034 { &hf_cmp_can_err_pos, { "Error Position", "asam-cmp.msg.can.err_pos", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4035 { &hf_cmp_can_dlc, { "DLC", "asam-cmp.msg.can.dlc", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4036 { &hf_cmp_can_data_len, { "Data length", "asam-cmp.msg.can.data_len", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4037
4038 /* CAN-FD Data */
4039 { &hf_cmp_canfd_flags, { "Flags", "asam-cmp.msg.canfd.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4040 { &hf_cmp_canfd_flag_crc_err, { "CRC Error", "asam-cmp.msg.canfd.flags.crc_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4041 { &hf_cmp_canfd_flag_ack_err, { "ACK Error", "asam-cmp.msg.canfd.flags.ack_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4042 { &hf_cmp_canfd_flag_passive_ack_err, { "Passive ACK Error", "asam-cmp.msg.canfd.flags.passive_ack_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4043 { &hf_cmp_canfd_flag_reserved_0004, { "Reserved", "asam-cmp.msg.canfd.flags.reserved_0x0004", FT_BOOLEAN, 16, NULL((void*)0), 0x0004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4044 { &hf_cmp_canfd_flag_active_ack_err, { "Active ACK Error", "asam-cmp.msg.canfd.flags.active_ack_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4045 { &hf_cmp_canfd_flag_reserved_0008, { "Reserved", "asam-cmp.msg.canfd.flags.reserved_0x0008", FT_BOOLEAN, 16, NULL((void*)0), 0x0008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4046 { &hf_cmp_canfd_flag_ack_del_err, { "ACK DEL Error", "asam-cmp.msg.canfd.flags.ack_del_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4047 { &hf_cmp_canfd_flag_form_err, { "Form Error", "asam-cmp.msg.canfd.flags.form_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4048 { &hf_cmp_canfd_flag_stuff_err, { "Stuff Error", "asam-cmp.msg.canfd.flags.stuff_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0040, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4049 { &hf_cmp_canfd_flag_crc_del_err, { "CRC DEL Error", "asam-cmp.msg.canfd.flags.crc_del_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0080, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4050 { &hf_cmp_canfd_flag_eof_err, { "EOF Error", "asam-cmp.msg.canfd.flags.eof_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0100, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4051 { &hf_cmp_canfd_flag_bit_err, { "Bit Error", "asam-cmp.msg.canfd.flags.bit_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0200, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4052 { &hf_cmp_canfd_flag_res, { "Reserved Bit", "asam-cmp.msg.canfd.flags.res", FT_BOOLEAN, 16, TFS(&can_rec_dom)((0 ? (const struct true_false_string*)0 : ((&can_rec_dom
))))
, 0x0400, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4053 { &hf_cmp_canfd_flag_srr_dom, { "Substitute Remote Request (SRR)", "asam-cmp.msg.canfd.flags.srr", FT_BOOLEAN, 16, TFS(&can_dom_rec)((0 ? (const struct true_false_string*)0 : ((&can_dom_rec
))))
, 0x0800, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4054 { &hf_cmp_canfd_flag_brs, { "BRS", "asam-cmp.msg.canfd.flags.brs", FT_BOOLEAN, 16, NULL((void*)0), 0x1000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4055 { &hf_cmp_canfd_flag_esi, { "ESI", "asam-cmp.msg.canfd.flags.esi", FT_BOOLEAN, 16, TFS(&canfd_act_pas)((0 ? (const struct true_false_string*)0 : ((&canfd_act_pas
))))
, 0x2000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4056 { &hf_cmp_canfd_flag_reserved, { "Reserved", "asam-cmp.msg.canfd.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xC000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4057
4058 { &hf_cmp_canfd_flag_gen_err, { "Generic Error", "asam-cmp.msg.canfd.flags.gen_err", FT_UINT16, BASE_HEX, NULL((void*)0), 0x4000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4059 { &hf_cmp_canfd_flag_reserved_tx, { "Reserved", "asam-cmp.msg.canfd.flags.reserved_tx", FT_UINT16, BASE_HEX, NULL((void*)0), 0x8000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4060
4061 { &hf_cmp_canfd_reserved, { "Reserved", "asam-cmp.msg.canfd.res", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4062
4063 { &hf_cmp_canfd_id, { "ID", "asam-cmp.msg.canfd.id_field", FT_UINT32, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4064 { &hf_cmp_canfd_id_11bit, { "ID (11bit)", "asam-cmp.msg.canfd.id_11bit", FT_UINT32, BASE_HEX_DEC, NULL((void*)0), CMP_CAN_ID_11BIT_MASK0x1ffc0000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4065 { &hf_cmp_canfd_id_11bit_old, { "ID (11bit)", "asam-cmp.msg.canfd.id_11bit", FT_UINT32, BASE_HEX_DEC, NULL((void*)0), CMP_CAN_ID_11BIT_MASK_OLD0x000007ff, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4066 { &hf_cmp_canfd_id_29bit, { "ID (29bit)", "asam-cmp.msg.canfd.id_29bit", FT_UINT32, BASE_HEX_DEC, NULL((void*)0), CMP_CAN_ID_29BIT_MASK0x1fffffff, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4067 { &hf_cmp_canfd_id_err, { "ID_ERR", "asam-cmp.msg.canfd.id_err", FT_BOOLEAN, 32, TFS(&tfs_invalid_valid)((0 ? (const struct true_false_string*)0 : ((&tfs_invalid_valid
))))
, CMP_CANFD_ID_ERR0x20000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4068 { &hf_cmp_canfd_id_rrs, { "RRS", "asam-cmp.msg.canfd.rrs", FT_BOOLEAN, 32, NULL((void*)0), CMP_CANFD_ID_RRS0x40000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4069 { &hf_cmp_canfd_id_ide, { "IDE", "asam-cmp.msg.canfd.ide", FT_BOOLEAN, 32, NULL((void*)0), CMP_CANFD_ID_IDE0x80000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4070
4071 { &hf_cmp_canfd_crc, { "CRC SBC", "asam-cmp.msg.canfd.crc_field", FT_UINT32, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4072 { &hf_cmp_canfd_crc_crc17, { "CRC (17bit)", "asam-cmp.msg.canfd.crc17", FT_UINT32, BASE_HEX_DEC, NULL((void*)0), CMP_CANFD_CRC_CRC170x0001ffff, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4073 { &hf_cmp_canfd_crc_crc21, { "CRC (21bit)", "asam-cmp.msg.canfd.crc21", FT_UINT32, BASE_HEX_DEC, NULL((void*)0), CMP_CANFD_CRC_CRC210x001fffff, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4074 { &hf_cmp_canfd_crc_sbc, { "SBC", "asam-cmp.msg.canfd.sbc", FT_UINT32, BASE_HEX_DEC, NULL((void*)0), CMP_CANFD_CRC_SBC0x00e00000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4075 { &hf_cmp_canfd_crc_sbc_parity, { "SBC Parity", "asam-cmp.msg.canfd.sbc_parity", FT_BOOLEAN, 32, NULL((void*)0), CMP_CANFD_CRC_SBC_PARITY0x01000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4076 { &hf_cmp_canfd_crc_res, { "Reserved", "asam-cmp.msg.canfd.crc_res", FT_UINT32, BASE_HEX_DEC, NULL((void*)0), CMP_CANFD_CRC_RES0x3e000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4077 { &hf_cmp_canfd_crc_sbc_support, { "SBC Supported", "asam-cmp.msg.canfd.sbc_support", FT_BOOLEAN, 32, NULL((void*)0), CMP_CANFD_CRC_SBC_SUPP0x40000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4078 { &hf_cmp_canfd_crc_crc_support, { "CRC Supported", "asam-cmp.msg.canfd.crc_support", FT_BOOLEAN, 32, NULL((void*)0), CMP_CANFD_CRC_CRC_SUPP0x80000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4079
4080 { &hf_cmp_canfd_err_pos, { "Error Position", "asam-cmp.msg.canfd.err_pos", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4081 { &hf_cmp_canfd_dlc, { "DLC", "asam-cmp.msg.canfd.dlc", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4082 { &hf_cmp_canfd_data_len, { "Data length", "asam-cmp.msg.canfd.data_len", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4083
4084 /* LIN */
4085 { &hf_cmp_lin_flags, { "Flags", "asam-cmp.msg.lin.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4086 { &hf_cmp_lin_flag_checksum_err, { "Checksum Error", "asam-cmp.msg.lin.flags.checksum_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4087 { &hf_cmp_lin_flag_col_err, { "Collision Error", "asam-cmp.msg.lin.flags.col_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4088 { &hf_cmp_lin_flag_reserved_0x0002, { "Reserved", "asam-cmp.msg.lin.flags.reserved_0x0002", FT_BOOLEAN, 16, NULL((void*)0), 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4089 { &hf_cmp_lin_flag_parity_err, { "Parity Error", "asam-cmp.msg.lin.flags.parity_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4090 { &hf_cmp_lin_flag_no_slave_res, { "No Slave Response", "asam-cmp.msg.lin.flags.no_slave_response", FT_BOOLEAN, 16, NULL((void*)0), 0x0008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4091 { &hf_cmp_lin_flag_reserved_0x0008, { "Reserved", "asam-cmp.msg.lin.flags.reserved_0x0008", FT_BOOLEAN, 16, NULL((void*)0), 0x0008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4092 { &hf_cmp_lin_flag_sync_err, { "Sync Error", "asam-cmp.msg.lin.flags.sync_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4093 { &hf_cmp_lin_flag_framing_err, { "Framing Error", "asam-cmp.msg.lin.flags.framing_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4094 { &hf_cmp_lin_flag_short_dom_err, { "Short Dominant Error", "asam-cmp.msg.lin.flags.short_dom_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0040, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4095 { &hf_cmp_lin_flag_long_dom_err, { "Long Dominant Error", "asam-cmp.msg.lin.flags.long_dom_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0080, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4096 { &hf_cmp_lin_flag_wup, { "Wake Up Request Detection (WUP)", "asam-cmp.msg.lin.flags.wup", FT_BOOLEAN, 16, NULL((void*)0), 0x0100, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4097 { &hf_cmp_lin_flag_reserved, { "Reserved", "asam-cmp.msg.lin.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFE00, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4098
4099 { &hf_cmp_lin_reserved, { "Reserved", "asam-cmp.msg.lin.res", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4100 { &hf_cmp_lin_pid, { "PID", "asam-cmp.msg.lin.pid", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4101 { &hf_cmp_lin_pid_id, { "ID", "asam-cmp.msg.lin.pid.id", FT_UINT8, BASE_HEX, NULL((void*)0), CMP_CANFD_PID_ID_MASK0x3f, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4102 { &hf_cmp_lin_pid_parity, { "Parity", "asam-cmp.msg.lin.pid.parity", FT_UINT8, BASE_HEX, NULL((void*)0), CMP_CANFD_PID_PARITY_MASK0xc0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4103 { &hf_cmp_lin_reserved_2, { "Reserved", "asam-cmp.msg.lin.res_2", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4104 { &hf_cmp_lin_checksum, { "Checksum", "asam-cmp.msg.lin.checksum", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4105 { &hf_cmp_lin_data_len, { "Data length", "asam-cmp.msg.lin.data_len", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4106
4107 /* FlexRay */
4108 { &hf_cmp_flexray_flags, { "Flags", "asam-cmp.msg.flexray.flags.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4109 { &hf_cmp_flexray_flag_crc_frame_err, { "Frame CRC Error", "asam-cmp.msg.flexray.flags.crc_frame_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4110 { &hf_cmp_flexray_flag_crc_header_err, { "Header CRC Error", "asam-cmp.msg.flexray.flags.crc_header_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4111 { &hf_cmp_flexray_flag_nf, { "Null Frame", "asam-cmp.msg.flexray.flags.nf", FT_BOOLEAN, 16, NULL((void*)0), CMP_FLEXRAY_FLAGS_NF0x0004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4112 { &hf_cmp_flexray_flag_sf, { "Startup Frame", "asam-cmp.msg.flexray.flags.sf", FT_BOOLEAN, 16, NULL((void*)0), 0x0008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4113 { &hf_cmp_flexray_flag_sync, { "Sync Frame", "asam-cmp.msg.flexray.flags.sync", FT_BOOLEAN, 16, NULL((void*)0), 0x0010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4114 { &hf_cmp_flexray_flag_wus, { "Wake Up Symbol", "asam-cmp.msg.flexray.flags.wus", FT_BOOLEAN, 16, NULL((void*)0), 0x0020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4115 { &hf_cmp_flexray_flag_ppi, { "Preamble Indicator", "asam-cmp.msg.flexray.flags.ppi", FT_BOOLEAN, 16, NULL((void*)0), 0x0040, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4116 { &hf_cmp_flexray_flag_cas, { "Collision avoidance Symbol (CAS)", "asam-cmp.msg.flexray.flags.cas", FT_BOOLEAN, 16, NULL((void*)0), 0x0080, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4117 { &hf_cmp_flexray_flag_leading, { "Leading", "asam-cmp.msg.flexray.flags.leading", FT_BOOLEAN, 16, TFS(&flexray_leading_following)((0 ? (const struct true_false_string*)0 : ((&flexray_leading_following
))))
, 0x0100, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4118 { &hf_cmp_flexray_flag_reserved_0x0100, { "Reserved", "asam-cmp.msg.flexray.flags.reserved_0x0100", FT_BOOLEAN, 16, NULL((void*)0), 0x0100, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4119 { &hf_cmp_flexray_flag_channel, { "Channel", "asam-cmp.msg.flexray.flags.channel", FT_BOOLEAN, 16, TFS(&flexray_channel_b_a)((0 ? (const struct true_false_string*)0 : ((&flexray_channel_b_a
))))
, 0x0200, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4120 { &hf_cmp_flexray_flag_reserved, { "Reserved", "asam-cmp.msg.flexray.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFC00, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4121
4122 { &hf_cmp_flexray_reserved, { "Reserved", "asam-cmp.msg.flexray.flags.res", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4123 { &hf_cmp_flexray_header_crc, { "Header CRC", "asam-cmp.msg.flexray.flags.header_crc", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4124 { &hf_cmp_flexray_frame_id, { "Frame ID", "asam-cmp.msg.flexray.flags.frame_id", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4125 { &hf_cmp_flexray_cycle, { "Cycle", "asam-cmp.msg.flexray.flags.cycle", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4126 { &hf_cmp_flexray_frame_crc, { "Frame CRC", "asam-cmp.msg.flexray.flags.frame_crc", FT_UINT24, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4127 { &hf_cmp_flexray_reserved_2, { "Reserved", "asam-cmp.msg.flexray.flags.res_2", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4128 { &hf_cmp_flexray_data_len, { "Data length", "asam-cmp.msg.flexray.flags.data_len", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4129
4130 /* Digital */
4131 { &hf_cmp_digital_flags, { "Flags", "asam-cmp.msg.digital.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4132 { &hf_cmp_digital_flag_trig_present, { "Trigger Information Present", "asam-cmp.msg.digital.flags.trigger_present", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4133 { &hf_cmp_digital_flag_sampl_present, { "Sampling Information Present", "asam-cmp.msg.digital.flags.sampling_present", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4134 { &hf_cmp_digital_flag_reserved, { "Reserved", "asam-cmp.msg.digital.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFFFC, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4135
4136 { &hf_cmp_digital_reserved, { "Reserved", "asam-cmp.msg.digital.res", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4137 { &hf_cmp_digital_pin_count, { "Pin Count", "asam-cmp.msg.digital.pin_count", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4138
4139 { &hf_cmp_digital_trig_pattern, { "Trigger Pattern", "asam-cmp.msg.digital.trigger.pattern", FT_UINT8, BASE_DEC, VALS(digital_trigger_pattern)((0 ? (const struct _value_string*)0 : ((digital_trigger_pattern
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4140 { &hf_cmp_digital_trig_pin, { "Trigger Pin", "asam-cmp.msg.digital.trigger.pin", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4141 { &hf_cmp_digital_flag_reserved2, { "Reserved", "asam-cmp.msg.digital.trigger.reserved2", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0 , NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4142
4143 { &hf_cmp_digital_sample_interval, { "Sample Interval", "asam-cmp.msg.digital.sample.interval", FT_FLOAT, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4144 { &hf_cmp_digital_sample_count, { "Sample Count", "asam-cmp.msg.digital.sample.count", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4145 { &hf_cmp_digital_sample, { "Sample", "asam-cmp.msg.digital.sample", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4146
4147 { &hf_cmp_digital_sample_pin_0, { "GPIO 0", "asam-cmp.msg.digital.sample.pin_0", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x01, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4148 { &hf_cmp_digital_sample_pin_1, { "GPIO 1", "asam-cmp.msg.digital.sample.pin_1", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x02, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4149 { &hf_cmp_digital_sample_pin_2, { "GPIO 2", "asam-cmp.msg.digital.sample.pin_2", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x04, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4150 { &hf_cmp_digital_sample_pin_3, { "GPIO 3", "asam-cmp.msg.digital.sample.pin_3", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x08, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4151 { &hf_cmp_digital_sample_pin_4, { "GPIO 4", "asam-cmp.msg.digital.sample.pin_4", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x10, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4152 { &hf_cmp_digital_sample_pin_5, { "GPIO 5", "asam-cmp.msg.digital.sample.pin_5", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x20, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4153 { &hf_cmp_digital_sample_pin_6, { "GPIO 6", "asam-cmp.msg.digital.sample.pin_6", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x40, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4154 { &hf_cmp_digital_sample_pin_7, { "GPIO 7", "asam-cmp.msg.digital.sample.pin_7", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x80, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4155
4156 { &hf_cmp_digital_sample_pin_8, { "GPIO 8", "asam-cmp.msg.digital.sample.pin_8", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x01, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4157 { &hf_cmp_digital_sample_pin_9, { "GPIO 9", "asam-cmp.msg.digital.sample.pin_9", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x02, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4158 { &hf_cmp_digital_sample_pin_10, { "GPIO 10", "asam-cmp.msg.digital.sample.pin_10", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x04, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4159 { &hf_cmp_digital_sample_pin_11, { "GPIO 11", "asam-cmp.msg.digital.sample.pin_11", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x08, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4160 { &hf_cmp_digital_sample_pin_12, { "GPIO 12", "asam-cmp.msg.digital.sample.pin_12", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x10, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4161 { &hf_cmp_digital_sample_pin_13, { "GPIO 13", "asam-cmp.msg.digital.sample.pin_13", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x20, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4162 { &hf_cmp_digital_sample_pin_14, { "GPIO 14", "asam-cmp.msg.digital.sample.pin_14", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x40, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4163 { &hf_cmp_digital_sample_pin_15, { "GPIO 15", "asam-cmp.msg.digital.sample.pin_15", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x80, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4164
4165 { &hf_cmp_digital_sample_pin_16, { "GPIO 16", "asam-cmp.msg.digital.sample.pin_16", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x01, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4166 { &hf_cmp_digital_sample_pin_17, { "GPIO 17", "asam-cmp.msg.digital.sample.pin_17", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x02, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4167 { &hf_cmp_digital_sample_pin_18, { "GPIO 18", "asam-cmp.msg.digital.sample.pin_18", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x04, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4168 { &hf_cmp_digital_sample_pin_19, { "GPIO 19", "asam-cmp.msg.digital.sample.pin_19", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x08, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4169 { &hf_cmp_digital_sample_pin_20, { "GPIO 20", "asam-cmp.msg.digital.sample.pin_20", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x10, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4170 { &hf_cmp_digital_sample_pin_21, { "GPIO 21", "asam-cmp.msg.digital.sample.pin_21", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x20, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4171 { &hf_cmp_digital_sample_pin_22, { "GPIO 22", "asam-cmp.msg.digital.sample.pin_22", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x40, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4172 { &hf_cmp_digital_sample_pin_23, { "GPIO 23", "asam-cmp.msg.digital.sample.pin_23", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x80, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4173
4174 { &hf_cmp_digital_sample_pin_24, { "GPIO 24", "asam-cmp.msg.digital.sample.pin_24", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x01, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4175 { &hf_cmp_digital_sample_pin_25, { "GPIO 25", "asam-cmp.msg.digital.sample.pin_25", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x02, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4176 { &hf_cmp_digital_sample_pin_26, { "GPIO 26", "asam-cmp.msg.digital.sample.pin_26", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x04, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4177 { &hf_cmp_digital_sample_pin_27, { "GPIO 27", "asam-cmp.msg.digital.sample.pin_27", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x08, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4178 { &hf_cmp_digital_sample_pin_28, { "GPIO 28", "asam-cmp.msg.digital.sample.pin_28", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x10, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4179 { &hf_cmp_digital_sample_pin_29, { "GPIO 29", "asam-cmp.msg.digital.sample.pin_29", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x20, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4180 { &hf_cmp_digital_sample_pin_30, { "GPIO 30", "asam-cmp.msg.digital.sample.pin_30", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x40, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4181 { &hf_cmp_digital_sample_pin_31, { "GPIO 31", "asam-cmp.msg.digital.sample.pin_31", FT_BOOLEAN, 8, TFS(&tfs_high_low)((0 ? (const struct true_false_string*)0 : ((&tfs_high_low
))))
, 0x80, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4182
4183 /* UART/RS-232 */
4184 { &hf_cmp_uart_flags, { "Flags", "asam-cmp.msg.uart.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4185 { &hf_cmp_uart_flag_cl, { "CL", "asam-cmp.msg.uart.flags.cl", FT_UINT16, BASE_HEX, VALS(uart_cl_names)((0 ? (const struct _value_string*)0 : ((uart_cl_names)))), 0x0007, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4186 { &hf_cmp_uart_flag_reserved, { "Reserved", "asam-cmp.msg.uart.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFFF8, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4187
4188 { &hf_cmp_uart_reserved, { "Reserved", "asam-cmp.msg.uart.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4189 { &hf_cmp_uart_data_len, { "Data entry count", "asam-cmp.msg.uart.data_len", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4190 { &hf_cmp_uart_data, { "Data", "asam-cmp.msg.uart.data", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4191 { &hf_cmp_uart_data_data, { "Data", "asam-cmp.msg.uart.data.data", FT_UINT16, BASE_HEX, NULL((void*)0), CMP_UART_DATA_DATA_MASK0x01FF, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4192 { &hf_cmp_uart_data_reserved, { "Reserved", "asam-cmp.msg.uart.data.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0x1E00, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4193 { &hf_cmp_uart_data_framing_err, { "Framing Error", "asam-cmp.msg.uart.flags.framing_err", FT_BOOLEAN, 16, NULL((void*)0), 0x2000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4194 { &hf_cmp_uart_data_break_condition, { "Break Condition", "asam-cmp.msg.uart.flags.break_condition", FT_BOOLEAN, 16, NULL((void*)0), 0x4000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4195 { &hf_cmp_uart_data_parity_err, { "Parity Error", "asam-cmp.msg.uart.data.parity_err", FT_BOOLEAN, 16, NULL((void*)0), 0x8000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4196
4197 /* Analog */
4198 { &hf_cmp_analog_flags, { "Flags", "asam-cmp.msg.analog.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4199 { &hf_cmp_analog_flag_sample_dt, { "Sample Datatype", "asam-cmp.msg.analog.flags.sample_dt", FT_UINT16, BASE_HEX, VALS(analog_sample_dt)((0 ? (const struct _value_string*)0 : ((analog_sample_dt)))), 0x0003, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4200 { &hf_cmp_analog_flag_reserved, { "Reserved", "asam-cmp.msg.analog.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xfffc, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4201
4202 { &hf_cmp_analog_reserved, { "Reserved", "asam-cmp.msg.analog.reserved", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4203 { &hf_cmp_analog_unit, { "Unit", "asam-cmp.msg.analog.unit", FT_UINT8, BASE_HEX, VALS(analog_units)((0 ? (const struct _value_string*)0 : ((analog_units)))), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4204 { &hf_cmp_analog_sample_interval, { "Sample Interval", "asam-cmp.msg.analog.sample_interval", FT_FLOAT, BASE_NONE|BASE_UNIT_STRING0x00001000, UNS(&units_seconds)((0 ? (const struct unit_name_string*)0 : ((&units_seconds
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4205 { &hf_cmp_analog_sample_offset, { "Sample Offset", "asam-cmp.msg.analog.sample_offset", FT_FLOAT, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4206 { &hf_cmp_analog_sample_scalar, { "Sample Scalar", "asam-cmp.msg.analog.sample_scalar", FT_FLOAT, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4207 { &hf_cmp_analog_sample, { "Sample", "asam-cmp.msg.analog.sample", FT_DOUBLE, BASE_EXP, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4208 { &hf_cmp_analog_sample_raw, { "Sample Raw", "asam-cmp.msg.analog.sample_raw", FT_INT32, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4209
4210 /* Ethernet */
4211 { &hf_cmp_eth_flags, { "Flags", "asam-cmp.msg.eth.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) }},
4212 { &hf_cmp_eth_flag_fcs_err, { "FCS Error", "asam-cmp.msg.eth.flags.crc_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4213 { &hf_cmp_eth_flag_short_err, { "Short Frame Error", "asam-cmp.msg.eth.flags.short_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4214 { &hf_cmp_eth_flag_tx_down, { "TX Port Down", "asam-cmp.msg.eth.flags.tx_down", FT_BOOLEAN, 16, NULL((void*)0), 0x0004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4215 { &hf_cmp_eth_flag_collision, { "Collision detected", "asam-cmp.msg.eth.flags.collision", FT_BOOLEAN, 16, NULL((void*)0), 0x0008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4216 { &hf_cmp_eth_flag_long_err, { "Long Frame Error", "asam-cmp.msg.eth.flags.long_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4217 { &hf_cmp_eth_flag_phy_err, { "PHY Error", "asam-cmp.msg.eth.flags.phy_err", FT_BOOLEAN, 16, NULL((void*)0), 0x0020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4218 { &hf_cmp_eth_flag_truncated, { "Frame truncated", "asam-cmp.msg.eth.flags.truncated", FT_BOOLEAN, 16, NULL((void*)0), 0x0040, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4219 { &hf_cmp_eth_flag_fcs_supported, { "FCS supported", "asam-cmp.msg.eth.flags.fcs_supported", FT_BOOLEAN, 16, NULL((void*)0), 0x0080, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4220 { &hf_cmp_eth_flag_reserved_cap, { "Reserved", "asam-cmp.msg.eth.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFF00, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4221
4222 { &hf_cmp_eth_flag_reserved_tx, { "Reserved", "asam-cmp.msg.eth.flags.reserved_tx", FT_UINT16, BASE_HEX, NULL((void*)0), 0x00FF, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4223 { &hf_cmp_eth_flag_fcs_sending, { "FCS sending", "asam-cmp.msg.eth.flags.fcs_sending", FT_BOOLEAN, 16, NULL((void*)0), 0x0100, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4224 { &hf_cmp_eth_flag_reserved_tx2, { "Reserved", "asam-cmp.msg.eth.flags.reserved_tx2", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFE00, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4225
4226 { &hf_cmp_eth_reserved, { "Reserved", "asam-cmp.msg.eth.res", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4227 { &hf_cmp_eth_payload_length, { "Data length", "asam-cmp.msg.eth.data_len", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4228
4229 /* SPI */
4230 { &hf_cmp_spi_flags, { "Flags", "asam-cmp.msg.spi.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4231 { &hf_cmp_spi_flag_reserved, { "Reserved", "asam-cmp.msg.spi.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFFFF, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4232
4233 { &hf_cmp_spi_reserved, { "Reserved", "asam-cmp.msg.spi.res", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4234 { &hf_cmp_spi_cipo_length, { "Controller In Peripheral Out Length", "asam-cmp.msg.spi.cipo_length", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4235 { &hf_cmp_spi_cipo, { "Controller In Peripheral Out (CIPO)", "asam-cmp.msg.spi.cipo", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4236 { &hf_cmp_spi_copi_length, { "Controller Out Peripheral In Length", "asam-cmp.msg.spi.copi_length", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4237 { &hf_cmp_spi_copi, { "Controller Out Peripheral In (COPI)", "asam-cmp.msg.spi.copi", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4238
4239 /* I2C */
4240 { &hf_cmp_i2c_flags, { "Flags", "asam-cmp.msg.i2c.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4241 { &hf_cmp_i2c_flag_dir, { "Direction", "asam-cmp.msg.i2c.flags.dir", FT_BOOLEAN, 16, TFS(&tfs_read_write)((0 ? (const struct true_false_string*)0 : ((&tfs_read_write
))))
, 0x0001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4242 { &hf_cmp_i2c_flag_addr_len, { "Address Length", "asam-cmp.msg.i2c.flags.addr_len", FT_BOOLEAN, 16, TFS(&i2c_addr_length)((0 ? (const struct true_false_string*)0 : ((&i2c_addr_length
))))
, 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4243 { &hf_cmp_i2c_flag_addr_ack, { "Address Ack", "asam-cmp.msg.i2c.flags.addr_ack", FT_BOOLEAN, 16, TFS(&i2c_nack_ack)((0 ? (const struct true_false_string*)0 : ((&i2c_nack_ack
))))
, 0x0004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4244 { &hf_cmp_i2c_flag_addr_err, { "Ack Error", "asam-cmp.msg.i2c.flags.ack_err", FT_BOOLEAN, 16, TFS(&cmp_err_noerr)((0 ? (const struct true_false_string*)0 : ((&cmp_err_noerr
))))
, 0x0008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4245 { &hf_cmp_i2c_flag_stop_cond, { "Stop Condition", "asam-cmp.msg.i2c.flags.stop_cond", FT_BOOLEAN, 16, TFS(&i2c_stop_repeated_start)((0 ? (const struct true_false_string*)0 : ((&i2c_stop_repeated_start
))))
, 0x0010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4246 { &hf_cmp_i2c_flag_start_cond, { "Start Condition", "asam-cmp.msg.i2c.flags.start_cond", FT_BOOLEAN, 16, TFS(&i2c_repeated_start_start)((0 ? (const struct true_false_string*)0 : ((&i2c_repeated_start_start
))))
, 0x0020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4247 { &hf_cmp_i2c_flag_reserved, { "Reserved", "asam-cmp.msg.i2c.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFFC0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4248
4249 { &hf_cmp_i2c_reserved, { "Reserved", "asam-cmp.msg.i2c.res", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4250 { &hf_cmp_i2c_addr, { "Address", "asam-cmp.msg.i2c.addr", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4251 { &hf_cmp_i2c_data_entry_count, { "Data Entry Count", "asam-cmp.msg.i2c.data_entry_count", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4252 { &hf_cmp_i2c_data, { "Data Entry", "asam-cmp.msg.i2c.data_entry", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4253 { &hf_cmp_i2c_data_byte, { "Data Byte", "asam-cmp.msg.i2c.data_entry.data", FT_UINT16, BASE_HEX, NULL((void*)0), 0x00FF, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4254 { &hf_cmp_i2c_data_control_ack, { "Ack", "asam-cmp.msg.i2c.data_entry.control.ack", FT_BOOLEAN, 16, TFS(&i2c_nack_ack)((0 ? (const struct true_false_string*)0 : ((&i2c_nack_ack
))))
, 0x0100, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4255 { &hf_cmp_i2c_data_control_res, { "Reserved", "asam-cmp.msg.i2c.data_entry.control.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFE00, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4256
4257 /* GigE Vision */
4258 { &hf_cmp_gige_flags, { "Flags", "asam-cmp.msg.gige.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4259 { &hf_cmp_gige_flag_reserved, { "Reserved", "asam-cmp.msg.gige.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFFFF, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4260
4261 { &hf_cmp_gige_reserved, { "Reserved", "asam-cmp.msg.gige.res", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4262 { &hf_cmp_gige_payload_length, { "Data length", "asam-cmp.msg.gige.data_len", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4263 { &hf_cmp_gige_payload, { "Data", "asam-cmp.msg.gige.data", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4264
4265 /* MIPI CSI-2 */
4266 { &hf_cmp_mipi_csi2_flags, { "Flags", "asam-cmp.msg.mipi_csi2.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4267 { &hf_cmp_mipi_csi2_flag_crc_err, { "CRC Error", "asam-cmp.msg.mipi_csi2.flags.crc_err", FT_BOOLEAN, 16, TFS(&cmp_err_noerr)((0 ? (const struct true_false_string*)0 : ((&cmp_err_noerr
))))
, 0x0001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4268 { &hf_cmp_mipi_csi2_flag_ecc_err_c, { "Correctable ECC Error", "asam-cmp.msg.mipi_csi2.flags.ecc_err_c", FT_BOOLEAN, 16, TFS(&cmp_err_noerr)((0 ? (const struct true_false_string*)0 : ((&cmp_err_noerr
))))
, 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4269 { &hf_cmp_mipi_csi2_flag_ecc_err_uc, { "Uncorrectable ECC Error", "asam-cmp.msg.mipi_csi2.flags.ecc_err_uc", FT_BOOLEAN, 16, TFS(&cmp_err_noerr)((0 ? (const struct true_false_string*)0 : ((&cmp_err_noerr
))))
, 0x0004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4270 { &hf_cmp_mipi_csi2_flag_ecc_fmt, { "ECC Format", "asam-cmp.msg.mipi_csi2.flags.ecc_fmt", FT_BOOLEAN, 16, TFS(&mipi_csi2_ecc_noecc)((0 ? (const struct true_false_string*)0 : ((&mipi_csi2_ecc_noecc
))))
, 0x0008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4271 { &hf_cmp_mipi_csi2_flag_frame_ctr_src, { "Frame Counter Source", "asam-cmp.msg.mipi_csi2.flags.frame_counter_source", FT_BOOLEAN, 16, TFS(&mipi_csi2_cmcounter_csicounter)((0 ? (const struct true_false_string*)0 : ((&mipi_csi2_cmcounter_csicounter
))))
, 0x0010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4272 { &hf_cmp_mipi_csi2_flag_line_ctr_src, { "Line Counter Source", "asam-cmp.msg.mipi_csi2.flags.line_counter_source", FT_BOOLEAN, 16, TFS(&mipi_csi2_cmcounter_csicounter)((0 ? (const struct true_false_string*)0 : ((&mipi_csi2_cmcounter_csicounter
))))
, 0x0020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4273 { &hf_cmp_mipi_csi2_flag_cs_support, { "Checksum Support", "asam-cmp.msg.mipi_csi2.flags.checksum_support", FT_BOOLEAN, 16, TFS(&tfs_supported_not_supported)((0 ? (const struct true_false_string*)0 : ((&tfs_supported_not_supported
))))
, 0x0040, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4274 { &hf_cmp_mipi_csi2_flag_reserved, { "Reserved", "asam-cmp.msg.mipi_csi2.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFF80, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4275
4276 { &hf_cmp_mipi_csi2_flag_reserved_tx, { "Reserved", "asam-cmp.msg.mipi_csi2.flags.reserved_tx", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFFFF, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4277
4278 { &hf_cmp_mipi_csi2_reserved, { "Reserved", "asam-cmp.msg.mipi_csi2.res", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4279 { &hf_cmp_mipi_csi2_frame_counter, { "Frame Counter", "asam-cmp.msg.mipi_csi2.frame_counter", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4280 { &hf_cmp_mipi_csi2_line_counter, { "Line Counter", "asam-cmp.msg.mipi_csi2.line_counter", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4281 { &hf_cmp_mipi_csi2_dt, { "Data Type", "asam-cmp.msg.mipi_csi2.data_type", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4282 { &hf_cmp_mipi_csi2_dt_res, { "Reserved", "asam-cmp.msg.mipi_csi2.data_type.res", FT_UINT8, BASE_HEX, NULL((void*)0), 0xC0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4283 { &hf_cmp_mipi_csi2_dt_dt, { "Data Type", "asam-cmp.msg.mipi_csi2.data_type.data_type", FT_UINT8, BASE_HEX, VALS(mipi_csi2_data_type_names)((0 ? (const struct _value_string*)0 : ((mipi_csi2_data_type_names
))))
, MIPI_CSI2_DT_BITS0x3F, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4284 { &hf_cmp_mipi_csi2_vci, { "Virtual Channel Identifier", "asam-cmp.msg.mipi_csi2.vci", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4285 { &hf_cmp_mipi_csi2_vci_res, { "Reserved", "asam-cmp.msg.mipi_csi2.vci.res", FT_UINT8, BASE_HEX, NULL((void*)0), 0xF0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4286 { &hf_cmp_mipi_csi2_vci_vcx, { "Virtual Channel Exctension", "asam-cmp.msg.mipi_csi2.vci.vcx", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0C, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4287 { &hf_cmp_mipi_csi2_vci_vci, { "Virtual Channel Identifier", "asam-cmp.msg.mipi_csi2.vci.vci", FT_UINT8, BASE_HEX, NULL((void*)0), 0x03, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4288 { &hf_cmp_mipi_csi2_reserved2, { "Reserved", "asam-cmp.msg.mipi_csi2.res2", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4289 { &hf_cmp_mipi_csi2_ecc, { "ECC", "asam-cmp.msg.mipi_csi2.ecc", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4290 { &hf_cmp_mipi_csi2_ecc_res, { "Reserved", "asam-cmp.msg.mipi_csi2.ecc.res", FT_UINT8, BASE_HEX, NULL((void*)0), 0xC0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4291 { &hf_cmp_mipi_csi2_ecc_ecc, { "ECC", "asam-cmp.msg.mipi_csi2.ecc.ecc", FT_UINT8, BASE_HEX, NULL((void*)0), 0x3F, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4292 { &hf_cmp_mipi_csi2_cs, { "Checksum", "asam-cmp.msg.mipi_csi2.checksum", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4293 { &hf_cmp_mipi_csi2_wc, { "Word Count", "asam-cmp.msg.mipi_csi2.word_count", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4294 { &hf_cmp_mipi_csi2_short_packet_data, { "Short Packet Data Field", "asam-cmp.msg.mipi_csi2.short_packet_data_field", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4295 { &hf_cmp_mipi_csi2_data, { "Data", "asam-cmp.msg.mipi_csi2.data", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4296
4297 /* Ethernet Raw */
4298 { &hf_cmp_raw_eth_flags, { "Flags", "asam-cmp.msg.raw_eth.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4299 { &hf_cmp_raw_eth_flag_reserved, { "Reserved", "asam-cmp.msg.raw_eth.flags.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0xFFFF, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4300
4301 { &hf_cmp_raw_eth_reserved, { "Reserved", "asam-cmp.msg.raw_eth.res", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4302 { &hf_cmp_raw_eth_payload_length, { "Data length", "asam-cmp.msg.raw_eth.data_len", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4303 { &hf_cmp_raw_eth_preamble, { "Preamble", "asam-cmp.msg.raw_eth.preamble", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4304 { &hf_cmp_raw_eth_sfd, { "SFD", "asam-cmp.msg.raw_eth.sfd", FT_UINT8, BASE_HEX, VALS(eth_raw_sfd)((0 ? (const struct _value_string*)0 : ((eth_raw_sfd)))), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4305 { &hf_cmp_raw_eth_mpacket, { "mPacket", "asam-cmp.msg.raw_eth.mpacket", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4306
4307 /* 10BASE-T1S Symbols */
4308 { &hf_cmp_10t1s_symb_flags, { "Flags", "asam-cmp.msg.10baset1s_symbols.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4309 { &hf_cmp_10t1s_symb_flag_decode_err, { "Decode Error", "asam-cmp.msg.10baset1s_symbols.flags.decode_error", FT_BOOLEAN, 16, TFS(&cmp_err_noerr)((0 ? (const struct true_false_string*)0 : ((&cmp_err_noerr
))))
, 0x0001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4310 { &hf_cmp_10t1s_symb_flag_miss_beacon, { "Missing Beacon Error", "asam-cmp.msg.10baset1s_symbols.flags.missing_beacon", FT_BOOLEAN, 16, TFS(&cmp_err_noerr)((0 ? (const struct true_false_string*)0 : ((&cmp_err_noerr
))))
, 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4311 { &hf_cmp_10t1s_symb_flag_res, { "Reserved", "asam-cmp.msg.10baset1s_symbols.flags.reserved", FT_BOOLEAN, 16, NULL((void*)0), 0x7FFC, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4312 { &hf_cmp_10t1s_symb_flag_first_beacon, { "First Beacon", "asam-cmp.msg.10baset1s_symbols.flags.first_beacon", FT_BOOLEAN, 16, TFS(&eth_10baset1s_firstbeacon_notfirstbeacon)((0 ? (const struct true_false_string*)0 : ((&eth_10baset1s_firstbeacon_notfirstbeacon
))))
, 0x8000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4313
4314 { &hf_cmp_10t1s_symb_data_length, { "Data length", "asam-cmp.msg.10baset1s_symbols.data_len", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4315 { &hf_cmp_10t1s_symb_data, { "Data", "asam-cmp.msg.10baset1s_symbols.data", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4316 { &hf_cmp_10t1s_symb_data_symbol, { "Symbol", "asam-cmp.msg.10baset1s_symbols.data.symbol", FT_UINT8, BASE_HEX, VALS(eth_10baset1s_symbol_names)((0 ? (const struct _value_string*)0 : ((eth_10baset1s_symbol_names
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4317
4318 /* A2B */
4319 { &hf_cmp_a2b_flags, { "Flags", "asam-cmp.msg.a2b.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4320 { &hf_cmp_a2b_flag_fin, { "Switch Activation Finished", "asam-cmp.msg.a2b.flags.fin", FT_BOOLEAN, 16, TFS(&a2b_switch_closed_open)((0 ? (const struct true_false_string*)0 : ((&a2b_switch_closed_open
))))
, 00001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4321 { &hf_cmp_a2b_flag_fault_err, { "Cable Fault (FAULT)", "asam-cmp.msg.a2b.flags.fault_err", FT_BOOLEAN, 16, TFS(&a2b_cable_fault_no_fault)((0 ? (const struct true_false_string*)0 : ((&a2b_cable_fault_no_fault
))))
, 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4322 { &hf_cmp_a2b_flag_fault_code, { "Cable Fault Code (FAULT_CODE)", "asam-cmp.msg.a2b.flags.fault_code", FT_UINT16, BASE_DEC, VALS(a2b_fault_code_names)((0 ? (const struct _value_string*)0 : ((a2b_fault_code_names
))))
, 0x001c, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4323 { &hf_cmp_a2b_flag_fault_nloc, { "Cable Fault Not Localized (FAULT_NLOC)", "asam-cmp.msg.a2b.flags.fault_nloc", FT_BOOLEAN, 16, TFS(&a2b_cable_fault_not_localized_localized)((0 ? (const struct true_false_string*)0 : ((&a2b_cable_fault_not_localized_localized
))))
, 0x0020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4324 { &hf_cmp_a2b_flag_hdcnt_err, { "Header Count Error (HDCNTERR)", "asam-cmp.msg.a2b.flags.hdcnt_err", FT_BOOLEAN, 16, TFS(&tfs_enabled_disabled)((0 ? (const struct true_false_string*)0 : ((&tfs_enabled_disabled
))))
, 0x0040, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4325 { &hf_cmp_a2b_flag_dd_err, { "Data Decoding Error (DDERR)", "asam-cmp.msg.a2b.flags.dd_err", FT_BOOLEAN, 16, TFS(&a2b_data_decode_error_no_error)((0 ? (const struct true_false_string*)0 : ((&a2b_data_decode_error_no_error
))))
, 0x0080, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4326 { &hf_cmp_a2b_flag_crc_err, { "CRC Error (CRCERR)", "asam-cmp.msg.a2b.flags.crc_err", FT_BOOLEAN, 16, TFS(&a2b_crc_error_no_error)((0 ? (const struct true_false_string*)0 : ((&a2b_crc_error_no_error
))))
, 0x0100, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4327 { &hf_cmp_a2b_flag_dp_err, { "Data Parity Error (DPERR)", "asam-cmp.msg.a2b.flags.dp_err", FT_BOOLEAN, 16, TFS(&a2b_data_parity_error_no_error)((0 ? (const struct true_false_string*)0 : ((&a2b_data_parity_error_no_error
))))
, 0x0200, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4328 { &hf_cmp_a2b_flag_pwd_err, { "Downstream Power Switch Error (PWRERR)", "asam-cmp.msg.a2b.flags.pwr_err", FT_BOOLEAN, 16, TFS(&a2b_downstream_power_switch_error_no_error)((0 ? (const struct true_false_string*)0 : ((&a2b_downstream_power_switch_error_no_error
))))
, 0x0400, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4329 { &hf_cmp_a2b_flag_becovf_err, { "Bit Error Count Error (BECOVFERR)", "asam-cmp.msg.a2b.flags.becovf_err", FT_BOOLEAN, 16, TFS(&a2b_bit_error_count_error_no_error)((0 ? (const struct true_false_string*)0 : ((&a2b_bit_error_count_error_no_error
))))
, 0x0800, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4330 { &hf_cmp_a2b_flag_srf_err, { "SRF Miss Error (SRFERR)", "asam-cmp.msg.a2b.flags.srf_err", FT_BOOLEAN, 16, TFS(&a2b_srf_miss_error_no_error)((0 ? (const struct true_false_string*)0 : ((&a2b_srf_miss_error_no_error
))))
, 0x1000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4331 { &hf_cmp_a2b_flag_srfcrc_err, { "SRF CRC Error (SRFCRCERR Subordinate Node Only)", "asam-cmp.msg.a2b.flags.srfcrc_err", FT_BOOLEAN, 16, TFS(&a2b_srf_crc_error_no_error)((0 ? (const struct true_false_string*)0 : ((&a2b_srf_crc_error_no_error
))))
, 0x2000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4332 { &hf_cmp_a2b_flag_icrc_err, { "Interrupt Frame CRC Error (ICRCERR)", "asam-cmp.msg.a2b.flags.icrc_err", FT_BOOLEAN, 16, TFS(&a2b_iocrc_error_no_error)((0 ? (const struct true_false_string*)0 : ((&a2b_iocrc_error_no_error
))))
, 0x4000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4333 { &hf_cmp_a2b_flag_i2c_err, { "I2C Transaction Error (I2CERR)", "asam-cmp.msg.a2b.flags.i2c_err", FT_BOOLEAN, 16, TFS(&a2b_i2c_transaction_error_no_error)((0 ? (const struct true_false_string*)0 : ((&a2b_i2c_transaction_error_no_error
))))
, 0x8000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4334
4335 { &hf_cmp_a2b_reserved, { "Reserved", "asam-cmp.msg.a2b.reserved", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4336 { &hf_cmp_a2b_upstream_set, { "Upstream Settings", "asam-cmp.msg.a2b.upstream_settings", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4337 { &hf_cmp_a2b_upstream_set_upfmt, { "Upstream Format", "asam-cmp.msg.a2b.upstream_settings.upfmt", FT_BOOLEAN, 16, TFS(&a2b_fmt_alternate_normal)((0 ? (const struct true_false_string*)0 : ((&a2b_fmt_alternate_normal
))))
, 0x0001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4338 { &hf_cmp_a2b_upstream_set_ups, { "Upstream Slots Enabled", "asam-cmp.msg.a2b.upstream_settings.ups", FT_BOOLEAN, 16, NULL((void*)0), 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4339 { &hf_cmp_a2b_upstream_set_upsize, { "Upstream Slot Size", "asam-cmp.msg.a2b.upstream_settings.upsize", FT_UINT16, BASE_HEX, VALS(a2b_slot_sizes)((0 ? (const struct _value_string*)0 : ((a2b_slot_sizes)))), 0x001C, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4340 { &hf_cmp_a2b_upstream_set_upslots, { "Number of Upstream Slots", "asam-cmp.msg.a2b.upstream_settings.upslots", FT_UINT16, BASE_DEC, NULL((void*)0), 0x07E0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4341 { &hf_cmp_a2b_upstream_set_upoffset, { "Upstream Channel Offset", "asam-cmp.msg.a2b.upstream_settings.upoffset", FT_UINT16, BASE_DEC, NULL((void*)0), 0xF800, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4342
4343 { &hf_cmp_a2b_downstream_set, { "Downstream Settings", "asam-cmp.msg.a2b.downstream_settings", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4344 { &hf_cmp_a2b_downstream_set_dnfmt, { "Downstream Format", "asam-cmp.msg.a2b.downstream_settings.dnfmt", FT_BOOLEAN, 16, TFS(&a2b_fmt_alternate_normal)((0 ? (const struct true_false_string*)0 : ((&a2b_fmt_alternate_normal
))))
, 0x0001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4345 { &hf_cmp_a2b_downstream_set_dns, { "Downstream Slots Enabled", "asam-cmp.msg.a2b.downstream_settings.dns", FT_BOOLEAN, 16, NULL((void*)0), 0x0002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4346 { &hf_cmp_a2b_downstream_set_dnsize, { "Downstream Slot Size", "asam-cmp.msg.a2b.downstream_settings.dnsize", FT_UINT16, BASE_HEX, VALS(a2b_slot_sizes)((0 ? (const struct _value_string*)0 : ((a2b_slot_sizes)))), 0x001C, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4347 { &hf_cmp_a2b_downstream_set_dnslots, { "Number of Downstream Slots", "asam-cmp.msg.a2b.downstream_settings.dnslots", FT_UINT16, BASE_DEC, NULL((void*)0), 0x07E0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4348 { &hf_cmp_a2b_downstream_set_dnoffset, { "Downstream Channel Offset", "asam-cmp.msg.a2b.downstream_settings.dnoffset", FT_UINT16, BASE_DEC, NULL((void*)0), 0xF800, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4349
4350 { &hf_cmp_a2b_general_set, { "General Settings", "asam-cmp.msg.a2b.general_settings", FT_UINT64, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4351 { &hf_cmp_a2b_general_set_mstr, { "Main Node Enable", "asam-cmp.msg.a2b.general_settings.mstr", FT_BOOLEAN, 64, NULL((void*)0), 0x0000000000000001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4352 { &hf_cmp_a2b_general_set_standby, { "Standby Mode Enable", "asam-cmp.msg.a2b.general_settings.standby", FT_BOOLEAN, 64, NULL((void*)0), 0x0000000000000002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4353 { &hf_cmp_a2b_general_set_endsniff, { "Bus Monitor Node Data Output Enable", "asam-cmp.msg.a2b.general_settings.endsniff", FT_BOOLEAN, 64, NULL((void*)0), 0x0000000000000004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4354 { &hf_cmp_a2b_general_set_discvd, { "Node Discovered", "asam-cmp.msg.a2b.general_settings.discvd", FT_BOOLEAN, 64, NULL((void*)0), 0x0000000000000008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4355 { &hf_cmp_a2b_general_set_tx2pintl, { "TX 2 Pin Interleave", "asam-cmp.msg.a2b.general_settings.tx2pintl", FT_BOOLEAN, 64, NULL((void*)0), 0x0000000000000010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4356 { &hf_cmp_a2b_general_set_rx2pintl, { "RX 2 Pin Interleave", "asam-cmp.msg.a2b.general_settings.rx2pintl", FT_BOOLEAN, 64, NULL((void*)0), 0x0000000000000020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4357 { &hf_cmp_a2b_general_set_tdmmode, { "TDM Mode", "asam-cmp.msg.a2b.general_settings.tdmmode", FT_UINT64, BASE_HEX|BASE_VAL64_STRING0x00000400, VALS64(a2b_tdmmode_values)((0 ? (const struct _val64_string*)0 : ((a2b_tdmmode_values))
))
, 0x00000000000001C0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4358 { &hf_cmp_a2b_general_set_tdmss, { "TDM Channel Size", "asam-cmp.msg.a2b.general_settings.tdmss", FT_BOOLEAN, 64, TFS(&a2b_tdmss_16_32)((0 ? (const struct true_false_string*)0 : ((&a2b_tdmss_16_32
))))
, 0x0000000000000200, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4359 { &hf_cmp_a2b_general_set_bmmen, { "Bus Monitor Mode Enable", "asam-cmp.msg.a2b.general_settings.bmmen", FT_BOOLEAN, 64, NULL((void*)0), 0x0000000000000400, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4360 { &hf_cmp_a2b_general_set_bclkrate, { "BCLK Frequency Select", "asam-cmp.msg.a2b.general_settings.bclkrate", FT_UINT64, BASE_HEX|BASE_VAL64_STRING0x00000400, VALS64(a2b_blckrate_values)((0 ? (const struct _val64_string*)0 : ((a2b_blckrate_values)
)))
, 0x0000000000003800, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4361 { &hf_cmp_a2b_general_set_i2srate, { "I2S Rate Select", "asam-cmp.msg.a2b.general_settings.i2srate", FT_UINT64, BASE_HEX|BASE_VAL64_STRING0x00000400, VALS64(a2b_i2srate_values)((0 ? (const struct _val64_string*)0 : ((a2b_i2srate_values))
))
, 0x000000000001C000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4362 { &hf_cmp_a2b_general_set_txoffset, { "TX Offset", "asam-cmp.msg.a2b.general_settings.txoffset", FT_UINT64, BASE_HEX, NULL((void*)0), 0x00000000007E0000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4363 { &hf_cmp_a2b_general_set_rxoffset, { "RX Offset", "asam-cmp.msg.a2b.general_settings.rxoffset", FT_UINT64, BASE_HEX, NULL((void*)0), 0x000000001F800000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4364 { &hf_cmp_a2b_general_set_syncoffset, { "SYNC Offset", "asam-cmp.msg.a2b.general_settings.syncoffset", FT_UINT64, BASE_HEX, NULL((void*)0), 0x0000001FE0000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4365 { &hf_cmp_a2b_general_set_rrdiv, { "Reduced Rate Divide Select", "asam-cmp.msg.a2b.general_settings.rrdiv", FT_UINT64, BASE_DEC|BASE_VAL64_STRING0x00000400, VALS64(a2b_rrdiv_values)((0 ? (const struct _val64_string*)0 : ((a2b_rrdiv_values)))), 0x000007E000000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4366 { &hf_cmp_a2b_general_set_rrsoffset, { "Reduced Rate SYNC Offset Select", "asam-cmp.msg.a2b.general_settings.rrsoffset", FT_UINT64, BASE_DEC|BASE_VAL64_STRING0x00000400, VALS64(a2b_rrsoffset_values)((0 ? (const struct _val64_string*)0 : ((a2b_rrsoffset_values
))))
, 0x0000180000000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4367 { &hf_cmp_a2b_general_set_reserved, { "Reserved", "asam-cmp.msg.a2b.general_settings.reserved", FT_UINT64, BASE_HEX, NULL((void*)0), 0x7FFFE00000000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4368 { &hf_cmp_a2b_general_set_raw_cap, { "Raw Capturing", "asam-cmp.msg.a2b.general_settings.raw_capturing", FT_BOOLEAN, 64, TFS(&a2b_raw_capturing)((0 ? (const struct true_false_string*)0 : ((&a2b_raw_capturing
))))
, 0x8000000000000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)}},
4369
4370 { &hf_cmp_a2b_data_length, { "Data Length", "asam-cmp.msg.a2b.data_length", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4371 { &hf_cmp_a2b_data, { "Data", "asam-cmp.msg.a2b.data", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4372
4373 /* Link State */
4374 { &hf_cmp_link_state_flags, { "Flags", "asam-cmp.msg.link_state.flags", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4375 { &hf_cmp_link_state_flag_link_err, { "Link Error", "asam-cmp.msg.link_state.flags.link_err", FT_BOOLEAN, 16, TFS(&cmp_err_noerr)((0 ? (const struct true_false_string*)0 : ((&cmp_err_noerr
))))
, 0x0001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4376 { &hf_cmp_link_state_flag_reserved, { "Reserved", "asam-cmp.msg.link_state.flags.reserved", FT_BOOLEAN, 16, NULL((void*)0), 0xFFFE, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4377
4378 { &hf_cmp_link_state_flag_reserved_tx, { "Reserved", "asam-cmp.msg.link_state.flags.reserved_tx", FT_BOOLEAN, 16, NULL((void*)0), 0xFFFF, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4379
4380 { &hf_cmp_link_state_interface_status, { "Interface Status", "asam-cmp.msg.link_state.interface_status", FT_UINT8, BASE_HEX, VALS(link_state_names)((0 ? (const struct _value_string*)0 : ((link_state_names)))), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0)} },
4381 { &hf_cmp_link_state_reserved, { "Reserved", "asam-cmp.msg.link_state.reserved", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4382
4383 /* User-Defined */
4384 { &hf_cmp_vendor_def_vendor_id, { "Vendor ID", "asam-cmp.msg.vendor_def.vendor_id", FT_UINT16, BASE_HEX, VALS(vendor_ids)((0 ? (const struct _value_string*)0 : ((vendor_ids)))), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4385 { &hf_cmp_vendor_def_vendor_payload_type, { "Vendor Payload Type", "asam-cmp.msg.vendor_def.payload_type", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4386 { &hf_cmp_vendor_def_vendor_payload_data, { "Vendor Payload", "asam-cmp.msg.vendor_def.payload", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4387
4388 /* Control Message Payloads */
4389 /* Data Sink Ready */
4390 { &hf_cmp_ctrl_msg_device_id, { "Device ID", "asam-cmp.msg.dsr.device_id", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4391
4392 /* User Event */
4393 { &hf_cmp_ctrl_msg_event_id, { "Event ID", "asam-cmp.msg.ue.event_id", FT_UINT32, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4394
4395 /* Vendor specific */
4396 { &hf_cmp_ctrl_msg_vendor_id, { "Vendor ID", "asam-cmp.msg.vs.vendor_id", FT_UINT16, BASE_HEX, VALS(vendor_ids)((0 ? (const struct _value_string*)0 : ((vendor_ids)))), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4397 { &hf_cmp_ctrl_msg_vendor_payload_type, { "Payload Type", "asam-cmp.msg.vs.payload_type", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4398
4399 /* Status Message Payloads */
4400 /* Capture Module Status Message */
4401 { &hf_cmp_status_msg_cm_uptime_ns, { "Uptime (ns)", "asam-cmp.msg.cm.uptime_ns", FT_UINT64, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4402 { &hf_cmp_status_msg_cm_uptime_s, { "Uptime (s)", "asam-cmp.msg.cm.uptime_s", FT_UINT64, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4403 { &hf_cmp_status_msg_gm_identity, { "gPTP grandmasterIdentity", "asam-cmp.msg.cm.gm_identity", FT_UINT64, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4404 { &hf_cmp_status_msg_gm_clock_quality, { "gPTP grandmasterClockQuality", "asam-cmp.msg.cm.gm_clock_quality", FT_UINT32, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4405 { &hf_cmp_status_msg_current_utc_offset, { "gPTP currentUtcOffset", "asam-cmp.msg.cm.current_utc_offset", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4406 { &hf_cmp_status_msg_time_source, { "gPTP timeSource", "asam-cmp.msg.cm.time_source", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4407 { &hf_cmp_status_msg_domain_num, { "gPTP domainNumber", "asam-cmp.msg.cm.domain_number", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4408 { &hf_cmp_status_msg_res, { "Reserved", "asam-cmp.msg.cm.res", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4409 { &hf_cmp_gptp_flags, { "gPTP Flags", "asam-cmp.msg.cm.gptp_flags", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4410
4411 { &hf_cmp_gptp_flags_leap61, { "Leap61", "asam-cmp.msg.cm.gptp_flags.leap61", FT_BOOLEAN, 8, NULL((void*)0), 0x01, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4412 { &hf_cmp_gptp_flags_leap59, { "Leap59", "asam-cmp.msg.cm.gptp_flags.leap59", FT_BOOLEAN, 8, NULL((void*)0), 0x02, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4413 { &hf_cmp_gptp_flags_cur_utco_valid, { "Current UTC Offset Valid", "asam-cmp.msg.cm.gptp_flags.current_utco_valid", FT_BOOLEAN, 8, NULL((void*)0), 0x04, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4414 { &hf_cmp_gptp_flags_ptp_timescale, { "PTP Timescale", "asam-cmp.msg.cm.gptp_flags.ptp_timescale", FT_BOOLEAN, 8, NULL((void*)0), 0x08, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4415 { &hf_cmp_gptp_flags_time_traceable, { "Time Traceable", "asam-cmp.msg.cm.gptp_flags.time_traceable", FT_BOOLEAN, 8, NULL((void*)0), 0x10, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4416 { &hf_cmp_gptp_flags_freq_traceable, { "Frequency Traceable", "asam-cmp.msg.cm.gptp_flags.freq_traceable", FT_BOOLEAN, 8, NULL((void*)0), 0x20, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4417 { &hf_cmp_gptp_flags_reserved, { "Reserved", "asam-cmp.msg.cm.gptp_flags.res", FT_UINT8, BASE_HEX, NULL((void*)0), 0xC0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4418
4419 { &hf_cmp_status_dev_desc_length, { "Length of Device Description", "asam-cmp.msg.cm.dev_desc_len", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4420 { &hf_cmp_status_dev_desc, { "Device Description", "asam-cmp.msg.cm.dev_desc", FT_STRING, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4421 { &hf_cmp_status_sn_length, { "Length of Serial Number", "asam-cmp.msg.cm.sn_len", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4422 { &hf_cmp_status_sn, { "Serial Number (SN)", "asam-cmp.msg.cm.sn", FT_STRING, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4423 { &hf_cmp_status_hw_ver_length, { "Length of Hardware Version", "asam-cmp.msg.cm.hw_ver_len", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4424 { &hf_cmp_status_hw_ver, { "HW version", "asam-cmp.msg.cm.hw_ver", FT_STRING, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4425 { &hf_cmp_status_sw_ver_length, { "Length of Software Version", "asam-cmp.msg.cm.sw_ver_len", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4426 { &hf_cmp_status_sw_ver, { "SW version", "asam-cmp.msg.cm.sw_ver", FT_STRING, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4427 { &hf_cmp_status_vendor_data_length, { "Length of Vendor Data", "asam-cmp.msg.cm.vendor_data_len", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4428 { &hf_cmp_status_vendor_data, { "Vendor Data", "asam-cmp.msg.cm.vendor_data", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4429
4430 /* Technica Engineering Vendor Data */
4431 { &hf_cmp_status_technica_major, { "Major Version", "asam-cmp.msg.cm.vendor_data.technica.major", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4432 { &hf_cmp_status_technica_minor, { "Minor Version", "asam-cmp.msg.cm.vendor_data.technica.minor", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4433 { &hf_cmp_status_technica_product_id, { "Product Identifier", "asam-cmp.msg.cm.vendor_data.technica.product_id", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4434 { &hf_cmp_status_technica_reserved, { "Reserved", "asam-cmp.msg.cm.vendor_data.technica.reserved", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4435 { &hf_cmp_status_technica_meas_size, { "Measurements Size", "asam-cmp.msg.cm.vendor_data.technica.meas_size", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4436 { &hf_cmp_status_technica_meas, { "Measurements Data", "asam-cmp.msg.cm.vendor_data.technica.meas", FT_PROTOCOL, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4437 { &hf_cmp_status_technica_meas_flags, { "Flags", "asam-cmp.msg.cm.vendor_data.technica.flags", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4438 { &hf_cmp_status_technica_meas_flag_res, { "Reserved", "asam-cmp.msg.cm.vendor_data.technica.flags.reserved", FT_UINT8, BASE_HEX, NULL((void*)0), 0xFE, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4439 { &hf_cmp_status_technica_meas_flag_ovfl, { "Buffer Overflow", "asam-cmp.msg.cm.vendor_data.technica.flags.overflow", FT_BOOLEAN, 8, TFS(&tfs_technica_buffer_overflow)((0 ? (const struct true_false_string*)0 : ((&tfs_technica_buffer_overflow
))))
, 0x01, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4440 { &hf_cmp_status_technica_fill_level, { "Buffer Fill Level", "asam-cmp.msg.cm.vendor_data.technica.fill_level", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4441 { &hf_cmp_status_technica_buffer_size_mbit, { "Buffer Size", "asam-cmp.msg.cm.vendor_data.technica.buffer_size", FT_UINT32, BASE_DEC|BASE_UNIT_STRING0x00001000, UNS(&units_technica_mbit)((0 ? (const struct unit_name_string*)0 : ((&units_technica_mbit
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4442 { &hf_cmp_status_technica_voltage, { "Voltage", "asam-cmp.msg.cm.vendor_data.technica.voltage", FT_FLOAT, BASE_NONE|BASE_UNIT_STRING0x00001000, UNS(&units_volt)((0 ? (const struct unit_name_string*)0 : ((&units_volt))
))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4443 { &hf_cmp_status_technica_temp_chassis, { "Chassis Temperature", "asam-cmp.msg.cm.vendor_data.technica.temp_chassis", FT_FLOAT, BASE_NONE|BASE_UNIT_STRING0x00001000, UNS(&units_degree_celsius)((0 ? (const struct unit_name_string*)0 : ((&units_degree_celsius
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4444 { &hf_cmp_status_technica_temp_silicon, { "Silicon Temperature", "asam-cmp.msg.cm.vendor_data.technica.temp_silicon", FT_FLOAT, BASE_NONE|BASE_UNIT_STRING0x00001000, UNS(&units_degree_celsius)((0 ? (const struct unit_name_string*)0 : ((&units_degree_celsius
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4445 { &hf_cmp_status_technica_props_size, { "Properties Size", "asam-cmp.msg.cm.vendor_data.technica.props_size", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4446 { &hf_cmp_status_technica_props, { "Properties Data", "asam-cmp.msg.cm.vendor_data.technica.props", FT_NONE, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4447 { &hf_cmp_status_technica_prop, { "Property", "asam-cmp.msg.cm.vendor_data.technica.prop", FT_STRING, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4448 { &hf_cmp_status_technica_leg_fill_level, { "Buffer Fill Level", "asam-cmp.msg.cm.vendor_data.technica_legacy.fill_level", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4449 { &hf_cmp_status_technica_leg_overflow, { "Buffer Overflow", "asam-cmp.msg.cm.vendor_data.technica_legacy.overflow", FT_BOOLEAN, BASE_NONE, TFS(&tfs_technica_buffer_overflow)((0 ? (const struct true_false_string*)0 : ((&tfs_technica_buffer_overflow
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4450 { &hf_cmp_status_technica_leg_buf_s_gbit, { "Buffer Size", "asam-cmp.msg.cm.vendor_data.technica_legacy.buffer_size", FT_UINT32, BASE_DEC|BASE_UNIT_STRING0x00001000, UNS(&units_technica_gbit)((0 ? (const struct unit_name_string*)0 : ((&units_technica_gbit
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4451 { &hf_cmp_status_technica_leg_voltage_int, { "Voltage Integer Part", "asam-cmp.msg.cm.vendor_data.technica_legacy.voltage_int", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4452 { &hf_cmp_status_technica_leg_voltage_frac, { "Voltage Fractional Part", "asam-cmp.msg.cm.vendor_data.technica_legacy.voltage_frac", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4453 { &hf_cmp_status_technica_leg_voltage, { "Voltage", "asam-cmp.msg.cm.vendor_data.technica_legacy.voltage", FT_DOUBLE, BASE_NONE|BASE_UNIT_STRING0x00001000, UNS(&units_volt)((0 ? (const struct unit_name_string*)0 : ((&units_volt))
))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4454 { &hf_cmp_status_technica_leg_temp_chassis, { "Chassis Temperature", "asam-cmp.msg.cm.vendor_data.technica_legacy.temp_chassis", FT_INT8, BASE_DEC|BASE_UNIT_STRING0x00001000, UNS(&units_degree_celsius)((0 ? (const struct unit_name_string*)0 : ((&units_degree_celsius
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4455 { &hf_cmp_status_technica_leg_temp_silicon, { "Silicon Temperature", "asam-cmp.msg.cm.vendor_data.technica_legacy.temp_silicon", FT_INT8, BASE_DEC|BASE_UNIT_STRING0x00001000, UNS(&units_degree_celsius)((0 ? (const struct unit_name_string*)0 : ((&units_degree_celsius
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4456
4457 /* Interface Status Message */
4458 { &hf_cmp_iface_interface, { "Interface", "asam-cmp.msg.iface", FT_PROTOCOL, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4459 { &hf_cmp_iface_iface_id, { "Interface ID", "asam-cmp.msg.iface.iface_id", FT_UINT32, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4460 { &hf_cmp_iface_msg_total_rx, { "Messages Total RX", "asam-cmp.msg.iface.msg_total_rx", FT_UINT32, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4461 { &hf_cmp_iface_msg_total_tx, { "Messages Total TX", "asam-cmp.msg.iface.msg_total_tx", FT_UINT32, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4462 { &hf_cmp_iface_msg_dropped_rx, { "Messages Dropped RX", "asam-cmp.msg.iface.msg_drop_rx", FT_UINT32, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4463 { &hf_cmp_iface_msg_dropped_tx, { "Messages Dropped TX", "asam-cmp.msg.iface.msg_drop_tx", FT_UINT32, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4464 { &hf_cmp_iface_errs_total_rx, { "Errors Total RX", "asam-cmp.msg.iface.errors_total_rx", FT_UINT32, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4465 { &hf_cmp_iface_errs_total_tx, { "Errors Total TX", "asam-cmp.msg.iface.errors_total_tx", FT_UINT32, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4466 { &hf_cmp_iface_iface_type, { "Interface Type", "asam-cmp.msg.iface.interface_type", FT_UINT8, BASE_HEX, VALS(data_msg_type_names)((0 ? (const struct _value_string*)0 : ((data_msg_type_names)
)))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4467 { &hf_cmp_iface_iface_status, { "Interface Status", "asam-cmp.msg.iface.interface_status", FT_UINT8, BASE_HEX, VALS(interface_status_names)((0 ? (const struct _value_string*)0 : ((interface_status_names
))))
, 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4468 { &hf_cmp_iface_stream_id_cnt, { "Stream ID count", "asam-cmp.msg.iface.stream_id_count", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4469 { &hf_cmp_iface_reserved, { "Reserved", "asam-cmp.msg.iface.res", FT_UINT16, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4470
4471 /* TODO: Update to CMP 1.1!!! */
4472 { &hf_cmp_iface_feat, { "Feature Support Bitmask", "asam-cmp.msg.iface.feat_supp", FT_UINT32, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4473
4474 { &hf_cmp_iface_feat_can_crr_err, { "CRC Error Supported", "asam-cmp.msg.iface.feat_supp.can.crc_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4475 { &hf_cmp_iface_feat_can_ack_err, { "Ack Error Supported", "asam-cmp.msg.iface.feat_supp.can.ack_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4476 { &hf_cmp_iface_feat_can_pas_ack, { "Passive Ack Supported", "asam-cmp.msg.iface.feat_supp.can.pas_ack", FT_BOOLEAN, 32, NULL((void*)0), 0x00000004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4477 { &hf_cmp_iface_feat_can_act_ack, { "Active Ack Supported", "asam-cmp.msg.iface.feat_supp.can.act_ack", FT_BOOLEAN, 32, NULL((void*)0), 0x00000008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4478 { &hf_cmp_iface_feat_can_ack_del_err, { "Ack Del Error Supported", "asam-cmp.msg.iface.feat_supp.can.ack_del_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4479 { &hf_cmp_iface_feat_can_form_err, { "Form Error Supported", "asam-cmp.msg.iface.feat_supp.can.form_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4480 { &hf_cmp_iface_feat_can_stuff_err, { "Stuff Error Supported", "asam-cmp.msg.iface.feat_supp.can.stuff_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000040, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4481 { &hf_cmp_iface_feat_can_crc_del_err, { "CRC Del Error Supported", "asam-cmp.msg.iface.feat_supp.can.crc_del_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000080, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4482 { &hf_cmp_iface_feat_can_eof_err, { "EOF Error Supported", "asam-cmp.msg.iface.feat_supp.can.eof_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000100, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4483 { &hf_cmp_iface_feat_can_bit_err, { "Bit Error Supported", "asam-cmp.msg.iface.feat_supp.can.bit_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000200, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4484 { &hf_cmp_iface_feat_can_r0, { "R0 Supported", "asam-cmp.msg.iface.feat_supp.can.r0", FT_BOOLEAN, 32, NULL((void*)0), 0x00000400, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4485 { &hf_cmp_iface_feat_can_srr_dom, { "SRR Dom Supported", "asam-cmp.msg.iface.feat_supp.can.srr_dom", FT_BOOLEAN, 32, NULL((void*)0), 0x00000800, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4486 { &hf_cmp_iface_feat_can_gen_err, { "Generic Error Supported", "asam-cmp.msg.iface.feat_supp.can.gen_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00004000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4487
4488 { &hf_cmp_iface_feat_canfd_crr_err, { "CRC Error Supported", "asam-cmp.msg.iface.feat_supp.canfd.crc_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4489 { &hf_cmp_iface_feat_canfd_ack_err, { "Ack Error Supported", "asam-cmp.msg.iface.feat_supp.canfd.ack_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4490 { &hf_cmp_iface_feat_canfd_pas_ack, { "Passive Ack Supported", "asam-cmp.msg.iface.feat_supp.canfd.pas_ack", FT_BOOLEAN, 32, NULL((void*)0), 0x00000004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4491 { &hf_cmp_iface_feat_canfd_act_ack, { "Active Ack Supported", "asam-cmp.msg.iface.feat_supp.canfd.act_ack", FT_BOOLEAN, 32, NULL((void*)0), 0x00000008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4492 { &hf_cmp_iface_feat_canfd_ack_del_err, { "Ack Del Error Supported", "asam-cmp.msg.iface.feat_supp.canfd.ack_del_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4493 { &hf_cmp_iface_feat_canfd_form_err, { "Form Error Supported", "asam-cmp.msg.iface.feat_supp.canfd.form_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4494 { &hf_cmp_iface_feat_canfd_stuff_err, { "Stuff Error Supported", "asam-cmp.msg.iface.feat_supp.canfd.stuff_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000040, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4495 { &hf_cmp_iface_feat_canfd_crc_del_err, { "CRC Del Error Supported", "asam-cmp.msg.iface.feat_supp.canfd.crc_del_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000080, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4496 { &hf_cmp_iface_feat_canfd_eof_err, { "EOF Error Supported", "asam-cmp.msg.iface.feat_supp.canfd.eof_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000100, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4497 { &hf_cmp_iface_feat_canfd_bit_err, { "Bit Error Supported", "asam-cmp.msg.iface.feat_supp.canfd.bit_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000200, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4498 { &hf_cmp_iface_feat_canfd_rsvd, { "RRSV Supported", "asam-cmp.msg.iface.feat_supp.canfd.rsvd", FT_BOOLEAN, 32, NULL((void*)0), 0x00000400, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4499 { &hf_cmp_iface_feat_canfd_srr_dom, { "SRR Dom Supported", "asam-cmp.msg.iface.feat_supp.canfd.srr_dom", FT_BOOLEAN, 32, NULL((void*)0), 0x00000800, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4500 { &hf_cmp_iface_feat_canfd_brs, { "BRS Supported", "asam-cmp.msg.iface.feat_supp.canfd.brs", FT_BOOLEAN, 32, NULL((void*)0), 0x00001000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4501 { &hf_cmp_iface_feat_canfd_esi, { "ESI Supported", "asam-cmp.msg.iface.feat_supp.canfd.esi", FT_BOOLEAN, 32, NULL((void*)0), 0x00002000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4502 { &hf_cmp_iface_feat_canfd_gen_err, { "Generic Error Supported", "asam-cmp.msg.iface.feat_supp.canfd.gen_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00004000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4503
4504 { &hf_cmp_iface_feat_lin_checksum_err, { "Checksum Error Supported", "asam-cmp.msg.iface.feat_supp.lin.checksum_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4505 { &hf_cmp_iface_feat_lin_coll_err, { "Collision Error Supported", "asam-cmp.msg.iface.feat_supp.lin.coll_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4506 { &hf_cmp_iface_feat_lin_parity_err, { "Parity Error Supported", "asam-cmp.msg.iface.feat_supp.lin.parity_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4507 { &hf_cmp_iface_feat_lin_no_slave_resp_err, { "No Slave Response Error Supported", "asam-cmp.msg.iface.feat_supp.lin.no_slave_resp_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4508 { &hf_cmp_iface_feat_lin_sync_err, { "Sync Error Supported", "asam-cmp.msg.iface.feat_supp.lin.sync_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4509 { &hf_cmp_iface_feat_lin_framing_err, { "Framing Error Supported", "asam-cmp.msg.iface.feat_supp.lin.framing_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4510 { &hf_cmp_iface_feat_lin_short_dom_err, { "Short Dom Error Supported", "asam-cmp.msg.iface.feat_supp.lin.short_dom_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000040, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4511 { &hf_cmp_iface_feat_lin_long_dom_err, { "Long Dom Error Supported", "asam-cmp.msg.iface.feat_supp.lin.long_dom_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000080, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4512 { &hf_cmp_iface_feat_lin_wup, { "WUP Supported", "asam-cmp.msg.iface.feat_supp.lin.wup", FT_BOOLEAN, 32, NULL((void*)0), 0x00000100, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4513
4514 { &hf_cmp_iface_feat_fr_crc_frame_err, { "CRC Frame Error Supported", "asam-cmp.msg.iface.feat_supp.fr.crc_frame_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4515 { &hf_cmp_iface_feat_fr_crc_header_err, { "CRC Header Error Supported", "asam-cmp.msg.iface.feat_supp.fr.crc_header_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4516 { &hf_cmp_iface_feat_fr_nf, { "Null Frame Supported", "asam-cmp.msg.iface.feat_supp.fr.nf", FT_BOOLEAN, 32, NULL((void*)0), 0x00000004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4517 { &hf_cmp_iface_feat_fr_sf, { "Startup Frame Supported", "asam-cmp.msg.iface.feat_supp.fr.sf", FT_BOOLEAN, 32, NULL((void*)0), 0x00000008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4518 { &hf_cmp_iface_feat_fr_sync, { "Sync Supported", "asam-cmp.msg.iface.feat_supp.fr.sync", FT_BOOLEAN, 32, NULL((void*)0), 0x00000010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4519 { &hf_cmp_iface_feat_fr_wus, { "Wake Up Symbol Supported", "asam-cmp.msg.iface.feat_supp.fr.wus", FT_BOOLEAN, 32, NULL((void*)0), 0x00000020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4520 { &hf_cmp_iface_feat_fr_ppi, { "Preamble Indicator Supported", "asam-cmp.msg.iface.feat_supp.fr.ppi", FT_BOOLEAN, 32, NULL((void*)0), 0x00000040, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4521 { &hf_cmp_iface_feat_fr_cas, { "Collision Avoidance Symbol Supported", "asam-cmp.msg.iface.feat_supp.fr.cas", FT_BOOLEAN, 32, NULL((void*)0), 0x00000080, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4522 { &hf_cmp_iface_feat_fr_channel, { "Channel Supported", "asam-cmp.msg.iface.feat_supp.fr.channel", FT_BOOLEAN, 32, NULL((void*)0), 0x00000200, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4523
4524 { &hf_cmp_iface_feat_eth_fcs_err, { "FCS Error Supported", "asam-cmp.msg.iface.feat_supp.eth.fcs_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4525 { &hf_cmp_iface_feat_eth_too_short, { "Frame too short Supported", "asam-cmp.msg.iface.feat_supp.eth.frame_too_short", FT_BOOLEAN, 32, NULL((void*)0), 0x00000002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4526 { &hf_cmp_iface_feat_eth_tx_port_down, { "TX Port Down Supported", "asam-cmp.msg.iface.feat_supp.eth.tx_port_down", FT_BOOLEAN, 32, NULL((void*)0), 0x00000004, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4527 { &hf_cmp_iface_feat_eth_collision, { "Collision Supported", "asam-cmp.msg.iface.feat_supp.eth.collision", FT_BOOLEAN, 32, NULL((void*)0), 0x00000008, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4528 { &hf_cmp_iface_feat_eth_too_long, { "Frame too long Supported", "asam-cmp.msg.iface.feat_supp.eth.frame_too_long", FT_BOOLEAN, 32, NULL((void*)0), 0x00000010, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4529 { &hf_cmp_iface_feat_eth_phy_err, { "PHY Error Supported", "asam-cmp.msg.iface.feat_supp.eth.phy_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000020, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4530 { &hf_cmp_iface_feat_eth_trunc, { "Truncated Frames Supported", "asam-cmp.msg.iface.feat_supp.eth.truncated_frames", FT_BOOLEAN, 32, NULL((void*)0), 0x00000040, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4531 { &hf_cmp_iface_feat_eth_fcs, { "FCS Supported", "asam-cmp.msg.iface.feat_supp.eth.fcs", FT_BOOLEAN, 32, NULL((void*)0), 0x00000080, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4532
4533 { &hf_cmp_iface_feat_10t1s_sym_decode, { "Decode Error Supported", "asam-cmp.msg.iface.feat_supp.10baset1s_symbols.decode_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4534 { &hf_cmp_iface_feat_10t1s_mis_beacon, { "Missing Beacon Error Supported", "asam-cmp.msg.iface.feat_supp.10baset1s_symbols.missing_beacon_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000002, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4535 { &hf_cmp_iface_feat_10t1s_first_beacon, { "First Beacon Supported", "asam-cmp.msg.iface.feat_supp.10baset1s_symbols.first_beacon", FT_BOOLEAN, 32, NULL((void*)0), 0x80000000, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4536
4537 { &hf_cmp_iface_feat_link_err, { "Link Error Supported", "asam-cmp.msg.iface.feat_supp.link_state.link_err", FT_BOOLEAN, 32, NULL((void*)0), 0x00000001, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4538
4539 { &hf_cmp_iface_stream_ids, { "Stream IDs", "asam-cmp.msg.iface.stream_ids", FT_PROTOCOL, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4540 { &hf_cmp_iface_stream_id, { "Stream ID", "asam-cmp.msg.iface.stream_id", FT_UINT8, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4541 { &hf_cmp_iface_vendor_data_len, { "Vendor Data Length", "asam-cmp.msg.iface.vendor_data_len", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4542 { &hf_cmp_iface_vendor_data, { "Vendor Data", "asam-cmp.msg.iface.vendor_data", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4543
4544 /* Configuration Status Message */
4545 { &hf_cmp_status_msg_config, { "Data", "asam-cmp.msg.config.data", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4546
4547 /* Data Lost Event Status Message */
4548 { &hf_cmp_dataloss_data_sink_port, { "Data Sink Port", "asam-cmp.msg.dataloss.data_sink_port", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4549 { &hf_cmp_dataloss_device_id, { "Device ID", "asam-cmp.msg.dataloss.device_id", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4550 { &hf_cmp_dataloss_reserved, { "Reserved", "asam-cmp.msg.dataloss.res", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4551 { &hf_cmp_dataloss_stream_id, { "Stream ID", "asam-cmp.msg.dataloss.stream_id", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4552 { &hf_cmp_dataloss_last_ssq_value, { "Last Stream Sequence Counter Value", "asam-cmp.msg.dataloss.last_ssqc", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4553 { &hf_cmp_dataloss_current_ssq_value, { "Current Stream Sequence Counter Value", "asam-cmp.msg.dataloss.current_ssqc", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4554
4555 /* Time Sync Lost Event Status Message */
4556 { &hf_cmp_timeloss_port_nr, { "Port Number", "asam-cmp.msg.timesyncloss.port_nr", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4557 { &hf_cmp_timeloss_device_id, { "Device ID", "asam-cmp.msg.timesyncloss.device_id", FT_UINT16, BASE_DEC, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4558 { &hf_cmp_timeloss_error_flags, { "Time Sync Loss Error Flags", "asam-cmp.msg.timesyncloss.err_flags", FT_UINT8, BASE_HEX, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4559
4560 { &hf_cmp_timeloss_error_flags_ts, { "Was Time Synced before", "asam-cmp.msg.timesyncloss.err_flags.ts", FT_BOOLEAN, 8, NULL((void*)0), 0x01, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4561 { &hf_cmp_timeloss_error_flags_insync, { "Original CMP Message had at least one INSYNC=0", "asam-cmp.msg.timesyncloss.err_flags.insync", FT_BOOLEAN, 8, NULL((void*)0), 0x02, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4562 { &hf_cmp_timeloss_error_flags_delta, { "Configured Time Delta was exceeded", "asam-cmp.msg.timesyncloss.err_flags.delta", FT_BOOLEAN, 8, NULL((void*)0), 0x04, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4563 { &hf_cmp_timeloss_error_flags_reserved, { "Reserved", "asam-cmp.msg.timesyncloss.err_flags.res", FT_UINT8, BASE_HEX, NULL((void*)0), 0xF8, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4564
4565 /* Vendor Specific Status Message */
4566 { &hf_cmp_status_msg_vendor_specific, { "Vendor Specific", "asam-cmp.msg.vendor_specific", FT_BYTES, BASE_NONE, NULL((void*)0), 0x0, NULL((void*)0), HFILL-1, 0, HF_REF_TYPE_NONE, -1, ((void*)0) } },
4567 };
4568
4569 static int *ett[] = {
4570 &ett_asam_cmp,
4571 &ett_asam_cmp_header,
4572 &ett_asam_cmp_timestamp,
4573 &ett_asam_cmp_common_flags,
4574 &ett_asam_cmp_trans_opts,
4575 &ett_asam_cmp_payload,
4576 &ett_asam_cmp_payload_flags,
4577 &ett_asam_cmp_payload_data,
4578 &ett_asam_cmp_lin_pid,
4579 &ett_asam_cmp_can_id,
4580 &ett_asam_cmp_can_crc,
4581 &ett_asam_cmp_digital_sample,
4582 &ett_asam_cmp_uart_data,
4583 &ett_asam_cmp_analog_sample,
4584 &ett_asam_cmp_i2c_data_entry,
4585 &ett_asam_cmp_a2b_upstream_settings,
4586 &ett_asam_cmp_a2b_downstream_settings,
4587 &ett_asam_cmp_a2b_general_settings,
4588 &ett_asam_cmp_status_cm_flags,
4589 &ett_asam_cmp_status_cm_uptime,
4590 &ett_asam_cmp_status_timeloss_flags,
4591 &ett_asam_cmp_status_interface,
4592 &ett_asam_cmp_status_feature_support,
4593 &ett_asam_cmp_status_stream_ids,
4594 &ett_asam_cmp_status_technica,
4595 &ett_asam_cmp_status_technica_meas,
4596 &ett_asam_cmp_status_technica_flags,
4597 &ett_asam_cmp_status_technica_props
4598 };
4599
4600 static ei_register_info ei[] = {
4601 { &ei_asam_cmp_length_mismatch, {"asam-cmp.expert.length_mismatch", PI_MALFORMED0x07000000, PI_WARN0x00600000, "Malformed message, length mismatch!", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE
, BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE
, -1, ((void*)0)}}
} },
4602 { &ei_asam_cmp_unsupported_crc_not_zero, {"asam-cmp.export.deactivated_crc_not_zero", PI_MALFORMED0x07000000, PI_WARN0x00600000, "Unsupported CRC is not zero!", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE
, BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE
, -1, ((void*)0)}}
} },
4603 { &ei_asam_cmp_too_deep, {"asam-cmp.expert.too_deep", PI_UNDECODED0x05000000, PI_WARN0x00600000, "Ethernet frame nested too deep, not dissected", EXPFILL0, ((void*)0), 0, ((void*)0), {0, {((void*)0), ((void*)0), FT_NONE
, BASE_NONE, ((void*)0), 0, ((void*)0), -1, 0, HF_REF_TYPE_NONE
, -1, ((void*)0)}}
} },
4604 };
4605
4606 /* UATs for user_data fields */
4607 static uat_field_t asam_cmp_device_id_uat_fields[] = {
4608 UAT_FLD_HEX(asam_cmp_devices, id, "Device ID", "Device ID (hex uint16 without leading 0x)"){"id", "Device ID", PT_TXTMOD_STRING,{uat_fld_chk_num_hex,asam_cmp_devices_id_set_cb
,asam_cmp_devices_id_tostr_cb},{0,0,0},0,"Device ID (hex uint16 without leading 0x)"
,((void*)0)}
,
4609 UAT_FLD_CSTRING(asam_cmp_devices, name, "Device Name", "Device Name (string)"){"name", "Device Name", PT_TXTMOD_STRING,{uat_fld_chk_str,asam_cmp_devices_name_set_cb
,asam_cmp_devices_name_tostr_cb},{0,0,0},0,"Device Name (string)"
,((void*)0)}
,
4610 UAT_END_FIELDS{((void*)0),((void*)0),PT_TXTMOD_NONE,{0,0,0},{0,0,0},0,0,((void
*)0)}
4611 };
4612
4613 static uat_field_t asam_cmp_interface_id_uat_fields[] = {
4614 UAT_FLD_HEX(asam_cmp_interfaces, id, "Interface ID", "Interface ID (hex uint32 without leading 0x)"){"id", "Interface ID", PT_TXTMOD_STRING,{uat_fld_chk_num_hex,
asam_cmp_interfaces_id_set_cb,asam_cmp_interfaces_id_tostr_cb
},{0,0,0},0,"Interface ID (hex uint32 without leading 0x)",((
void*)0)}
,
4615 UAT_FLD_CSTRING(asam_cmp_interfaces, name, "Interface Name", "Interface Name (string)"){"name", "Interface Name", PT_TXTMOD_STRING,{uat_fld_chk_str,
asam_cmp_interfaces_name_set_cb,asam_cmp_interfaces_name_tostr_cb
},{0,0,0},0,"Interface Name (string)",((void*)0)}
,
4616 UAT_FLD_HEX(asam_cmp_interfaces, bus_id, "Bus ID", "Bus ID of the Interface (hex uint16 without leading 0x)"){"bus_id", "Bus ID", PT_TXTMOD_STRING,{uat_fld_chk_num_hex,asam_cmp_interfaces_bus_id_set_cb
,asam_cmp_interfaces_bus_id_tostr_cb},{0,0,0},0,"Bus ID of the Interface (hex uint16 without leading 0x)"
,((void*)0)}
,
4617 UAT_END_FIELDS{((void*)0),((void*)0),PT_TXTMOD_NONE,{0,0,0},{0,0,0},0,0,((void
*)0)}
4618 };
4619
4620 proto_asam_cmp = proto_register_protocol("ASAM Capture Module Protocol", "ASAM CMP", "asam-cmp");
4621 proto_register_field_array(proto_asam_cmp, hf, array_length(hf)(sizeof (hf) / sizeof (hf)[0]));
4622 proto_register_subtree_array(ett, array_length(ett)(sizeof (ett) / sizeof (ett)[0]));
4623 asam_cmp_module = prefs_register_protocol(proto_asam_cmp, NULL((void*)0));
4624
4625 expert_module_asam_cmp = expert_register_protocol(proto_asam_cmp);
4626 expert_register_field_array(expert_module_asam_cmp, ei, array_length(ei)(sizeof (ei) / sizeof (ei)[0]));
4627
4628 /* Configuration Items */
4629 asam_cmp_deviceid_uat = uat_new("ASAM CMP Devices",
4630 sizeof(generic_one_id_string_t), /* record size */
4631 DATAFILE_ASAM_CMP_DEVICES_IDS"ASAM_CMP_devices", /* filename */
4632 true1, /* from profile */
4633 (void**)&asam_cmp_devices, /* data_ptr */
4634 &asam_cmp_devices_num, /* numitems_ptr */
4635 UAT_AFFECTS_DISSECTION0x00000001, /* but not fields */
4636 NULL((void*)0), /* help */
4637 copy_generic_one_id_string_cb, /* copy callback */
4638 update_generic_one_identifier_16bit, /* update callback */
4639 free_generic_one_id_string_cb, /* free callback */
4640 post_update_asam_cmp_devices_cb, /* post update callback */
4641 reset_asam_cmp_devices_cb, /* reset callback */
4642 asam_cmp_device_id_uat_fields /* UAT field definitions */
4643 );
4644
4645 prefs_register_uat_preference(asam_cmp_module, "_udf_asam_cmp_devices", "Devices",
4646 "A table to define names of Devices.", asam_cmp_deviceid_uat);
4647
4648 asam_cmp_interfaceid_uat = uat_new("ASAM CMP Interfaces",
4649 sizeof(interface_config_t), /* record size */
4650 DATAFILE_ASAM_CMP_IFACE_IDS"ASAM_CMP_interfaces", /* filename */
4651 true1, /* from profile */
4652 (void**)&asam_cmp_interfaces, /* data_ptr */
4653 &asam_cmp_interface_num, /* numitems_ptr */
4654 UAT_AFFECTS_DISSECTION0x00000001, /* but not fields */
4655 NULL((void*)0), /* help */
4656 copy_interface_config_cb, /* copy callback */
4657 update_interface_config, /* update callback */
4658 free_interface_config_cb, /* free callback */
4659 post_update_interface_config_cb, /* post update callback */
4660 reset_interface_config_cb, /* reset callback */
4661 asam_cmp_interface_id_uat_fields /* UAT field definitions */
4662 );
4663
4664 prefs_register_uat_preference(asam_cmp_module, "_udf_asam_cmp_interfaces", "Interfaces",
4665 "A table to define names and mappings of Interfaces.", asam_cmp_interfaceid_uat);
4666
4667 prefs_register_bool_preference(asam_cmp_module, "try_heuristic_first",
4668 "Try heuristic sub-dissectors first",
4669 "Try to decode a packet using an heuristic sub-dissector"
4670 " before using a sub-dissector registered to \"decode as\"",
4671 &heuristic_first);
4672
4673 prefs_register_bool_preference(asam_cmp_module, "use_old_canid_11bit_format",
4674 "Use old encoding of 11bit CAN/CAN-FD IDs",
4675 "Use the old encoding of 11bit CAN/CAN-FD IDs",
4676 &old_11bit_canid_encoding);
4677}
4678
4679void
4680proto_reg_handoff_asam_cmp(void) {
4681 dissector_handle_t asam_cmp_handle;
4682
4683 asam_cmp_handle = register_dissector("asam-cmp", dissect_asam_cmp, proto_asam_cmp);
4684 eth_handle = find_dissector("eth_maybefcs");
4685
4686 dissector_add_for_decode_as("ethertype", asam_cmp_handle);
4687 dissector_add_for_decode_as_with_preference("udp.port", asam_cmp_handle);
4688}
4689
4690 /*
4691 * Editor modelines
4692 *
4693 * Local Variables:
4694 * c-basic-offset: 4
4695 * tab-width: 8
4696 * indent-tabs-mode: nil
4697 * End:
4698 *
4699 * ex: set shiftwidth=4 tabstop=8 expandtab:
4700 * :indentSize=4:tabSize=8:noTabs=true:
4701 */