| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet-ethercat-frame.h
1/* packet-ethercat-frame.h
2 *
3 * Copyright (c) 2007 by Beckhoff Automation GmbH
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11#ifndef _PACKET_ETHERCAT_FRAME_H
12#define _PACKET_ETHERCAT_FRAME_H
13
14#include <ws_diag_control.h>
15
16/* structure for decoding the header -----------------------------------------*/
17DIAG_OFF_PEDANTIC
22 typedef union _EtherCATFrameParser
23{
24 struct
25 {
26 uint16_t length : 11;
27 uint16_t reserved : 1;
28 uint16_t protocol : 4;
29 } v;
30 uint16_t hdr;
31} EtherCATFrameParserHDR;
32DIAG_ON_PEDANTIC
33
35 typedef EtherCATFrameParserHDR *PEtherCATFrameParserHDR;
36
37
39#define EtherCATFrameParserHDR_Len (int)sizeof(EtherCATFrameParserHDR)
40
41#endif /* _PACKET_ETHERCAT_FRAME_H */
_EtherCATFrameParser
EtherCAT frame header, giving access to the 16-bit header word both as individual bit-fields and as a...
Definition packet-ethercat-frame.h:23
_EtherCATFrameParser::length
uint16_t length
Definition packet-ethercat-frame.h:26
_EtherCATFrameParser::reserved
uint16_t reserved
Definition packet-ethercat-frame.h:27
_EtherCATFrameParser::protocol
uint16_t protocol
Definition packet-ethercat-frame.h:28
_EtherCATFrameParser::hdr
uint16_t hdr
Definition packet-ethercat-frame.h:30
_EtherCATFrameParser::v
struct _EtherCATFrameParser::@313254246235014334075102267005371347376323164336 v