11#ifndef _PACKET_ECATMAILBOX_H_
12#define _PACKET_ECATMAILBOX_H_
14#include <ws_diag_control.h>
25} ETHERNET_ADDRESS, *PETHERNET_ADDRESS;
28#define ETHERNET_ADDRESS_LEN ((int) sizeof(ETHERNET_ADDRESS))
32#define ETHERCAT_MBOX_TYPE_ADS 1
33#define ETHERCAT_MBOX_TYPE_EOE 2
34#define ETHERCAT_MBOX_TYPE_COE 3
35#define ETHERCAT_MBOX_TYPE_FOE 4
36#define ETHERCAT_MBOX_TYPE_SOE 5
37#define ETHERCAT_MBOX_TYPE_VOE 15
68#define ETHERCAT_MBOX_HEADER_LEN ((int) sizeof(ETHERCAT_MBOX_HEADER))
71#define ETHERNET_FRAMENO_MASK 0x0000000F
73#define EOE_TYPE_FRAME_FRAG 0
74#define EOE_TYPE_TIMESTAMP_RES 1
75#define EOE_TYPE_INIT_REQ 2
76#define EOE_TYPE_INIT_RES 3
77#define EOE_TYPE_MACFILTER_REQ 4
78#define EOE_TYPE_MACFILTER_RES 5
80#define EOE_RESULT_NOERROR 0x0000
81#define EOE_RESULT_UNSPECIFIED_ERROR 0x0001
82#define EOE_RESULT_UNSUPPORTED_TYPE 0x0002
83#define EOE_RESULT_NO_IP_SUPPORT 0x0201
84#define EOE_RESULT_NO_MACFILTERMASK_SUPPORT 0x0401
103#define ETHERCAT_EOE_INIT_LEN 58
133#define ETHERCAT_EOE_MACFILTER_LEN ((int) sizeof(ETHERCAT_EOE_MACFILTER))
145#define ETHERCAT_EOE_TIMESTAMP_LEN ((int) sizeof(ETHERCAT_EOE_TIMESTAMP))
192#define ETHERCAT_EOE_HEADER_LEN ((int) sizeof(ETHERCAT_EOE_HEADER))
195#define ETHERCAT_COE_TYPE_EMERGENCY 1
196#define ETHERCAT_COE_TYPE_SDOREQ 2
197#define ETHERCAT_COE_TYPE_SDORES 3
198#define ETHERCAT_COE_TYPE_TXPDO 4
199#define ETHERCAT_COE_TYPE_RXPDO 5
200#define ETHERCAT_COE_TYPE_TXPDO_RTR 6
201#define ETHERCAT_COE_TYPE_RXPDO_RTR 7
202#define ETHERCAT_COE_TYPE_SDOINFO 8
219#define ETHERCAT_COE_HEADER_LEN ((int) sizeof(ETHERCAT_COE_HEADER))
312#define ETHERCAT_SDO_HEADER_LEN 8
314#define SDO_CCS_DOWNLOAD_SEGMENT 0
315#define SDO_CCS_INITIATE_DOWNLOAD 1
316#define SDO_CCS_INITIATE_UPLOAD 2
317#define SDO_CCS_UPLOAD_SEGMENT 3
318#define SDO_CCS_ABORT_TRANSFER 4
320#define SDO_SCS_UPLOAD_SEGMENT 0
321#define SDO_SCS_DOWNLOAD_SEGMENT 1
322#define SDO_SCS_INITIATE_UPLOAD 2
323#define SDO_SCS_INITIATE_DOWNLOAD 3
326#define ECAT_COE_INFO_OPCODE_LIST_Q 1
327#define ECAT_COE_INFO_OPCODE_LIST_S 2
328#define ECAT_COE_INFO_OPCODE_OBJ_Q 3
329#define ECAT_COE_INFO_OPCODE_OBJ_S 4
330#define ECAT_COE_INFO_OPCODE_ENTRY_Q 5
331#define ECAT_COE_INFO_OPCODE_ENTRY_S 6
332#define ECAT_COE_INFO_OPCODE_ERROR_S 7
334#define ECAT_COE_INFO_LIST_TYPE_LENGTH 0
335#define ECAT_COE_INFO_LIST_TYPE_ALL 1
336#define ECAT_COE_INFO_LIST_TYPE_PDOMAP 2
337#define ECAT_COE_INFO_LIST_TYPE_BACKUP 3
339#define ECAT_COE_INFO_OBJCODE_NULL 0
340#define ECAT_COE_INFO_OBJCODE_DOMAIN 2
341#define ECAT_COE_INFO_OBJCODE_DEFTYPE 5
342#define ECAT_COE_INFO_OBJCODE_DEFSTRUCT 6
343#define ECAT_COE_INFO_OBJCODE_VAR 7
344#define ECAT_COE_INFO_OBJCODE_ARRAY 8
345#define ECAT_COE_INFO_OBJCODE_RECORD 9
347#define ECAT_COE_INFO_OBJCAT_OPTIONAL 0
348#define ECAT_COE_INFO_OBJCAT_MANDATORY 1
350#define ECAT_COE_INFO_OBJACCESS_RO 0x07
351#define ECAT_COE_INFO_OBJACCESS_RW 0x3f
452#define ETHERCAT_SDO_INFO_LISTREQ_LEN 6
456#define ECAT_FOE_OPMODE_RRQ 1
457#define ECAT_FOE_OPMODE_WRQ 2
458#define ECAT_FOE_OPMODE_DATA 3
459#define ECAT_FOE_OPMODE_ACK 4
460#define ECAT_FOE_OPMODE_ERR 5
461#define ECAT_FOE_OPMODE_BUSY 6
464#define ECAT_FOE_ERRCODE_NOTDEFINED 0
465#define ECAT_FOE_ERRCODE_NOTFOUND 1
466#define ECAT_FOE_ERRCODE_ACCESS 2
467#define ECAT_FOE_ERRCODE_DISKFULL 3
468#define ECAT_FOE_ERRCODE_ILLEAGAL 4
469#define ECAT_FOE_ERRCODE_PACKENO 5
470#define ECAT_FOE_ERRCODE_EXISTS 6
471#define ECAT_FOE_ERRCODE_NOUSER 7
472#define ECAT_FOE_ERRCODE_BOOTSTRAPONLY 8
473#define ECAT_FOE_ERRCODE_NOTINBOOTSTRAP 9
517#define ETHERCAT_FOE_HEADER_LEN 6
532#define ECAT_SOE_OPCODE_RRQ 1
533#define ECAT_SOE_OPCODE_RRS 2
534#define ECAT_SOE_OPCODE_WRQ 3
535#define ECAT_SOE_OPCODE_WRS 4
536#define ECAT_SOE_OPCODE_NFC 5
596#define ETHERCAT_SOE_HEADER_LEN ((int) sizeof(ETHERCAT_SOE_HEADER))
609#define ETHERCAT_VOE_HEADER_LEN 6
EtherCAT firmware update command header.
Definition packet-ecatmb.h:524
uint16_t AddressLW
Definition packet-ecatmb.h:527
uint16_t Cmd
Definition packet-ecatmb.h:525
uint16_t Size
Definition packet-ecatmb.h:526
uint16_t AddressHW
Definition packet-ecatmb.h:528
EtherCAT EoE (Ethernet over EtherCAT) mailbox header.
Definition packet-ecatmb.h:186
EoeHeaderDataUnion anEoeHeaderDataUnion
Definition packet-ecatmb.h:188
EoeHeaderInfoUnion anEoeHeaderInfoUnion
Definition packet-ecatmb.h:187
EtherCAT EoE (Ethernet over EtherCAT) MAC filter configuration.
Definition packet-ecatmb.h:126
EoeMacFilterOptionsUnion anEoeMacFilterOptionsUnion
Definition packet-ecatmb.h:127
ETHERNET_ADDRESS MacFilter[16]
Definition packet-ecatmb.h:128
ETHERNET_ADDRESS MacFilterMask[4]
Definition packet-ecatmb.h:129
EtherCAT EoE timestamp record.
Definition packet-ecatmb.h:140
uint32_t TimeStamp
Definition packet-ecatmb.h:141
EtherCAT FoE (File Access over EtherCAT) mailbox header.
Definition packet-ecatmb.h:504
uint8_t OpMode
Definition packet-ecatmb.h:505
FoeHeaderDataUnion aFoeHeaderDataUnion
Definition packet-ecatmb.h:507
uint8_t Reserved1
Definition packet-ecatmb.h:506
EtherCAT mailbox header, common to all mailbox protocol frames.
Definition packet-ecatmb.h:61
uint16_t Address
Definition packet-ecatmb.h:63
MbxHeaderControlUnion aControlUnion
Definition packet-ecatmb.h:65
uint16_t Length
Definition packet-ecatmb.h:62
EtherCAT CoE SDO (Service Data Object) header.
Definition packet-ecatmb.h:305
SdoHeaderUnion anSdoHeaderUnion
Definition packet-ecatmb.h:306
uint8_t SubIndex
Definition packet-ecatmb.h:308
uint16_t Index
Definition packet-ecatmb.h:307
uint32_t Data
Definition packet-ecatmb.h:309
EtherCAT SDO Information entry description payload.
Definition packet-ecatmb.h:386
uint16_t BitLen
Definition packet-ecatmb.h:396
uint8_t ValueInfo
Definition packet-ecatmb.h:389
uint8_t SubIdx
Definition packet-ecatmb.h:388
uint16_t DataType
Definition packet-ecatmb.h:395
struct TETHERCAT_SDO_INFO_ENTRY::@551 Res
uint16_t Index
Definition packet-ecatmb.h:387
uint16_t ObjAccess
Definition packet-ecatmb.h:397
EtherCAT SDO Information error response payload.
Definition packet-ecatmb.h:407
char ErrorText[1]
Definition packet-ecatmb.h:409
uint32_t ErrorCode
Definition packet-ecatmb.h:408
EtherCAT SDO Information mailbox header.
Definition packet-ecatmb.h:444
uint16_t FragmentsLeft
Definition packet-ecatmb.h:447
uint8_t Reserved
Definition packet-ecatmb.h:446
SdoControlUnion anSdoControlUnion
Definition packet-ecatmb.h:445
SdoInfoUnion anSdoInfoUnion
Definition packet-ecatmb.h:448
EtherCAT SDO Information list request/response payload.
Definition packet-ecatmb.h:357
uint16_t ListType
Definition packet-ecatmb.h:358
struct TETHERCAT_SDO_INFO_LIST::@549 Res
uint16_t Index[1]
Definition packet-ecatmb.h:361
EtherCAT SDO Information object description payload.
Definition packet-ecatmb.h:370
uint8_t ObjCode
Definition packet-ecatmb.h:376
uint16_t DataType
Definition packet-ecatmb.h:374
struct TETHERCAT_SDO_INFO_OBJ::@550 Res
uint8_t MaxSubIndex
Definition packet-ecatmb.h:375
char Name[1]
Definition packet-ecatmb.h:377
uint16_t Index
Definition packet-ecatmb.h:371
EtherCAT SoE (Servo Drive Profile over EtherCAT) mailbox header.
Definition packet-ecatmb.h:585
SoeHeaderDataUnion anSoeHeaderDataUnion
Definition packet-ecatmb.h:587
SoeHeaderControlUnion anSoeHeaderControlUnion
Definition packet-ecatmb.h:586
EtherCAT VoE (Vendor-specific over EtherCAT) mailbox header.
Definition packet-ecatmb.h:603
uint32_t VendorID
Definition packet-ecatmb.h:604
uint16_t VendorType
Definition packet-ecatmb.h:605
IEEE 802.3 Ethernet MAC address (6 octets).
Definition packet-ecatmb.h:23
uint8_t b[6]
Definition packet-ecatmb.h:24
Core tvbuff (testy virtual buffer) structure representing a region of packet data,...
Definition tvbuff-int.h:95
EtherCAT CoE (CANopen over EtherCAT) mailbox header.
Definition packet-ecatmb.h:208
uint16_t Reserved
Definition packet-ecatmb.h:212
struct TETHERCAT_COE_HEADER::@539 v
uint16_t Type
Definition packet-ecatmb.h:213
uint16_t header
Definition packet-ecatmb.h:215
uint16_t Number
Definition packet-ecatmb.h:211
Union providing bit-field and raw access to EoE MAC filter options.
Definition packet-ecatmb.h:109
uint16_t NoBroadcasts
Definition packet-ecatmb.h:115
uint16_t MacFilterMaskCount
Definition packet-ecatmb.h:113
uint16_t Options
Definition packet-ecatmb.h:118
uint16_t MacFilterCount
Definition packet-ecatmb.h:112
struct tEoeMacFilterOptionsUnion::@536 v
uint16_t Reserved1
Definition packet-ecatmb.h:114
uint16_t Reserved2
Definition packet-ecatmb.h:116
Union providing bit-field and byte-level access to the SDO Information control octet.
Definition packet-ecatmb.h:430
uint8_t Control
Definition packet-ecatmb.h:436
struct tSdoControlUnion::@552 v
uint8_t OpCode
Definition packet-ecatmb.h:433
uint8_t InComplete
Definition packet-ecatmb.h:434
Union providing typed access to all SDO Information payload variants.
Definition packet-ecatmb.h:417
ETHERCAT_SDO_INFO_ERROR Error
Definition packet-ecatmb.h:421
uint8_t Data[1]
Definition packet-ecatmb.h:422
ETHERCAT_SDO_INFO_OBJ Obj
Definition packet-ecatmb.h:419
ETHERCAT_SDO_INFO_LIST List
Definition packet-ecatmb.h:418
ETHERCAT_SDO_INFO_ENTRY Entry
Definition packet-ecatmb.h:420