fp@145: /****************************************************************************** fp@145: * fp@145: * $Id$ fp@145: * fp@1326: * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH fp@197: * fp@197: * This file is part of the IgH EtherCAT Master. fp@197: * 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@197: * 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@197: * 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@197: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@197: * 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@246: * fp@145: *****************************************************************************/ fp@145: fp@199: /** fp@199: \file fp@199: Mailbox functionality. fp@199: */ fp@199: fp@199: /*****************************************************************************/ fp@199: fp@883: #ifndef __EC_MAILBOX_H__ fp@883: #define __EC_MAILBOX_H__ fp@145: fp@145: #include "slave.h" fp@145: fp@145: /*****************************************************************************/ fp@145: fp@1907: /** Size of the mailbox header. fp@1907: */ fp@1563: #define EC_MBOX_HEADER_SIZE 6 fp@1563: fp@1563: /*****************************************************************************/ fp@1563: fp@293: uint8_t *ec_slave_mbox_prepare_send(const ec_slave_t *, ec_datagram_t *, fp@279: uint8_t, size_t); fp@293: int ec_slave_mbox_prepare_check(const ec_slave_t *, ec_datagram_t *); fp@293: int ec_slave_mbox_check(const ec_datagram_t *); fp@293: int ec_slave_mbox_prepare_fetch(const ec_slave_t *, ec_datagram_t *); fp@2488: uint8_t *ec_slave_mbox_fetch(const ec_slave_t *, const ec_datagram_t *, fp@390: uint8_t *, size_t *); fp@145: fp@145: /*****************************************************************************/ fp@145: fp@145: #endif