Main Page
Related Pages
Modules
Classes
Files
File List
File Members
soem
ethercattype.h
Go to the documentation of this file.
1
/*
2
* Simple Open EtherCAT Master Library
3
*
4
* File : ethercattype.h
5
* Version : 1.3.0
6
* Date : 24-02-2013
7
* Copyright (C) 2005-2013 Speciaal Machinefabriek Ketels v.o.f.
8
* Copyright (C) 2005-2013 Arthur Ketels
9
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
10
*
11
* SOEM is free software; you can redistribute it and/or modify it under
12
* the terms of the GNU General Public License version 2 as published by the Free
13
* Software Foundation.
14
*
15
* SOEM is distributed in the hope that it will be useful, but WITHOUT ANY
16
* WARRANTY; without even the implied warranty of MERCHANTABILITY or
17
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18
* for more details.
19
*
20
* As a special exception, if other files instantiate templates or use macros
21
* or inline functions from this file, or you compile this file and link it
22
* with other works to produce a work based on this file, this file does not
23
* by itself cause the resulting work to be covered by the GNU General Public
24
* License. However the source code for this file must still be made available
25
* in accordance with section (3) of the GNU General Public License.
26
*
27
* This exception does not invalidate any other reasons why a work based on
28
* this file might be covered by the GNU General Public License.
29
*
30
* The EtherCAT Technology, the trade name and logo EtherCAT are the intellectual
31
* property of, and protected by Beckhoff Automation GmbH. You can use SOEM for
32
* the sole purpose of creating, using and/or selling or otherwise distributing
33
* an EtherCAT network master provided that an EtherCAT Master License is obtained
34
* from Beckhoff Automation GmbH.
35
*
36
* In case you did not receive a copy of the EtherCAT Master License along with
37
* SOEM write to Beckhoff Automation GmbH, Eiserstraße 5, D-33415 Verl, Germany
38
* (www.beckhoff.com).
39
*/
40
53
#ifndef _EC_TYPE_H
54
#define _EC_TYPE_H
55
56
#ifdef __cplusplus
57
extern
"C"
58
{
59
#endif
60
62
#define EC_LITTLE_ENDIAN
63
66
#define EC_VER1
67
68
#include <
osal.h
>
69
71
#define EC_ERROR -3
72
73
#define EC_NOFRAME -1
74
75
#define EC_OTHERFRAME -2
76
77
#define EC_MAXECATFRAME 1518
78
79
/* MTU - Ethernet header - length - datagram header - WCK - FCS */
80
#define EC_MAXLRWDATA (EC_MAXECATFRAME - 14 - 2 - 10 - 2 - 4)
81
82
#define EC_FIRSTDCDATAGRAM 20
83
84
#define EC_BUFSIZE EC_MAXECATFRAME
85
86
#define EC_ECATTYPE 0x1000
87
88
#define EC_MAXBUF 16
89
90
#define EC_TIMEOUTRET 2000
91
92
#define EC_TIMEOUTRET3 (EC_TIMEOUTRET * 3)
93
94
#define EC_TIMEOUTSAFE 20000
95
96
#define EC_TIMEOUTEEP 20000
97
98
#define EC_TIMEOUTTXM 20000
99
100
#define EC_TIMEOUTRXM 700000
101
102
#define EC_TIMEOUTSTATE 2000000
103
104
#define EC_MAXEEPBITMAP 128
105
106
#define EC_MAXEEPBUF EC_MAXEEPBITMAP << 5
107
108
#define EC_DEFAULTRETRIES 3
109
111
typedef
uint8
ec_bufT
[
EC_BUFSIZE
];
112
114
PACKED_BEGIN
115
typedef
struct
PACKED
116
{
118
uint16
da0
,
da1
,
da2
;
120
uint16
sa0
,
sa1
,
sa2
;
122
uint16
etype
;
123
}
ec_etherheadert
;
124
PACKED_END
125
127
#define ETH_HEADERSIZE sizeof(ec_etherheadert)
128
130
PACKED_BEGIN
131
typedef
struct
PACKED
132
{
134
uint16
elength
;
136
uint8
command
;
138
uint8
index
;
140
uint16
ADP
;
142
uint16
ADO
;
144
uint16
dlength
;
146
uint16
irpt
;
147
}
ec_comt
;
148
PACKED_END
149
151
#define EC_HEADERSIZE sizeof(ec_comt)
152
153
#define EC_ELENGTHSIZE sizeof(uint16)
154
155
#define EC_CMDOFFSET EC_ELENGTHSIZE
156
157
#define EC_WKCSIZE sizeof(uint16)
158
159
#define EC_DATAGRAMFOLLOWS (1 << 15)
160
162
typedef
enum
163
{
165
EC_ERR_OK
= 0,
167
EC_ERR_ALREADY_INITIALIZED
,
169
EC_ERR_NOT_INITIALIZED
,
171
EC_ERR_TIMEOUT
,
173
EC_ERR_NO_SLAVES
,
175
EC_ERR_NOK
176
}
ec_err
;
177
179
typedef
enum
180
{
182
EC_STATE_INIT
= 0x01,
184
EC_STATE_PRE_OP
= 0x02,
186
EC_STATE_BOOT
= 0x03,
188
EC_STATE_SAFE_OP
= 0x04,
190
EC_STATE_OPERATIONAL
= 0x08,
192
EC_STATE_ACK
= 0x10,
193
EC_STATE_ERROR
= 0x10
194
}
ec_state
;
195
197
typedef
enum
198
{
200
EC_BUF_EMPTY
= 0x00,
202
EC_BUF_ALLOC
= 0x01,
204
EC_BUF_TX
= 0x02,
206
EC_BUF_RCVD
= 0x03,
208
EC_BUF_COMPLETE
= 0x04
209
}
ec_bufstate
;
210
212
typedef
enum
213
{
214
ECT_BOOLEAN
= 0x0001,
215
ECT_INTEGER8
= 0x0002,
216
ECT_INTEGER16
= 0x0003,
217
ECT_INTEGER32
= 0x0004,
218
ECT_UNSIGNED8
= 0x0005,
219
ECT_UNSIGNED16
= 0x0006,
220
ECT_UNSIGNED32
= 0x0007,
221
ECT_REAL32
= 0x0008,
222
ECT_VISIBLE_STRING
= 0x0009,
223
ECT_OCTET_STRING
= 0x000A,
224
ECT_UNICODE_STRING
= 0x000B,
225
ECT_TIME_OF_DAY
= 0x000C,
226
ECT_TIME_DIFFERENCE
= 0x000D,
227
ECT_DOMAIN
= 0x000F,
228
ECT_INTEGER24
= 0x0010,
229
ECT_REAL64
= 0x0011,
230
ECT_INTEGER64
= 0x0015,
231
ECT_UNSIGNED24
= 0x0016,
232
ECT_UNSIGNED64
= 0x001B,
233
ECT_BIT1
= 0x0030,
234
ECT_BIT2
= 0x0031,
235
ECT_BIT3
= 0x0032,
236
ECT_BIT4
= 0x0033,
237
ECT_BIT5
= 0x0034,
238
ECT_BIT6
= 0x0035,
239
ECT_BIT7
= 0x0036,
240
ECT_BIT8
= 0x0037
241
}
ec_datatype
;
242
244
typedef
enum
245
{
247
EC_CMD_NOP
= 0x00,
249
EC_CMD_APRD
,
251
EC_CMD_APWR
,
253
EC_CMD_APRW
,
255
EC_CMD_FPRD
,
257
EC_CMD_FPWR
,
259
EC_CMD_FPRW
,
261
EC_CMD_BRD
,
263
EC_CMD_BWR
,
265
EC_CMD_BRW
,
267
EC_CMD_LRD
,
269
EC_CMD_LWR
,
271
EC_CMD_LRW
,
273
EC_CMD_ARMW
,
275
EC_CMD_FRMW
277
}
ec_cmdtype
;
278
280
typedef
enum
281
{
283
EC_ECMD_NOP
= 0x0000,
285
EC_ECMD_READ
= 0x0100,
287
EC_ECMD_WRITE
= 0x0201,
289
EC_ECMD_RELOAD
= 0x0300
290
}
ec_ecmdtype
;
291
293
#define EC_ESTAT_R64 0x0040
294
295
#define EC_ESTAT_BUSY 0x8000
296
297
#define EC_ESTAT_EMASK 0x7800
298
299
#define EC_ESTAT_NACK 0x2000
300
301
/* Ethercat SSI (Slave Information Interface) */
302
304
#define ECT_SII_START 0x0040
305
306
enum
307
{
309
ECT_SII_STRING
= 10,
311
ECT_SII_GENERAL
= 30,
313
ECT_SII_FMMU
= 40,
315
ECT_SII_SM
= 41,
317
ECT_SII_PDO
= 50
318
};
319
321
enum
322
{
323
ECT_SII_MANUF
= 0x0008,
324
ECT_SII_ID
= 0x000a,
325
ECT_SII_REV
= 0x000c,
326
ECT_SII_BOOTRXMBX
= 0x0014,
327
ECT_SII_BOOTTXMBX
= 0x0016,
328
ECT_SII_MBXSIZE
= 0x0019,
329
ECT_SII_TXMBXADR
= 0x001a,
330
ECT_SII_RXMBXADR
= 0x0018,
331
ECT_SII_MBXPROTO
= 0x001c
332
};
333
335
enum
336
{
338
ECT_MBXT_ERR
= 0x00,
340
ECT_MBXT_AOE
,
342
ECT_MBXT_EOE
,
344
ECT_MBXT_COE
,
346
ECT_MBXT_FOE
,
348
ECT_MBXT_SOE
,
350
ECT_MBXT_VOE
= 0x0f
351
};
352
354
enum
355
{
356
ECT_COES_EMERGENCY
= 0x01,
357
ECT_COES_SDOREQ
,
358
ECT_COES_SDORES
,
359
ECT_COES_TXPDO
,
360
ECT_COES_RXPDO
,
361
ECT_COES_TXPDO_RR
,
362
ECT_COES_RXPDO_RR
,
363
ECT_COES_SDOINFO
364
};
365
367
enum
368
{
369
ECT_SDO_DOWN_INIT
= 0x21,
370
ECT_SDO_DOWN_EXP
= 0x23,
371
ECT_SDO_DOWN_INIT_CA
= 0x31,
372
ECT_SDO_UP_REQ
= 0x40,
373
ECT_SDO_UP_REQ_CA
= 0x50,
374
ECT_SDO_SEG_UP_REQ
= 0x60,
375
ECT_SDO_ABORT
= 0x80
376
};
377
379
enum
380
{
381
ECT_GET_ODLIST_REQ
= 0x01,
382
ECT_GET_ODLIST_RES
= 0x02,
383
ECT_GET_OD_REQ
= 0x03,
384
ECT_GET_OD_RES
= 0x04,
385
ECT_GET_OE_REQ
= 0x05,
386
ECT_GET_OE_RES
= 0x06,
387
ECT_SDOINFO_ERROR
= 0x07
388
};
389
391
enum
392
{
393
ECT_FOE_READ
= 0x01,
394
ECT_FOE_WRITE
,
395
ECT_FOE_DATA
,
396
ECT_FOE_ACK
,
397
ECT_FOE_ERROR
,
398
ECT_FOE_BUSY
399
};
400
402
enum
403
{
404
ECT_SOE_READREQ
= 0x01,
405
ECT_SOE_READRES
,
406
ECT_SOE_WRITEREQ
,
407
ECT_SOE_WRITERES
,
408
ECT_SOE_NOTIFICATION
,
409
ECT_SOE_EMERGENCY
410
};
411
413
enum
414
{
415
ECT_REG_TYPE
= 0x0000,
416
ECT_REG_PORTDES
= 0x0007,
417
ECT_REG_ESCSUP
= 0x0008,
418
ECT_REG_STADR
= 0x0010,
419
ECT_REG_ALIAS
= 0x0012,
420
ECT_REG_DLCTL
= 0x0100,
421
ECT_REG_DLPORT
= 0x0101,
422
ECT_REG_DLALIAS
= 0x0103,
423
ECT_REG_DLSTAT
= 0x0110,
424
ECT_REG_ALCTL
= 0x0120,
425
ECT_REG_ALSTAT
= 0x0130,
426
ECT_REG_ALSTATCODE
= 0x0134,
427
ECT_REG_PDICTL
= 0x0140,
428
ECT_REG_IRQMASK
= 0x0200,
429
ECT_REG_RXERR
= 0x0300,
430
ECT_REG_EEPCFG
= 0x0500,
431
ECT_REG_EEPCTL
= 0x0502,
432
ECT_REG_EEPSTAT
= 0x0502,
433
ECT_REG_EEPADR
= 0x0504,
434
ECT_REG_EEPDAT
= 0x0508,
435
ECT_REG_FMMU0
= 0x0600,
436
ECT_REG_FMMU1
=
ECT_REG_FMMU0
+ 0x10,
437
ECT_REG_FMMU2
=
ECT_REG_FMMU1
+ 0x10,
438
ECT_REG_FMMU3
=
ECT_REG_FMMU2
+ 0x10,
439
ECT_REG_SM0
= 0x0800,
440
ECT_REG_SM1
=
ECT_REG_SM0
+ 0x08,
441
ECT_REG_SM2
=
ECT_REG_SM1
+ 0x08,
442
ECT_REG_SM3
=
ECT_REG_SM2
+ 0x08,
443
ECT_REG_SM0STAT
=
ECT_REG_SM0
+ 0x05,
444
ECT_REG_SM1STAT
=
ECT_REG_SM1
+ 0x05,
445
ECT_REG_SM1ACT
=
ECT_REG_SM1
+ 0x06,
446
ECT_REG_SM1CONTR
=
ECT_REG_SM1
+ 0x07,
447
ECT_REG_DCTIME0
= 0x0900,
448
ECT_REG_DCTIME1
= 0x0904,
449
ECT_REG_DCTIME2
= 0x0908,
450
ECT_REG_DCTIME3
= 0x090C,
451
ECT_REG_DCSYSTIME
= 0x0910,
452
ECT_REG_DCSOF
= 0x0918,
453
ECT_REG_DCSYSOFFSET
= 0x0920,
454
ECT_REG_DCSYSDELAY
= 0x0928,
455
ECT_REG_DCSYSDIFF
= 0x092C,
456
ECT_REG_DCSPEEDCNT
= 0x0930,
457
ECT_REG_DCTIMEFILT
= 0x0934,
458
ECT_REG_DCCUC
= 0x0980,
459
ECT_REG_DCSYNCACT
= 0x0981,
460
ECT_REG_DCSTART0
= 0x0990,
461
ECT_REG_DCCYCLE0
= 0x09A0,
462
ECT_REG_DCCYCLE1
= 0x09A4
463
};
464
466
#define ECT_SDO_SMCOMMTYPE 0x1c00
467
468
#define ECT_SDO_PDOASSIGN 0x1c10
469
470
#define ECT_SDO_RXPDOASSIGN 0x1c12
471
472
#define ECT_SDO_TXPDOASSIGN 0x1c13
473
475
#define ETH_P_ECAT 0x88A4
476
478
typedef
enum
479
{
480
EC_ERR_TYPE_SDO_ERROR
= 0,
481
EC_ERR_TYPE_EMERGENCY
= 1,
482
EC_ERR_TYPE_PACKET_ERROR
= 3,
483
EC_ERR_TYPE_SDOINFO_ERROR
= 4,
484
EC_ERR_TYPE_FOE_ERROR
= 5,
485
EC_ERR_TYPE_FOE_BUF2SMALL
= 6,
486
EC_ERR_TYPE_FOE_PACKETNUMBER
= 7,
487
EC_ERR_TYPE_SOE_ERROR
= 8,
488
EC_ERR_TYPE_MBX_ERROR
= 9
489
}
ec_err_type
;
490
492
typedef
struct
493
{
495
ec_timet
Time
;
497
boolean
Signal
;
499
uint16
Slave
;
501
uint16
Index
;
503
uint8
SubIdx
;
505
ec_err_type
Etype
;
506
union
507
{
509
int32
AbortCode
;
511
struct
512
{
513
uint16
ErrorCode
;
514
uint8
ErrorReg
;
515
uint8
b1
;
516
uint16
w1
;
517
uint16
w2
;
518
};
519
};
520
}
ec_errort
;
521
524
#define MK_WORD(msb, lsb) ((((uint16)(msb))<<8) | (lsb))
525
526
#define HI_BYTE(w) ((w) >> 8)
527
528
#define LO_BYTE(w) ((w) & 0x00ff)
529
530
#define SWAP(w) ((((w)& 0xff00) >> 8) | (((w) & 0x00ff) << 8))
531
532
#define LO_WORD(l) ((l) & 0xffff)
533
534
#define HI_WORD(l) ((l) >> 16)
535
536
#define get_unaligned(ptr) \
537
({ __typeof__(*(ptr)) __tmp; memcpy(&__tmp, (ptr), sizeof(*(ptr))); __tmp; })
538
539
#define put_unaligned32(val, ptr) \
540
(memcpy((ptr), &(val), 4))
541
542
#define put_unaligned64(val, ptr) \
543
(memcpy((ptr), &(val), 8))
544
545
#if !defined(EC_BIG_ENDIAN) && defined(EC_LITTLE_ENDIAN)
546
547
#define htoes(A) (A)
548
#define htoel(A) (A)
549
#define htoell(A) (A)
550
#define etohs(A) (A)
551
#define etohl(A) (A)
552
#define etohll(A) (A)
553
554
#elif !defined(EC_LITTLE_ENDIAN) && defined(EC_BIG_ENDIAN)
555
556
#define htoes(A) ((((uint16)(A) & 0xff00) >> 8) | \
557
(((uint16)(A) & 0x00ff) << 8))
558
#define htoel(A) ((((uint32)(A) & 0xff000000) >> 24) | \
559
(((uint32)(A) & 0x00ff0000) >> 8) | \
560
(((uint32)(A) & 0x0000ff00) << 8) | \
561
(((uint32)(A) & 0x000000ff) << 24))
562
#define htoell(A) ((((uint64)(A) & (uint64)0xff00000000000000ULL) >> 56) | \
563
(((uint64)(A) & (uint64)0x00ff000000000000ULL) >> 40) | \
564
(((uint64)(A) & (uint64)0x0000ff0000000000ULL) >> 24) | \
565
(((uint64)(A) & (uint64)0x000000ff00000000ULL) >> 8) | \
566
(((uint64)(A) & (uint64)0x00000000ff000000ULL) << 8) | \
567
(((uint64)(A) & (uint64)0x0000000000ff0000ULL) << 24) | \
568
(((uint64)(A) & (uint64)0x000000000000ff00ULL) << 40) | \
569
(((uint64)(A) & (uint64)0x00000000000000ffULL) << 56))
570
571
#define etohs htoes
572
#define etohl htoel
573
#define etohll htoell
574
575
#else
576
577
#error "Must define one of EC_BIG_ENDIAN or EC_LITTLE_ENDIAN"
578
579
#endif
580
581
#ifdef __cplusplus
582
}
583
#endif
584
585
#endif
/* _EC_TYPE_H */
ECT_FOE_READ
Definition:
ethercattype.h:393
ECT_FOE_ACK
Definition:
ethercattype.h:396
EC_ERR_NOK
Definition:
ethercattype.h:175
PACKED::sa1
uint16 sa1
Definition:
ethercattype.h:120
ECT_SDO_DOWN_INIT
Definition:
ethercattype.h:369
ECT_BIT4
Definition:
ethercattype.h:236
ECT_REG_FMMU0
Definition:
ethercattype.h:435
EC_BUF_EMPTY
Definition:
ethercattype.h:200
osal.h
ECT_MBXT_EOE
Definition:
ethercattype.h:342
EC_ERR_TYPE_SDO_ERROR
Definition:
ethercattype.h:480
ECT_REG_EEPADR
Definition:
ethercattype.h:433
ECT_REAL64
Definition:
ethercattype.h:229
ECT_SII_MBXSIZE
Definition:
ethercattype.h:328
ECT_MBXT_SOE
Definition:
ethercattype.h:348
EC_CMD_BRW
Definition:
ethercattype.h:265
ECT_REG_DCTIME2
Definition:
ethercattype.h:449
EC_ERR_TYPE_SDOINFO_ERROR
Definition:
ethercattype.h:483
PACKED::index
uint8 index
Definition:
ethercattype.h:138
ECT_REG_FMMU3
Definition:
ethercattype.h:438
ECT_REG_TYPE
Definition:
ethercattype.h:415
EC_ERR_TYPE_FOE_BUF2SMALL
Definition:
ethercattype.h:485
ECT_FOE_BUSY
Definition:
ethercattype.h:398
ECT_REG_SM2
Definition:
ethercattype.h:441
ECT_REG_FMMU2
Definition:
ethercattype.h:437
EC_ERR_TIMEOUT
Definition:
ethercattype.h:171
ECT_SII_PDO
Definition:
ethercattype.h:317
ECT_SII_TXMBXADR
Definition:
ethercattype.h:329
PACKED::da0
uint16 da0
Definition:
ethercattype.h:118
ECT_REG_DCSTART0
Definition:
ethercattype.h:460
EC_CMD_FPWR
Definition:
ethercattype.h:257
ECT_REG_DCCYCLE1
Definition:
ethercattype.h:462
ECT_BIT8
Definition:
ethercattype.h:240
ECT_MBXT_FOE
Definition:
ethercattype.h:346
EC_CMD_FPRW
Definition:
ethercattype.h:259
ECT_REG_PORTDES
Definition:
ethercattype.h:416
uint8
uint8_t uint8
Definition:
osal.h:33
ECT_REG_SM3
Definition:
ethercattype.h:442
ECT_BIT3
Definition:
ethercattype.h:235
EC_ERR_OK
Definition:
ethercattype.h:165
ECT_SII_MBXPROTO
Definition:
ethercattype.h:331
ECT_UNSIGNED8
Definition:
ethercattype.h:218
ECT_TIME_DIFFERENCE
Definition:
ethercattype.h:226
ECT_SII_MANUF
Definition:
ethercattype.h:323
ECT_REG_SM1ACT
Definition:
ethercattype.h:445
EC_CMD_APRW
Definition:
ethercattype.h:253
ECT_REG_DCSYSOFFSET
Definition:
ethercattype.h:453
EC_CMD_NOP
Definition:
ethercattype.h:247
ec_etherheadert
PACKED_BEGIN struct PACKED ec_etherheadert
ECT_GET_ODLIST_REQ
Definition:
ethercattype.h:381
ec_errort::SubIdx
uint8 SubIdx
Definition:
ethercattype.h:503
ec_errort::w2
uint16 w2
Definition:
ethercattype.h:517
ECT_DOMAIN
Definition:
ethercattype.h:227
EC_ERR_NO_SLAVES
Definition:
ethercattype.h:173
ECT_REG_DCSOF
Definition:
ethercattype.h:452
ECT_SII_BOOTRXMBX
Definition:
ethercattype.h:326
ECT_REG_DLCTL
Definition:
ethercattype.h:420
ECT_BIT2
Definition:
ethercattype.h:234
ec_state
ec_state
Definition:
ethercattype.h:179
uint16
uint16_t uint16
Definition:
osal.h:34
EC_ERR_TYPE_EMERGENCY
Definition:
ethercattype.h:481
ECT_REG_DCTIME1
Definition:
ethercattype.h:448
ECT_BIT1
Definition:
ethercattype.h:233
ECT_GET_OD_RES
Definition:
ethercattype.h:384
ec_errort
Definition:
ethercattype.h:492
ECT_REG_SM1
Definition:
ethercattype.h:440
ECT_REG_DCCUC
Definition:
ethercattype.h:458
ECT_FOE_WRITE
Definition:
ethercattype.h:394
PACKED::sa2
uint16 sa2
Definition:
ethercattype.h:120
EC_CMD_APRD
Definition:
ethercattype.h:249
ECT_UNSIGNED32
Definition:
ethercattype.h:220
EC_CMD_APWR
Definition:
ethercattype.h:251
ECT_SOE_WRITERES
Definition:
ethercattype.h:407
ECT_BOOLEAN
Definition:
ethercattype.h:214
PACKED::command
uint8 command
Definition:
ethercattype.h:136
ECT_GET_OE_REQ
Definition:
ethercattype.h:385
ECT_SII_RXMBXADR
Definition:
ethercattype.h:330
PACKED::ADO
uint16 ADO
Definition:
ethercattype.h:142
ECT_MBXT_AOE
Definition:
ethercattype.h:340
EC_ECMD_NOP
Definition:
ethercattype.h:283
ECT_UNSIGNED64
Definition:
ethercattype.h:232
ec_errort::Etype
ec_err_type Etype
Definition:
ethercattype.h:505
ECT_REG_STADR
Definition:
ethercattype.h:418
EC_CMD_BRD
Definition:
ethercattype.h:261
ECT_BIT6
Definition:
ethercattype.h:238
ECT_REG_DCTIMEFILT
Definition:
ethercattype.h:457
PACKED::irpt
uint16 irpt
Definition:
ethercattype.h:146
ECT_REG_IRQMASK
Definition:
ethercattype.h:428
EC_ERR_TYPE_MBX_ERROR
Definition:
ethercattype.h:488
EC_BUF_ALLOC
Definition:
ethercattype.h:202
ECT_FOE_ERROR
Definition:
ethercattype.h:397
ECT_REG_DLPORT
Definition:
ethercattype.h:421
EC_ECMD_WRITE
Definition:
ethercattype.h:287
ECT_UNICODE_STRING
Definition:
ethercattype.h:224
ECT_REG_ALSTATCODE
Definition:
ethercattype.h:426
ECT_REG_ESCSUP
Definition:
ethercattype.h:417
ECT_SDO_UP_REQ_CA
Definition:
ethercattype.h:373
ECT_SDO_SEG_UP_REQ
Definition:
ethercattype.h:374
EC_STATE_OPERATIONAL
Definition:
ethercattype.h:190
ECT_SOE_READREQ
Definition:
ethercattype.h:404
ECT_REG_EEPDAT
Definition:
ethercattype.h:434
ECT_SDO_UP_REQ
Definition:
ethercattype.h:372
EC_BUF_COMPLETE
Definition:
ethercattype.h:208
ec_timet
Definition:
osal.h:53
ec_cmdtype
ec_cmdtype
Definition:
ethercattype.h:244
PACKED::da1
uint16 da1
Definition:
ethercattype.h:118
ECT_REG_DLSTAT
Definition:
ethercattype.h:423
ec_datatype
ec_datatype
Definition:
ethercattype.h:212
ECT_REG_DCSYNCACT
Definition:
ethercattype.h:459
EC_STATE_BOOT
Definition:
ethercattype.h:186
EC_CMD_LRW
Definition:
ethercattype.h:271
PACKED::elength
uint16 elength
Definition:
ethercattype.h:134
ECT_SOE_EMERGENCY
Definition:
ethercattype.h:409
ec_errort::Slave
uint16 Slave
Definition:
ethercattype.h:499
EC_BUF_RCVD
Definition:
ethercattype.h:206
PACKED
Definition:
ethercatcoe.c:59
ECT_SOE_READRES
Definition:
ethercattype.h:405
ECT_INTEGER24
Definition:
ethercattype.h:228
ECT_TIME_OF_DAY
Definition:
ethercattype.h:225
ECT_MBXT_ERR
Definition:
ethercattype.h:338
ECT_REG_RXERR
Definition:
ethercattype.h:429
EC_CMD_LWR
Definition:
ethercattype.h:269
EC_STATE_ACK
Definition:
ethercattype.h:192
ECT_SDO_ABORT
Definition:
ethercattype.h:375
ECT_COES_TXPDO_RR
Definition:
ethercattype.h:361
ECT_REG_SM1CONTR
Definition:
ethercattype.h:446
int32
int32_t int32
Definition:
osal.h:32
ec_comt
PACKED_BEGIN struct PACKED ec_comt
EC_ERR_TYPE_FOE_PACKETNUMBER
Definition:
ethercattype.h:486
EC_ERR_ALREADY_INITIALIZED
Definition:
ethercattype.h:167
EC_BUF_TX
Definition:
ethercattype.h:204
EC_STATE_SAFE_OP
Definition:
ethercattype.h:188
ECT_SII_ID
Definition:
ethercattype.h:324
EC_STATE_PRE_OP
Definition:
ethercattype.h:184
PACKED::dlength
uint16 dlength
Definition:
ethercattype.h:144
ECT_REG_SM0
Definition:
ethercattype.h:439
ECT_SII_BOOTTXMBX
Definition:
ethercattype.h:327
ECT_REG_DCTIME3
Definition:
ethercattype.h:450
EC_CMD_LRD
Definition:
ethercattype.h:267
ECT_SDOINFO_ERROR
Definition:
ethercattype.h:387
PACKED::ADP
uint16 ADP
Definition:
ethercattype.h:140
ec_errort::Signal
boolean Signal
Definition:
ethercattype.h:497
ECT_REG_DCTIME0
Definition:
ethercattype.h:447
EC_CMD_ARMW
Definition:
ethercattype.h:273
ECT_SII_STRING
Definition:
ethercattype.h:309
ECT_REG_SM0STAT
Definition:
ethercattype.h:443
ec_bufstate
ec_bufstate
Definition:
ethercattype.h:197
ECT_OCTET_STRING
Definition:
ethercattype.h:223
ECT_MBXT_COE
Definition:
ethercattype.h:344
ECT_SOE_NOTIFICATION
Definition:
ethercattype.h:408
ec_errort::AbortCode
int32 AbortCode
Definition:
ethercattype.h:509
ec_errort::Time
ec_timet Time
Definition:
ethercattype.h:495
ECT_REG_SM1STAT
Definition:
ethercattype.h:444
ECT_REG_ALCTL
Definition:
ethercattype.h:424
ECT_GET_OE_RES
Definition:
ethercattype.h:386
PACKED::etype
uint16 etype
Definition:
ethercattype.h:122
EC_ERR_NOT_INITIALIZED
Definition:
ethercattype.h:169
ECT_REG_DLALIAS
Definition:
ethercattype.h:422
ECT_REAL32
Definition:
ethercattype.h:221
ec_errort::ErrorCode
uint16 ErrorCode
Definition:
ethercattype.h:513
ECT_COES_SDORES
Definition:
ethercattype.h:358
ECT_INTEGER16
Definition:
ethercattype.h:216
EC_ERR_TYPE_FOE_ERROR
Definition:
ethercattype.h:484
ECT_SOE_WRITEREQ
Definition:
ethercattype.h:406
ECT_BIT7
Definition:
ethercattype.h:239
ECT_INTEGER8
Definition:
ethercattype.h:215
ECT_UNSIGNED16
Definition:
ethercattype.h:219
EC_CMD_FPRD
Definition:
ethercattype.h:255
ec_errort::b1
uint8 b1
Definition:
ethercattype.h:515
ECT_VISIBLE_STRING
Definition:
ethercattype.h:222
ECT_SII_FMMU
Definition:
ethercattype.h:313
ec_errort::Index
uint16 Index
Definition:
ethercattype.h:501
ec_ecmdtype
ec_ecmdtype
Definition:
ethercattype.h:280
EC_ECMD_READ
Definition:
ethercattype.h:285
ec_bufT
uint8 ec_bufT[EC_BUFSIZE]
Definition:
ethercattype.h:111
ECT_FOE_DATA
Definition:
ethercattype.h:395
PACKED::sa0
uint16 sa0
Definition:
ethercattype.h:120
ECT_GET_OD_REQ
Definition:
ethercattype.h:383
PACKED::da2
uint16 da2
Definition:
ethercattype.h:118
ECT_REG_EEPCFG
Definition:
ethercattype.h:430
ec_err
ec_err
Definition:
ethercattype.h:162
ec_err_type
ec_err_type
Definition:
ethercattype.h:478
ECT_GET_ODLIST_RES
Definition:
ethercattype.h:382
ECT_REG_ALIAS
Definition:
ethercattype.h:419
EC_ERR_TYPE_PACKET_ERROR
Definition:
ethercattype.h:482
ECT_REG_DCCYCLE0
Definition:
ethercattype.h:461
ECT_INTEGER64
Definition:
ethercattype.h:230
ECT_SII_GENERAL
Definition:
ethercattype.h:311
ECT_REG_DCSYSTIME
Definition:
ethercattype.h:451
EC_STATE_ERROR
Definition:
ethercattype.h:193
ECT_SII_SM
Definition:
ethercattype.h:315
ECT_REG_EEPCTL
Definition:
ethercattype.h:431
ECT_COES_RXPDO_RR
Definition:
ethercattype.h:362
EC_ERR_TYPE_SOE_ERROR
Definition:
ethercattype.h:487
ECT_REG_PDICTL
Definition:
ethercattype.h:427
EC_BUFSIZE
#define EC_BUFSIZE
Definition:
ethercattype.h:84
ECT_SDO_DOWN_INIT_CA
Definition:
ethercattype.h:371
ECT_REG_DCSYSDIFF
Definition:
ethercattype.h:455
ECT_INTEGER32
Definition:
ethercattype.h:217
EC_ECMD_RELOAD
Definition:
ethercattype.h:289
ECT_REG_ALSTAT
Definition:
ethercattype.h:425
ECT_COES_SDOREQ
Definition:
ethercattype.h:357
ec_errort::w1
uint16 w1
Definition:
ethercattype.h:516
ECT_REG_DCSYSDELAY
Definition:
ethercattype.h:454
ECT_MBXT_VOE
Definition:
ethercattype.h:350
ECT_COES_RXPDO
Definition:
ethercattype.h:360
ECT_SII_REV
Definition:
ethercattype.h:325
EC_CMD_FRMW
Definition:
ethercattype.h:275
ECT_COES_SDOINFO
Definition:
ethercattype.h:363
ECT_COES_EMERGENCY
Definition:
ethercattype.h:356
ECT_BIT5
Definition:
ethercattype.h:237
ECT_COES_TXPDO
Definition:
ethercattype.h:359
ec_errort::ErrorReg
uint8 ErrorReg
Definition:
ethercattype.h:514
ECT_REG_EEPSTAT
Definition:
ethercattype.h:432
ECT_REG_DCSPEEDCNT
Definition:
ethercattype.h:456
ECT_UNSIGNED24
Definition:
ethercattype.h:231
ECT_REG_FMMU1
Definition:
ethercattype.h:436
EC_CMD_BWR
Definition:
ethercattype.h:263
EC_STATE_INIT
Definition:
ethercattype.h:182
ECT_SDO_DOWN_EXP
Definition:
ethercattype.h:370
soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Sat Jun 8 2019 18:02:17