| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet-ethercat-datagram.h
1/* packet-ethercat-datagram.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_DATAGRAM_
12#define _PACKET_ETHERCAT_DATAGRAM_
13
14/* structure for decoding the header -----------------------------------------*/
15 typedef union
16{
17 struct
18 {
19 uint16_t adp;
20 uint16_t ado;
21 } a;
22 uint32_t addr;
23} EcParserAddrUnion;
24
25 typedef struct _EcParser
26{
27 uint8_t cmd;
28 uint8_t idx;
29 EcParserAddrUnion anAddrUnion;
30 uint16_t len;
31 uint16_t intr;
32} EcParserHDR, *PEcParserHDR;
33
34#define EcParserHDR_Len 10/*sizeof(EcParserHDR)*/
35
36#endif /* _PACKET_ETHERCAT_DATAGRAM_ */
_EcParser
Definition packet-ethercat-datagram.h:26
EcParserAddrUnion
Definition packet-ethercat-datagram.h:16