Main Page
Related Pages
Modules
Classes
Files
File List
File Members
SOEM
soem
ethercattype.h
Go to the documentation of this file.
1
/*
2
* Licensed under the GNU General Public License version 2 with exceptions. See
3
* LICENSE file in the project root for full license information
4
*/
5
18
#ifndef _EC_TYPE_H
19
#define _EC_TYPE_H
20
21
#ifdef __cplusplus
22
extern
"C"
23
{
24
#endif
25
26
#include "
osal.h
"
27
30
#if !defined(EC_VER1) && !defined(EC_VER2)
31
# define EC_VER1
32
#endif
33
34
36
#if !defined(EC_LITTLE_ENDIAN) && !defined(EC_BIG_ENDIAN)
37
# define EC_LITTLE_ENDIAN
38
#endif
39
41
#define EC_NOFRAME -1
42
43
#define EC_OTHERFRAME -2
44
45
#define EC_ERROR -3
46
47
#define EC_SLAVECOUNTEXCEEDED -4
48
49
#define EC_TIMEOUT -5
50
51
#define EC_MAXECATFRAME 1518
52
53
/* MTU - Ethernet header - length - datagram header - WCK - FCS */
54
#define EC_MAXLRWDATA (EC_MAXECATFRAME - 14 - 2 - 10 - 2 - 4)
55
56
#define EC_FIRSTDCDATAGRAM 20
57
58
#define EC_BUFSIZE EC_MAXECATFRAME
59
60
#define EC_ECATTYPE 0x1000
61
62
#define EC_MAXBUF 16
63
64
#define EC_TIMEOUTRET 2000
65
66
#define EC_TIMEOUTRET3 (EC_TIMEOUTRET * 3)
67
68
#define EC_TIMEOUTSAFE 20000
69
70
#define EC_TIMEOUTEEP 20000
71
72
#define EC_TIMEOUTTXM 20000
73
74
#define EC_TIMEOUTRXM 700000
75
76
#define EC_TIMEOUTSTATE 2000000
77
78
#define EC_MAXEEPBITMAP 128
79
80
#define EC_MAXEEPBUF EC_MAXEEPBITMAP << 5
81
82
#define EC_DEFAULTRETRIES 3
83
84
#define EC_LOGGROUPOFFSET 16
85
87
typedef
uint8
ec_bufT
[
EC_BUFSIZE
];
88
90
PACKED_BEGIN
91
typedef
struct
PACKED
92
{
94
uint16
da0
,
da1
,
da2
;
96
uint16
sa0
,
sa1
,
sa2
;
98
uint16
etype
;
99
}
ec_etherheadert
;
100
PACKED_END
101
103
#define ETH_HEADERSIZE sizeof(ec_etherheadert)
104
106
PACKED_BEGIN
107
typedef
struct
PACKED
108
{
110
uint16
elength
;
112
uint8
command
;
114
uint8
index
;
116
uint16
ADP
;
118
uint16
ADO
;
120
uint16
dlength
;
122
uint16
irpt
;
123
}
ec_comt
;
124
PACKED_END
125
127
#define EC_HEADERSIZE sizeof(ec_comt)
128
129
#define EC_ELENGTHSIZE sizeof(uint16)
130
131
#define EC_CMDOFFSET EC_ELENGTHSIZE
132
133
#define EC_WKCSIZE sizeof(uint16)
134
135
#define EC_DATAGRAMFOLLOWS (1 << 15)
136
138
typedef
enum
139
{
141
EC_ERR_OK
= 0,
143
EC_ERR_ALREADY_INITIALIZED
,
145
EC_ERR_NOT_INITIALIZED
,
147
EC_ERR_TIMEOUT
,
149
EC_ERR_NO_SLAVES
,
151
EC_ERR_NOK
152
}
ec_err
;
153
155
typedef
enum
156
{
158
EC_STATE_NONE
= 0x00,
160
EC_STATE_INIT
= 0x01,
162
EC_STATE_PRE_OP
= 0x02,
164
EC_STATE_BOOT
= 0x03,
166
EC_STATE_SAFE_OP
= 0x04,
168
EC_STATE_OPERATIONAL
= 0x08,
170
EC_STATE_ACK
= 0x10,
171
EC_STATE_ERROR
= 0x10
172
}
ec_state
;
173
175
typedef
enum
176
{
178
EC_BUF_EMPTY
= 0x00,
180
EC_BUF_ALLOC
= 0x01,
182
EC_BUF_TX
= 0x02,
184
EC_BUF_RCVD
= 0x03,
186
EC_BUF_COMPLETE
= 0x04
187
}
ec_bufstate
;
188
190
typedef
enum
191
{
192
ECT_BOOLEAN
= 0x0001,
193
ECT_INTEGER8
= 0x0002,
194
ECT_INTEGER16
= 0x0003,
195
ECT_INTEGER32
= 0x0004,
196
ECT_UNSIGNED8
= 0x0005,
197
ECT_UNSIGNED16
= 0x0006,
198
ECT_UNSIGNED32
= 0x0007,
199
ECT_REAL32
= 0x0008,
200
ECT_VISIBLE_STRING
= 0x0009,
201
ECT_OCTET_STRING
= 0x000A,
202
ECT_UNICODE_STRING
= 0x000B,
203
ECT_TIME_OF_DAY
= 0x000C,
204
ECT_TIME_DIFFERENCE
= 0x000D,
205
ECT_DOMAIN
= 0x000F,
206
ECT_INTEGER24
= 0x0010,
207
ECT_REAL64
= 0x0011,
208
ECT_INTEGER64
= 0x0015,
209
ECT_UNSIGNED24
= 0x0016,
210
ECT_UNSIGNED64
= 0x001B,
211
ECT_BIT1
= 0x0030,
212
ECT_BIT2
= 0x0031,
213
ECT_BIT3
= 0x0032,
214
ECT_BIT4
= 0x0033,
215
ECT_BIT5
= 0x0034,
216
ECT_BIT6
= 0x0035,
217
ECT_BIT7
= 0x0036,
218
ECT_BIT8
= 0x0037
219
}
ec_datatype
;
220
222
typedef
enum
223
{
225
EC_CMD_NOP
= 0x00,
227
EC_CMD_APRD
,
229
EC_CMD_APWR
,
231
EC_CMD_APRW
,
233
EC_CMD_FPRD
,
235
EC_CMD_FPWR
,
237
EC_CMD_FPRW
,
239
EC_CMD_BRD
,
241
EC_CMD_BWR
,
243
EC_CMD_BRW
,
245
EC_CMD_LRD
,
247
EC_CMD_LWR
,
249
EC_CMD_LRW
,
251
EC_CMD_ARMW
,
253
EC_CMD_FRMW
255
}
ec_cmdtype
;
256
258
typedef
enum
259
{
261
EC_ECMD_NOP
= 0x0000,
263
EC_ECMD_READ
= 0x0100,
265
EC_ECMD_WRITE
= 0x0201,
267
EC_ECMD_RELOAD
= 0x0300
268
}
ec_ecmdtype
;
269
271
#define EC_ESTAT_R64 0x0040
272
273
#define EC_ESTAT_BUSY 0x8000
274
275
#define EC_ESTAT_EMASK 0x7800
276
277
#define EC_ESTAT_NACK 0x2000
278
279
/* Ethercat SSI (Slave Information Interface) */
280
282
#define ECT_SII_START 0x0040
283
284
enum
285
{
287
ECT_SII_STRING
= 10,
289
ECT_SII_GENERAL
= 30,
291
ECT_SII_FMMU
= 40,
293
ECT_SII_SM
= 41,
295
ECT_SII_PDO
= 50
296
};
297
299
enum
300
{
301
ECT_SII_MANUF
= 0x0008,
302
ECT_SII_ID
= 0x000a,
303
ECT_SII_REV
= 0x000c,
304
ECT_SII_BOOTRXMBX
= 0x0014,
305
ECT_SII_BOOTTXMBX
= 0x0016,
306
ECT_SII_MBXSIZE
= 0x0019,
307
ECT_SII_TXMBXADR
= 0x001a,
308
ECT_SII_RXMBXADR
= 0x0018,
309
ECT_SII_MBXPROTO
= 0x001c
310
};
311
313
enum
314
{
316
ECT_MBXT_ERR
= 0x00,
318
ECT_MBXT_AOE
,
320
ECT_MBXT_EOE
,
322
ECT_MBXT_COE
,
324
ECT_MBXT_FOE
,
326
ECT_MBXT_SOE
,
328
ECT_MBXT_VOE
= 0x0f
329
};
330
332
enum
333
{
334
ECT_COES_EMERGENCY
= 0x01,
335
ECT_COES_SDOREQ
,
336
ECT_COES_SDORES
,
337
ECT_COES_TXPDO
,
338
ECT_COES_RXPDO
,
339
ECT_COES_TXPDO_RR
,
340
ECT_COES_RXPDO_RR
,
341
ECT_COES_SDOINFO
342
};
343
345
enum
346
{
347
ECT_SDO_DOWN_INIT
= 0x21,
348
ECT_SDO_DOWN_EXP
= 0x23,
349
ECT_SDO_DOWN_INIT_CA
= 0x31,
350
ECT_SDO_UP_REQ
= 0x40,
351
ECT_SDO_UP_REQ_CA
= 0x50,
352
ECT_SDO_SEG_UP_REQ
= 0x60,
353
ECT_SDO_ABORT
= 0x80
354
};
355
357
enum
358
{
359
ECT_GET_ODLIST_REQ
= 0x01,
360
ECT_GET_ODLIST_RES
= 0x02,
361
ECT_GET_OD_REQ
= 0x03,
362
ECT_GET_OD_RES
= 0x04,
363
ECT_GET_OE_REQ
= 0x05,
364
ECT_GET_OE_RES
= 0x06,
365
ECT_SDOINFO_ERROR
= 0x07
366
};
367
369
enum
370
{
371
ECT_FOE_READ
= 0x01,
372
ECT_FOE_WRITE
,
373
ECT_FOE_DATA
,
374
ECT_FOE_ACK
,
375
ECT_FOE_ERROR
,
376
ECT_FOE_BUSY
377
};
378
380
enum
381
{
382
ECT_SOE_READREQ
= 0x01,
383
ECT_SOE_READRES
,
384
ECT_SOE_WRITEREQ
,
385
ECT_SOE_WRITERES
,
386
ECT_SOE_NOTIFICATION
,
387
ECT_SOE_EMERGENCY
388
};
389
391
enum
392
{
393
ECT_REG_TYPE
= 0x0000,
394
ECT_REG_PORTDES
= 0x0007,
395
ECT_REG_ESCSUP
= 0x0008,
396
ECT_REG_STADR
= 0x0010,
397
ECT_REG_ALIAS
= 0x0012,
398
ECT_REG_DLCTL
= 0x0100,
399
ECT_REG_DLPORT
= 0x0101,
400
ECT_REG_DLALIAS
= 0x0103,
401
ECT_REG_DLSTAT
= 0x0110,
402
ECT_REG_ALCTL
= 0x0120,
403
ECT_REG_ALSTAT
= 0x0130,
404
ECT_REG_ALSTATCODE
= 0x0134,
405
ECT_REG_PDICTL
= 0x0140,
406
ECT_REG_IRQMASK
= 0x0200,
407
ECT_REG_RXERR
= 0x0300,
408
ECT_REG_FRXERR
= 0x0308,
409
ECT_REG_EPUECNT
= 0x030C,
410
ECT_REG_PECNT
= 0x030D,
411
ECT_REG_PECODE
= 0x030E,
412
ECT_REG_LLCNT
= 0x0310,
413
ECT_REG_WDCNT
= 0x0442,
414
ECT_REG_EEPCFG
= 0x0500,
415
ECT_REG_EEPCTL
= 0x0502,
416
ECT_REG_EEPSTAT
= 0x0502,
417
ECT_REG_EEPADR
= 0x0504,
418
ECT_REG_EEPDAT
= 0x0508,
419
ECT_REG_FMMU0
= 0x0600,
420
ECT_REG_FMMU1
=
ECT_REG_FMMU0
+ 0x10,
421
ECT_REG_FMMU2
=
ECT_REG_FMMU1
+ 0x10,
422
ECT_REG_FMMU3
=
ECT_REG_FMMU2
+ 0x10,
423
ECT_REG_SM0
= 0x0800,
424
ECT_REG_SM1
=
ECT_REG_SM0
+ 0x08,
425
ECT_REG_SM2
=
ECT_REG_SM1
+ 0x08,
426
ECT_REG_SM3
=
ECT_REG_SM2
+ 0x08,
427
ECT_REG_SM0STAT
=
ECT_REG_SM0
+ 0x05,
428
ECT_REG_SM1STAT
=
ECT_REG_SM1
+ 0x05,
429
ECT_REG_SM1ACT
=
ECT_REG_SM1
+ 0x06,
430
ECT_REG_SM1CONTR
=
ECT_REG_SM1
+ 0x07,
431
ECT_REG_DCTIME0
= 0x0900,
432
ECT_REG_DCTIME1
= 0x0904,
433
ECT_REG_DCTIME2
= 0x0908,
434
ECT_REG_DCTIME3
= 0x090C,
435
ECT_REG_DCSYSTIME
= 0x0910,
436
ECT_REG_DCSOF
= 0x0918,
437
ECT_REG_DCSYSOFFSET
= 0x0920,
438
ECT_REG_DCSYSDELAY
= 0x0928,
439
ECT_REG_DCSYSDIFF
= 0x092C,
440
ECT_REG_DCSPEEDCNT
= 0x0930,
441
ECT_REG_DCTIMEFILT
= 0x0934,
442
ECT_REG_DCCUC
= 0x0980,
443
ECT_REG_DCSYNCACT
= 0x0981,
444
ECT_REG_DCSTART0
= 0x0990,
445
ECT_REG_DCCYCLE0
= 0x09A0,
446
ECT_REG_DCCYCLE1
= 0x09A4
447
};
448
450
#define ECT_SDO_SMCOMMTYPE 0x1c00
451
452
#define ECT_SDO_PDOASSIGN 0x1c10
453
454
#define ECT_SDO_RXPDOASSIGN 0x1c12
455
456
#define ECT_SDO_TXPDOASSIGN 0x1c13
457
459
#define ETH_P_ECAT 0x88A4
460
462
typedef
enum
463
{
464
EC_ERR_TYPE_SDO_ERROR
= 0,
465
EC_ERR_TYPE_EMERGENCY
= 1,
466
EC_ERR_TYPE_PACKET_ERROR
= 3,
467
EC_ERR_TYPE_SDOINFO_ERROR
= 4,
468
EC_ERR_TYPE_FOE_ERROR
= 5,
469
EC_ERR_TYPE_FOE_BUF2SMALL
= 6,
470
EC_ERR_TYPE_FOE_PACKETNUMBER
= 7,
471
EC_ERR_TYPE_SOE_ERROR
= 8,
472
EC_ERR_TYPE_MBX_ERROR
= 9,
473
EC_ERR_TYPE_FOE_FILE_NOTFOUND
= 10,
474
EC_ERR_TYPE_EOE_INVALID_RX_DATA
= 11
475
}
ec_err_type
;
476
478
typedef
struct
479
{
481
ec_timet
Time
;
483
boolean
Signal
;
485
uint16
Slave
;
487
uint16
Index
;
489
uint8
SubIdx
;
491
ec_err_type
Etype
;
492
union
493
{
495
int32
AbortCode
;
497
struct
498
{
499
uint16
ErrorCode
;
500
uint8
ErrorReg
;
501
uint8
b1
;
502
uint16
w1
;
503
uint16
w2
;
504
};
505
};
506
}
ec_errort
;
507
510
#define MK_WORD(msb, lsb) ((((uint16)(msb))<<8) | (lsb))
511
512
#define HI_BYTE(w) ((w) >> 8)
513
514
#define LO_BYTE(w) ((w) & 0x00ff)
515
516
#define SWAP(w) ((((w)& 0xff00) >> 8) | (((w) & 0x00ff) << 8))
517
518
#define LO_WORD(l) ((l) & 0xffff)
519
520
#define HI_WORD(l) ((l) >> 16)
521
522
#define get_unaligned(ptr) \
523
({ __typeof__(*(ptr)) __tmp; memcpy(&__tmp, (ptr), sizeof(*(ptr))); __tmp; })
524
525
#define put_unaligned32(val, ptr) \
526
(memcpy((ptr), &(val), 4))
527
528
#define put_unaligned64(val, ptr) \
529
(memcpy((ptr), &(val), 8))
530
531
#if !defined(EC_BIG_ENDIAN) && defined(EC_LITTLE_ENDIAN)
532
533
#define htoes(A) (A)
534
#define htoel(A) (A)
535
#define htoell(A) (A)
536
#define etohs(A) (A)
537
#define etohl(A) (A)
538
#define etohll(A) (A)
539
540
#elif !defined(EC_LITTLE_ENDIAN) && defined(EC_BIG_ENDIAN)
541
542
#define htoes(A) ((((uint16)(A) & 0xff00) >> 8) | \
543
(((uint16)(A) & 0x00ff) << 8))
544
#define htoel(A) ((((uint32)(A) & 0xff000000) >> 24) | \
545
(((uint32)(A) & 0x00ff0000) >> 8) | \
546
(((uint32)(A) & 0x0000ff00) << 8) | \
547
(((uint32)(A) & 0x000000ff) << 24))
548
#define htoell(A) ((((uint64)(A) & (uint64)0xff00000000000000ULL) >> 56) | \
549
(((uint64)(A) & (uint64)0x00ff000000000000ULL) >> 40) | \
550
(((uint64)(A) & (uint64)0x0000ff0000000000ULL) >> 24) | \
551
(((uint64)(A) & (uint64)0x000000ff00000000ULL) >> 8) | \
552
(((uint64)(A) & (uint64)0x00000000ff000000ULL) << 8) | \
553
(((uint64)(A) & (uint64)0x0000000000ff0000ULL) << 24) | \
554
(((uint64)(A) & (uint64)0x000000000000ff00ULL) << 40) | \
555
(((uint64)(A) & (uint64)0x00000000000000ffULL) << 56))
556
557
#define etohs htoes
558
#define etohl htoel
559
#define etohll htoell
560
561
#else
562
563
#error "Must define one of EC_BIG_ENDIAN or EC_LITTLE_ENDIAN"
564
565
#endif
566
567
#ifdef __cplusplus
568
}
569
#endif
570
571
#endif
/* _EC_TYPE_H */
ECT_REG_EEPADR
Definition:
ethercattype.h:417
EC_ERR_NOK
Definition:
ethercattype.h:151
PACKED::sa1
uint16 sa1
Definition:
ethercattype.h:96
ECT_REG_EPUECNT
Definition:
ethercattype.h:409
ECT_BIT4
Definition:
ethercattype.h:214
EC_BUF_EMPTY
Definition:
ethercattype.h:178
ECT_SDOINFO_ERROR
Definition:
ethercattype.h:365
ECT_REG_SM2
Definition:
ethercattype.h:425
osal.h
ECT_REG_EEPSTAT
Definition:
ethercattype.h:416
ECT_GET_OE_RES
Definition:
ethercattype.h:364
EC_ERR_TYPE_SDO_ERROR
Definition:
ethercattype.h:464
ECT_REG_DCSYSDELAY
Definition:
ethercattype.h:438
ECT_REAL64
Definition:
ethercattype.h:207
ECT_REG_DCCYCLE0
Definition:
ethercattype.h:445
ECT_SII_MBXSIZE
Definition:
ethercattype.h:306
ECT_SDO_UP_REQ_CA
Definition:
ethercattype.h:351
ECT_REG_TYPE
Definition:
ethercattype.h:393
EC_CMD_BRW
Definition:
ethercattype.h:243
ECT_SDO_DOWN_INIT_CA
Definition:
ethercattype.h:349
EC_ERR_TYPE_SDOINFO_ERROR
Definition:
ethercattype.h:467
ECT_SII_TXMBXADR
Definition:
ethercattype.h:307
PACKED::index
uint8 index
Definition:
ethercattype.h:114
EC_ERR_TYPE_FOE_BUF2SMALL
Definition:
ethercattype.h:469
ECT_SII_BOOTRXMBX
Definition:
ethercattype.h:304
ECT_MBXT_FOE
Definition:
ethercattype.h:324
EC_ERR_TIMEOUT
Definition:
ethercattype.h:147
PACKED::da0
uint16 da0
Definition:
ethercattype.h:94
ECT_GET_OD_RES
Definition:
ethercattype.h:362
EC_CMD_FPWR
Definition:
ethercattype.h:235
ECT_COES_EMERGENCY
Definition:
ethercattype.h:334
ECT_BIT8
Definition:
ethercattype.h:218
ECT_REG_DCCUC
Definition:
ethercattype.h:442
ECT_FOE_READ
Definition:
ethercattype.h:371
EC_CMD_FPRW
Definition:
ethercattype.h:237
ECT_REG_DCSPEEDCNT
Definition:
ethercattype.h:440
uint8
uint8_t uint8
Definition:
osal.h:28
ECT_BIT3
Definition:
ethercattype.h:213
EC_ERR_OK
Definition:
ethercattype.h:141
EC_STATE_NONE
Definition:
ethercattype.h:158
ECT_REG_PECODE
Definition:
ethercattype.h:411
ECT_SOE_READREQ
Definition:
ethercattype.h:382
ECT_UNSIGNED8
Definition:
ethercattype.h:196
ECT_REG_DCTIME2
Definition:
ethercattype.h:433
ECT_REG_SM1STAT
Definition:
ethercattype.h:428
ECT_REG_DCSOF
Definition:
ethercattype.h:436
ECT_TIME_DIFFERENCE
Definition:
ethercattype.h:204
ECT_SDO_SEG_UP_REQ
Definition:
ethercattype.h:352
EC_CMD_APRW
Definition:
ethercattype.h:231
EC_CMD_NOP
Definition:
ethercattype.h:225
ec_etherheadert
PACKED_BEGIN struct PACKED ec_etherheadert
EC_ERR_TYPE_EOE_INVALID_RX_DATA
Definition:
ethercattype.h:474
ec_errort::SubIdx
uint8 SubIdx
Definition:
ethercattype.h:489
ec_errort::w2
uint16 w2
Definition:
ethercattype.h:503
ECT_DOMAIN
Definition:
ethercattype.h:205
EC_ERR_NO_SLAVES
Definition:
ethercattype.h:149
ECT_REG_SM3
Definition:
ethercattype.h:426
ECT_REG_FMMU3
Definition:
ethercattype.h:422
ECT_GET_ODLIST_REQ
Definition:
ethercattype.h:359
ECT_BIT2
Definition:
ethercattype.h:212
ec_state
ec_state
Definition:
ethercattype.h:155
uint16
uint16_t uint16
Definition:
osal.h:29
EC_ERR_TYPE_EMERGENCY
Definition:
ethercattype.h:465
ECT_SII_REV
Definition:
ethercattype.h:303
ECT_BIT1
Definition:
ethercattype.h:211
ECT_REG_SM0
Definition:
ethercattype.h:423
ec_errort
Definition:
ethercattype.h:478
ECT_REG_EEPCTL
Definition:
ethercattype.h:415
PACKED::sa2
uint16 sa2
Definition:
ethercattype.h:96
EC_CMD_APRD
Definition:
ethercattype.h:227
ECT_UNSIGNED32
Definition:
ethercattype.h:198
EC_CMD_APWR
Definition:
ethercattype.h:229
ECT_REG_DCTIMEFILT
Definition:
ethercattype.h:441
ECT_FOE_BUSY
Definition:
ethercattype.h:376
ECT_BOOLEAN
Definition:
ethercattype.h:192
PACKED::command
uint8 command
Definition:
ethercattype.h:112
PACKED::ADO
uint16 ADO
Definition:
ethercattype.h:118
EC_ECMD_NOP
Definition:
ethercattype.h:261
ECT_UNSIGNED64
Definition:
ethercattype.h:210
ec_errort::Etype
ec_err_type Etype
Definition:
ethercattype.h:491
ECT_SII_MANUF
Definition:
ethercattype.h:301
EC_CMD_BRD
Definition:
ethercattype.h:239
ECT_SII_STRING
Definition:
ethercattype.h:287
ECT_BIT6
Definition:
ethercattype.h:216
PACKED::irpt
uint16 irpt
Definition:
ethercattype.h:122
EC_ERR_TYPE_MBX_ERROR
Definition:
ethercattype.h:472
EC_BUF_ALLOC
Definition:
ethercattype.h:180
ECT_SII_BOOTTXMBX
Definition:
ethercattype.h:305
EC_ECMD_WRITE
Definition:
ethercattype.h:265
ECT_UNICODE_STRING
Definition:
ethercattype.h:202
ECT_REG_DCTIME0
Definition:
ethercattype.h:431
EC_STATE_OPERATIONAL
Definition:
ethercattype.h:168
ECT_REG_PDICTL
Definition:
ethercattype.h:405
EC_BUF_COMPLETE
Definition:
ethercattype.h:186
ECT_SOE_EMERGENCY
Definition:
ethercattype.h:387
ECT_REG_PECNT
Definition:
ethercattype.h:410
ECT_SII_RXMBXADR
Definition:
ethercattype.h:308
ECT_REG_RXERR
Definition:
ethercattype.h:407
ec_timet
Definition:
osal.h:36
ec_cmdtype
ec_cmdtype
Definition:
ethercattype.h:222
ECT_REG_FMMU2
Definition:
ethercattype.h:421
PACKED::da1
uint16 da1
Definition:
ethercattype.h:94
ec_datatype
ec_datatype
Definition:
ethercattype.h:190
ECT_REG_IRQMASK
Definition:
ethercattype.h:406
ECT_REG_PORTDES
Definition:
ethercattype.h:394
EC_STATE_BOOT
Definition:
ethercattype.h:164
ECT_REG_DCCYCLE1
Definition:
ethercattype.h:446
ECT_REG_SM1CONTR
Definition:
ethercattype.h:430
EC_CMD_LRW
Definition:
ethercattype.h:249
PACKED::elength
uint16 elength
Definition:
ethercattype.h:110
ec_errort::Slave
uint16 Slave
Definition:
ethercattype.h:485
EC_BUF_RCVD
Definition:
ethercattype.h:184
ECT_FOE_DATA
Definition:
ethercattype.h:373
PACKED
Definition:
ethercatcoe.c:24
ECT_SII_FMMU
Definition:
ethercattype.h:291
ECT_INTEGER24
Definition:
ethercattype.h:206
ECT_TIME_OF_DAY
Definition:
ethercattype.h:203
ECT_REG_ALSTATCODE
Definition:
ethercattype.h:404
ECT_FOE_ACK
Definition:
ethercattype.h:374
EC_CMD_LWR
Definition:
ethercattype.h:247
ECT_MBXT_COE
Definition:
ethercattype.h:322
EC_STATE_ACK
Definition:
ethercattype.h:170
PACKED_END
#define PACKED_END
Definition:
erika/osal_defs.h:30
ECT_GET_ODLIST_RES
Definition:
ethercattype.h:360
int32
int32_t int32
Definition:
osal.h:27
ec_comt
PACKED_BEGIN struct PACKED ec_comt
ECT_MBXT_SOE
Definition:
ethercattype.h:326
ECT_FOE_WRITE
Definition:
ethercattype.h:372
EC_ERR_TYPE_FOE_PACKETNUMBER
Definition:
ethercattype.h:470
ECT_SOE_WRITERES
Definition:
ethercattype.h:385
EC_ERR_ALREADY_INITIALIZED
Definition:
ethercattype.h:143
EC_BUF_TX
Definition:
ethercattype.h:182
EC_STATE_SAFE_OP
Definition:
ethercattype.h:166
EC_STATE_PRE_OP
Definition:
ethercattype.h:162
ECT_REG_DLCTL
Definition:
ethercattype.h:398
ECT_REG_STADR
Definition:
ethercattype.h:396
ECT_MBXT_EOE
Definition:
ethercattype.h:320
PACKED::dlength
uint16 dlength
Definition:
ethercattype.h:120
EC_CMD_LRD
Definition:
ethercattype.h:245
ECT_REG_SM1
Definition:
ethercattype.h:424
PACKED::ADP
uint16 ADP
Definition:
ethercattype.h:116
ec_errort::Signal
boolean Signal
Definition:
ethercattype.h:483
ECT_SII_GENERAL
Definition:
ethercattype.h:289
ECT_SOE_READRES
Definition:
ethercattype.h:383
EC_CMD_ARMW
Definition:
ethercattype.h:251
ECT_REG_ESCSUP
Definition:
ethercattype.h:395
ec_bufstate
ec_bufstate
Definition:
ethercattype.h:175
ECT_OCTET_STRING
Definition:
ethercattype.h:201
ECT_REG_SM1ACT
Definition:
ethercattype.h:429
ECT_COES_RXPDO
Definition:
ethercattype.h:338
ECT_REG_FMMU0
Definition:
ethercattype.h:419
ec_errort::AbortCode
int32 AbortCode
Definition:
ethercattype.h:495
ec_errort::Time
ec_timet Time
Definition:
ethercattype.h:481
PACKED::etype
uint16 etype
Definition:
ethercattype.h:98
EC_ERR_NOT_INITIALIZED
Definition:
ethercattype.h:145
ECT_REAL32
Definition:
ethercattype.h:199
ec_errort::ErrorCode
uint16 ErrorCode
Definition:
ethercattype.h:499
ECT_COES_TXPDO_RR
Definition:
ethercattype.h:339
ECT_SII_ID
Definition:
ethercattype.h:302
ECT_INTEGER16
Definition:
ethercattype.h:194
EC_ERR_TYPE_FOE_ERROR
Definition:
ethercattype.h:468
ECT_BIT7
Definition:
ethercattype.h:217
ECT_REG_DCSYNCACT
Definition:
ethercattype.h:443
ECT_REG_LLCNT
Definition:
ethercattype.h:412
ECT_SOE_NOTIFICATION
Definition:
ethercattype.h:386
ECT_INTEGER8
Definition:
ethercattype.h:193
ECT_UNSIGNED16
Definition:
ethercattype.h:197
ECT_GET_OD_REQ
Definition:
ethercattype.h:361
EC_CMD_FPRD
Definition:
ethercattype.h:233
ec_errort::b1
uint8 b1
Definition:
ethercattype.h:501
ECT_VISIBLE_STRING
Definition:
ethercattype.h:200
ECT_REG_DLALIAS
Definition:
ethercattype.h:400
ECT_REG_DCSTART0
Definition:
ethercattype.h:444
ec_errort::Index
uint16 Index
Definition:
ethercattype.h:487
ec_ecmdtype
ec_ecmdtype
Definition:
ethercattype.h:258
ECT_REG_DCTIME3
Definition:
ethercattype.h:434
EC_ECMD_READ
Definition:
ethercattype.h:263
ec_bufT
uint8 ec_bufT[EC_BUFSIZE]
Definition:
ethercattype.h:87
ECT_REG_EEPDAT
Definition:
ethercattype.h:418
PACKED::sa0
uint16 sa0
Definition:
ethercattype.h:96
ECT_REG_DCTIME1
Definition:
ethercattype.h:432
PACKED::da2
uint16 da2
Definition:
ethercattype.h:94
ECT_SDO_DOWN_INIT
Definition:
ethercattype.h:347
ECT_MBXT_AOE
Definition:
ethercattype.h:318
ECT_SOE_WRITEREQ
Definition:
ethercattype.h:384
ECT_REG_FRXERR
Definition:
ethercattype.h:408
ec_err
ec_err
Definition:
ethercattype.h:138
ec_err_type
ec_err_type
Definition:
ethercattype.h:462
ECT_REG_EEPCFG
Definition:
ethercattype.h:414
ECT_REG_DCSYSDIFF
Definition:
ethercattype.h:439
ECT_REG_FMMU1
Definition:
ethercattype.h:420
ECT_MBXT_ERR
Definition:
ethercattype.h:316
ECT_REG_DCSYSOFFSET
Definition:
ethercattype.h:437
EC_ERR_TYPE_FOE_FILE_NOTFOUND
Definition:
ethercattype.h:473
ECT_REG_DCSYSTIME
Definition:
ethercattype.h:435
EC_ERR_TYPE_PACKET_ERROR
Definition:
ethercattype.h:466
ECT_SII_MBXPROTO
Definition:
ethercattype.h:309
ECT_INTEGER64
Definition:
ethercattype.h:208
EC_STATE_ERROR
Definition:
ethercattype.h:171
ECT_COES_TXPDO
Definition:
ethercattype.h:337
ECT_REG_ALIAS
Definition:
ethercattype.h:397
ECT_COES_SDOREQ
Definition:
ethercattype.h:335
EC_ERR_TYPE_SOE_ERROR
Definition:
ethercattype.h:471
EC_BUFSIZE
#define EC_BUFSIZE
Definition:
ethercattype.h:58
ECT_REG_WDCNT
Definition:
ethercattype.h:413
ECT_SDO_DOWN_EXP
Definition:
ethercattype.h:348
ECT_SDO_UP_REQ
Definition:
ethercattype.h:350
ECT_INTEGER32
Definition:
ethercattype.h:195
EC_ECMD_RELOAD
Definition:
ethercattype.h:267
ec_errort::w1
uint16 w1
Definition:
ethercattype.h:502
ECT_REG_ALSTAT
Definition:
ethercattype.h:403
ECT_SDO_ABORT
Definition:
ethercattype.h:353
EC_CMD_FRMW
Definition:
ethercattype.h:253
ECT_REG_ALCTL
Definition:
ethercattype.h:402
ECT_COES_SDORES
Definition:
ethercattype.h:336
ECT_GET_OE_REQ
Definition:
ethercattype.h:363
ECT_BIT5
Definition:
ethercattype.h:215
ECT_COES_SDOINFO
Definition:
ethercattype.h:341
ECT_REG_SM0STAT
Definition:
ethercattype.h:427
ECT_MBXT_VOE
Definition:
ethercattype.h:328
ec_errort::ErrorReg
uint8 ErrorReg
Definition:
ethercattype.h:500
ECT_COES_RXPDO_RR
Definition:
ethercattype.h:340
ECT_SII_SM
Definition:
ethercattype.h:293
ECT_UNSIGNED24
Definition:
ethercattype.h:209
ECT_FOE_ERROR
Definition:
ethercattype.h:375
ECT_REG_DLPORT
Definition:
ethercattype.h:399
EC_CMD_BWR
Definition:
ethercattype.h:241
ECT_REG_DLSTAT
Definition:
ethercattype.h:401
PACKED_BEGIN
#define PACKED_BEGIN
Definition:
erika/osal_defs.h:28
EC_STATE_INIT
Definition:
ethercattype.h:160
ECT_SII_PDO
Definition:
ethercattype.h:295
soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Sat Jun 27 2020 03:48:21