equal
deleted
inserted
replaced
3 * g l o b a l s . h |
3 * g l o b a l s . h |
4 * |
4 * |
5 * Global definitions and macros. |
5 * Global definitions and macros. |
6 * |
6 * |
7 * $Id$ |
7 * $Id$ |
|
8 * |
|
9 * Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH |
|
10 * |
|
11 * This file is part of the IgH EtherCAT Master. |
|
12 * |
|
13 * The IgH EtherCAT Master is free software; you can redistribute it |
|
14 * and/or modify it under the terms of the GNU General Public License |
|
15 * as published by the Free Software Foundation; version 2 of the License. |
|
16 * |
|
17 * The IgH EtherCAT Master is distributed in the hope that it will be |
|
18 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 * GNU General Public License for more details. |
|
21 * |
|
22 * You should have received a copy of the GNU General Public License |
|
23 * along with the IgH EtherCAT Master; if not, write to the Free Software |
|
24 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
8 * |
25 * |
9 *****************************************************************************/ |
26 *****************************************************************************/ |
10 |
27 |
11 #ifndef _EC_GLOBALS_ |
28 #ifndef _EC_GLOBALS_ |
12 #define _EC_GLOBALS_ |
29 #define _EC_GLOBALS_ |
15 |
32 |
16 /****************************************************************************** |
33 /****************************************************************************** |
17 * EtherCAT master |
34 * EtherCAT master |
18 *****************************************************************************/ |
35 *****************************************************************************/ |
19 |
36 |
|
37 /** master main version */ |
20 #define EC_MASTER_VERSION_MAIN 1 |
38 #define EC_MASTER_VERSION_MAIN 1 |
|
39 |
|
40 /** master sub version (after the dot) */ |
21 #define EC_MASTER_VERSION_SUB 0 |
41 #define EC_MASTER_VERSION_SUB 0 |
|
42 |
|
43 /** master extra version (just a string) */ |
22 #define EC_MASTER_VERSION_EXTRA "trunk" |
44 #define EC_MASTER_VERSION_EXTRA "trunk" |
23 |
45 |
24 /** maximum number of FMMUs per slave */ |
46 /** maximum number of FMMUs per slave */ |
25 #define EC_MAX_FMMUS 16 |
47 #define EC_MAX_FMMUS 16 |
26 |
48 |
29 *****************************************************************************/ |
51 *****************************************************************************/ |
30 |
52 |
31 /** maximum size of an EtherCAT frame (without header and CRC) */ |
53 /** maximum size of an EtherCAT frame (without header and CRC) */ |
32 #define EC_MAX_FRAME_SIZE 1500 |
54 #define EC_MAX_FRAME_SIZE 1500 |
33 |
55 |
34 /** ... minimum size */ |
56 /** minimum size of an EtherCAT frame (without header and CRC) */ |
35 #define EC_MIN_FRAME_SIZE 46 |
57 #define EC_MIN_FRAME_SIZE 46 |
36 |
58 |
37 /** size of an EtherCAT frame header */ |
59 /** size of an EtherCAT frame header */ |
38 #define EC_FRAME_HEADER_SIZE 2 |
60 #define EC_FRAME_HEADER_SIZE 2 |
39 |
61 |