6 * |
6 * |
7 * This file is part of the IgH EtherCAT Master. |
7 * This file is part of the IgH EtherCAT Master. |
8 * |
8 * |
9 * The IgH EtherCAT Master is free software; you can redistribute it |
9 * The IgH EtherCAT Master is free software; you can redistribute it |
10 * and/or modify it under the terms of the GNU General Public License |
10 * and/or modify it under the terms of the GNU General Public License |
11 * as published by the Free Software Foundation; version 2 of the License. |
11 * as published by the Free Software Foundation; either version 2 of the |
|
12 * License, or (at your option) any later version. |
12 * |
13 * |
13 * The IgH EtherCAT Master is distributed in the hope that it will be |
14 * The IgH EtherCAT Master is distributed in the hope that it will be |
14 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 * GNU General Public License for more details. |
17 * GNU General Public License for more details. |
17 * |
18 * |
18 * You should have received a copy of the GNU General Public License |
19 * You should have received a copy of the GNU General Public License |
19 * along with the IgH EtherCAT Master; if not, write to the Free Software |
20 * along with the IgH EtherCAT Master; if not, write to the Free Software |
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
21 * |
22 * |
|
23 * The right to use EtherCAT Technology is granted and comes free of |
|
24 * charge under condition of compatibility of product made by |
|
25 * Licensee. People intending to distribute/sell products based on the |
|
26 * code, have to sign an agreement to guarantee that products using |
|
27 * software based on IgH EtherCAT master stay compatible with the actual |
|
28 * EtherCAT specification (which are released themselves as an open |
|
29 * standard) as the (only) precondition to have the right to use EtherCAT |
|
30 * Technology, IP and trade marks. |
|
31 * |
22 *****************************************************************************/ |
32 *****************************************************************************/ |
23 |
33 |
24 /** |
34 /** |
25 \file |
35 \file |
26 Methods of an EtherCAT command. |
36 Methods of an EtherCAT command. |
27 */ |
37 */ |
28 |
38 |
29 /*****************************************************************************/ |
39 /*****************************************************************************/ |
30 |
40 |
31 #include <linux/slab.h> |
41 #include <linux/slab.h> |
32 #include <linux/delay.h> |
|
33 |
42 |
34 #include "command.h" |
43 #include "command.h" |
35 #include "master.h" |
44 #include "master.h" |
36 |
45 |
37 /*****************************************************************************/ |
46 /*****************************************************************************/ |
66 command->mem_size = 0; |
75 command->mem_size = 0; |
67 command->data_size = 0; |
76 command->data_size = 0; |
68 command->index = 0x00; |
77 command->index = 0x00; |
69 command->working_counter = 0x00; |
78 command->working_counter = 0x00; |
70 command->state = EC_CMD_INIT; |
79 command->state = EC_CMD_INIT; |
|
80 command->t_sent = 0; |
71 } |
81 } |
72 |
82 |
73 /*****************************************************************************/ |
83 /*****************************************************************************/ |
74 |
84 |
75 /** |
85 /** |