fp@1388: /***************************************************************************** fp@1388: * fp@1388: * $Id$ fp@1388: * fp@1388: * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH fp@1388: * fp@1388: * This file is part of the IgH EtherCAT Master. fp@1388: * fp@1388: * The IgH EtherCAT Master is free software; you can redistribute it and/or fp@1388: * modify it under the terms of the GNU General Public License version 2, as fp@1388: * published by the Free Software Foundation. fp@1388: * fp@1388: * The IgH EtherCAT Master is distributed in the hope that it will be useful, fp@1388: * but WITHOUT ANY WARRANTY; without even the implied warranty of fp@1388: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General fp@1388: * Public License for more details. fp@1388: * fp@1388: * You should have received a copy of the GNU General Public License along fp@1388: * with the IgH EtherCAT Master; if not, write to the Free Software fp@1388: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@1388: * fp@1388: * --- fp@1388: * fp@1388: * The license mentioned above concerns the source code only. Using the fp@1388: * EtherCAT technology and brand is only permitted in compliance with the fp@1388: * industrial property and similar rights of Beckhoff Automation GmbH. fp@1388: * fp@1388: ****************************************************************************/ fp@1388: fp@1388: #ifndef __COMMANDREGWRITE_H__ fp@1388: #define __COMMANDREGWRITE_H__ fp@1388: fp@1835: #include "Command.h" fp@1835: #include "DataTypeHandler.h" fp@1388: fp@1388: /****************************************************************************/ fp@1388: fp@1388: class CommandRegWrite: fp@1835: public Command, fp@1835: public DataTypeHandler fp@1388: { fp@1388: public: fp@1388: CommandRegWrite(); fp@1388: fp@1968: string helpString(const string &) const; fp@1826: void execute(const StringVector &); fp@1388: fp@1388: private: fp@1388: void loadRegData(ec_ioctl_slave_reg_t *, const istream &); fp@1388: }; fp@1388: fp@1388: /****************************************************************************/ fp@1388: fp@1388: #endif