fp@792: /****************************************************************************** fp@792: * fp@792: * $Id$ fp@792: * fp@792: * Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH fp@792: * fp@792: * This file is part of the IgH EtherCAT Master. fp@792: * fp@792: * The IgH EtherCAT Master is free software; you can redistribute it fp@792: * and/or modify it under the terms of the GNU General Public License fp@792: * as published by the Free Software Foundation; either version 2 of the fp@792: * License, or (at your option) any later version. fp@792: * fp@792: * The IgH EtherCAT Master is distributed in the hope that it will be fp@792: * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of fp@792: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the fp@792: * GNU General Public License for more details. fp@792: * fp@792: * You should have received a copy of the GNU General Public License fp@792: * along 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@792: * The right to use EtherCAT Technology is granted and comes free of fp@792: * charge under condition of compatibility of product made by fp@792: * Licensee. People intending to distribute/sell products based on the fp@792: * code, have to sign an agreement to guarantee that products using fp@792: * software based on IgH EtherCAT master stay compatible with the actual fp@792: * EtherCAT specification (which are released themselves as an open fp@792: * standard) as the (only) precondition to have the right to use EtherCAT fp@792: * Technology, IP and trade marks. 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 "../include/ecrt.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@792: const ec_slave_config_t *sc; /**< EtherCAT slave config. */ fp@792: const ec_domain_t *domain; /**< Domain. */ fp@814: ec_direction_t dir; /**< Pdo direction. */ fp@792: fp@792: uint32_t logical_start_address; /**< Logical start address. */ fp@814: 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@792: ec_domain_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