master/command.h
changeset 197 b9a6e2c22745
parent 195 674071846ee3
child 199 04ecf40fc2e9
equal deleted inserted replaced
196:f8a1e9f364a3 197:b9a6e2c22745
     3  *  c o m m a n d . h
     3  *  c o m m a n d . h
     4  *
     4  *
     5  *  EtherCAT command structure.
     5  *  EtherCAT command structure.
     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_COMMAND_H_
    28 #ifndef _EC_COMMAND_H_
    12 #define _EC_COMMAND_H_
    29 #define _EC_COMMAND_H_
    13 
    30 
    14 #include <linux/list.h>
    31 #include <linux/list.h>
    15 
    32 
    16 #include "globals.h"
    33 #include "globals.h"
       
    34 
       
    35 /*****************************************************************************/
       
    36 
       
    37 /**
       
    38    \defgroup Command EtherCAT command
       
    39    Data types and functions for EtherCAT commands.
       
    40    An EtherCAT command is sent and received using the ec_command_t data type.
       
    41    It is passed to the master, which handles commands in a queue.
       
    42    \{
       
    43 */
    17 
    44 
    18 /*****************************************************************************/
    45 /*****************************************************************************/
    19 
    46 
    20 /**
    47 /**
    21    EtherCAT command type.
    48    EtherCAT command type.
    87     uint16_t working_counter; /**< working counter */
   114     uint16_t working_counter; /**< working counter */
    88     ec_command_state_t state; /**< command state */
   115     ec_command_state_t state; /**< command state */
    89 }
   116 }
    90 ec_command_t;
   117 ec_command_t;
    91 
   118 
       
   119 /** \} */
       
   120 
    92 /*****************************************************************************/
   121 /*****************************************************************************/
    93 
   122 
    94 void ec_command_init(ec_command_t *);
   123 void ec_command_init(ec_command_t *);
    95 void ec_command_clear(ec_command_t *);
   124 void ec_command_clear(ec_command_t *);
    96 
   125