fp@933: /****************************************************************************** fp@933: * fp@933: * $Id$ fp@933: * fp@933: * Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH fp@933: * fp@933: * This file is part of the IgH EtherCAT Master. fp@933: * fp@933: * The IgH EtherCAT Master is free software; you can redistribute it fp@933: * and/or modify it under the terms of the GNU General Public License fp@933: * as published by the Free Software Foundation; either version 2 of the fp@933: * License, or (at your option) any later version. fp@933: * fp@933: * The IgH EtherCAT Master is distributed in the hope that it will be fp@933: * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of fp@933: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the fp@933: * GNU General Public License for more details. fp@933: * fp@933: * You should have received a copy of the GNU General Public License fp@933: * along with the IgH EtherCAT Master; if not, write to the Free Software fp@933: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@933: * fp@933: * The right to use EtherCAT Technology is granted and comes free of fp@933: * charge under condition of compatibility of product made by fp@933: * Licensee. People intending to distribute/sell products based on the fp@933: * code, have to sign an agreement to guarantee that products using fp@933: * software based on IgH EtherCAT master stay compatible with the actual fp@933: * EtherCAT specification (which are released themselves as an open fp@933: * standard) as the (only) precondition to have the right to use EtherCAT fp@933: * Technology, IP and trade marks. fp@933: * fp@933: *****************************************************************************/ fp@933: fp@933: /** fp@933: \file fp@933: EtherCAT Process data object structure. fp@933: */ fp@933: fp@933: /*****************************************************************************/ fp@933: fp@933: #ifndef __EC_PDO_ENTRY_H__ fp@933: #define __EC_PDO_ENTRY_H__ fp@933: fp@933: #include fp@933: fp@933: #include "../include/ecrt.h" fp@933: fp@933: #include "globals.h" fp@933: fp@933: /*****************************************************************************/ fp@933: fp@933: /** Pdo entry description. fp@933: */ fp@933: typedef struct { fp@933: struct list_head list; /**< list item */ fp@933: uint16_t index; /**< Pdo entry index */ fp@933: uint8_t subindex; /**< Pdo entry subindex */ fp@933: char *name; /**< entry name */ fp@933: uint8_t bit_length; /**< entry length in bit */ fp@933: } ec_pdo_entry_t; fp@933: fp@933: /*****************************************************************************/ fp@933: fp@933: void ec_pdo_entry_init(ec_pdo_entry_t *); fp@933: int ec_pdo_entry_init_copy(ec_pdo_entry_t *, const ec_pdo_entry_t *); fp@933: void ec_pdo_entry_clear(ec_pdo_entry_t *); fp@933: int ec_pdo_entry_set_name(ec_pdo_entry_t *, const char *); fp@933: int ec_pdo_entry_equal(const ec_pdo_entry_t *, const ec_pdo_entry_t *); fp@933: fp@933: /*****************************************************************************/ fp@933: fp@933: #endif