| Wireshark 4.7.3 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 -----------------------------------------*/
19 typedef union
20{
21 struct
22 {
23 uint16_t adp;
24 uint16_t ado;
25 } a;
26 uint32_t addr;
27} EcParserAddrUnion;
28
29
34 typedef struct _EcParser
35{
36 uint8_t cmd;
37 uint8_t idx;
38 EcParserAddrUnion anAddrUnion;
39 uint16_t len;
40 uint16_t intr;
41} EcParserHDR, *PEcParserHDR;
42
43
45#define EcParserHDR_Len 10/*sizeof(EcParserHDR)*/
46
47#endif /* _PACKET_ETHERCAT_DATAGRAM_ */
_EcParser
EtherCAT datagram header, covering all addressing modes and control fields as defined by the EtherCAT...
Definition packet-ethercat-datagram.h:35
_EcParser::anAddrUnion
EcParserAddrUnion anAddrUnion
Definition packet-ethercat-datagram.h:38
_EcParser::cmd
uint8_t cmd
Definition packet-ethercat-datagram.h:36
_EcParser::idx
uint8_t idx
Definition packet-ethercat-datagram.h:37
_EcParser::len
uint16_t len
Definition packet-ethercat-datagram.h:39
_EcParser::intr
uint16_t intr
Definition packet-ethercat-datagram.h:40
EcParserAddrUnion
Union allowing an EtherCAT address to be accessed either as a split ADP/ADO pair or as a single 32-bi...
Definition packet-ethercat-datagram.h:20
EcParserAddrUnion::ado
uint16_t ado
Definition packet-ethercat-datagram.h:24
EcParserAddrUnion::adp
uint16_t adp
Definition packet-ethercat-datagram.h:23
EcParserAddrUnion::addr
uint32_t addr
Definition packet-ethercat-datagram.h:26