fp@792: /****************************************************************************** fp@792: * fp@792: * $Id$ fp@792: * fp@1326: * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH fp@792: * fp@792: * This file is part of the IgH EtherCAT Master. fp@792: * 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@792: * 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@792: * 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@792: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@792: * 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@792: * fp@792: *****************************************************************************/ fp@792: fp@792: /** \file fp@792: * EtherCAT FMMU configuration structure. fp@792: */ fp@792: fp@792: /*****************************************************************************/ fp@792: fp@883: #ifndef __EC_FMMU_CONFIG_H__ fp@883: #define __EC_FMMU_CONFIG_H__ fp@792: fp@792: #include "globals.h" fp@818: #include "sync.h" fp@792: fp@792: /*****************************************************************************/ fp@792: fp@792: /** FMMU configuration. fp@792: */ fp@818: typedef struct { fp@950: struct list_head list; /**< List node used by domain. */ fp@792: const ec_slave_config_t *sc; /**< EtherCAT slave config. */ fp@792: const ec_domain_t *domain; /**< Domain. */ fp@1055: uint8_t sync_index; /**< Index of sync manager to use. */ fp@1055: ec_direction_t dir; /**< FMMU direction. */ fp@792: uint32_t logical_start_address; /**< Logical start address. */ fp@1327: unsigned int data_size; /**< Covered PDO size. */ fp@818: } ec_fmmu_config_t; fp@792: fp@792: /*****************************************************************************/ fp@792: fp@792: void ec_fmmu_config_init(ec_fmmu_config_t *, ec_slave_config_t *, fp@1055: ec_domain_t *, uint8_t, ec_direction_t); fp@792: fp@792: void ec_fmmu_config_page(const ec_fmmu_config_t *, const ec_sync_t *, fp@792: uint8_t *); fp@792: fp@792: /*****************************************************************************/ fp@792: fp@792: #endif