fp@933: /****************************************************************************** fp@933: * fp@933: * $Id$ fp@933: * fp@1326: * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH fp@933: * fp@933: * This file is part of the IgH EtherCAT Master. fp@933: * fp@1326: * The IgH EtherCAT Master is free software; you can redistribute it and/or fp@1326: * modify it under the terms of the GNU General Public License version 2, as fp@1326: * published by the Free Software Foundation. fp@933: * fp@1326: * The IgH EtherCAT Master is distributed in the hope that it will be useful, fp@1326: * but WITHOUT ANY WARRANTY; without even the implied warranty of fp@1326: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General fp@1326: * Public License for more details. fp@933: * fp@1326: * You should have received a copy of the GNU General Public License along fp@1326: * 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@1363: * --- fp@1363: * fp@1363: * The license mentioned above concerns the source code only. Using the fp@1363: * EtherCAT technology and brand is only permitted in compliance with the fp@1363: * industrial property and similar rights of Beckhoff Automation GmbH. 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 "globals.h" fp@933: fp@933: /*****************************************************************************/ fp@933: fp@1327: /** PDO entry description. fp@933: */ fp@933: typedef struct { fp@933: struct list_head list; /**< list item */ fp@1327: uint16_t index; /**< PDO entry index */ fp@1327: 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