greg@178: /* greg@178: This file is part of CanFestival, a library implementing CanOpen Stack. greg@178: greg@178: Copyright (C): Edouard TISSERANT and Francis DUPIN greg@178: greg@178: See COPYING file for copyrights details. greg@178: greg@178: This library is free software; you can redistribute it and/or greg@178: modify it under the terms of the GNU Lesser General Public greg@178: License as published by the Free Software Foundation; either greg@178: version 2.1 of the License, or (at your option) any later version. greg@178: greg@178: This library is distributed in the hope that it will be useful, greg@178: but WITHOUT ANY WARRANTY; without even the implied warranty of greg@178: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU greg@178: Lesser General Public License for more details. greg@178: greg@178: You should have received a copy of the GNU Lesser General Public greg@178: License along with this library; if not, write to the Free Software greg@178: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA greg@178: */ Mongo@669: #include "data.h" Mongo@669: Mongo@669: #define DCF_STATUS_INIT 0 Mongo@669: #define DCF_STATUS_READ_CHECK 1 Mongo@669: #define DCF_STATUS_WRITE 2 Mongo@669: #define DCF_STATUS_SAVED 3 Mongo@669: #define DCF_STATUS_VERIF_OK 4 greg@178: greg@528: /** Mongo@669: * @brief Init the consise dcf in CO_Data for nodeId Mongo@669: * greg@528: * @param *d Pointer on a CAN object data structure greg@528: * @param nodeId Id of the slave node Mongo@669: * @return 1: dcf check started Mongo@669: * 0: nothing to do greg@528: */ Mongo@669: UNS8 init_consise_dcf(CO_Data* d, UNS8 nodeId); Mongo@669: Mongo@669: /** Mongo@669: * @brief Function to be called from post_SlaveBootup Mongo@669: * for starting the configuration manager Mongo@669: * Mongo@669: * @param *d Pointer on a CAN object data structure Mongo@669: * @param nodeId Id of the slave node Mongo@669: * @return 0: configuration manager busy Mongo@669: * 1: nothing to check, node started Mongo@669: * 2: dcf check started Mongo@669: */ Mongo@669: UNS8 check_and_start_node(CO_Data* d, UNS8 nodeId); Mongo@669: