📄 #canopendriver.h#
字号:
/********************************************************* * * * Master/slave CANopen Library * * * * INRETS/LIVIC : http://www.inrets.fr * * Author : Camille BOSSARD * * Contact : bossard.ca@voila.fr * * francis.dupin@inrets.fr * * * * This work is based on * * - CanOpenMatic by Edouard TISSERANT * * http://sourceforge.net/projects/canfestival/ * * - slavelib by Raphael Zulliger * * http://sourceforge.net/projects/canopen/ * ********************************************************* * canOpenDriver.h * ********************************************************* * This program is free software; you can redistribute * * it and/or modify it under the terms of the GNU General* * Public License as published by the Free Software * * Foundation; either version 2 of the License, or (at * * your option) any later version. * * * * This program is distributed in the hope that it will * * be useful, but WITHOUT ANY WARRANTY; without even the * * implied warranty of MERCHANTABILITY or FITNESS FOR A * * PARTICULAR PURPOSE. See the GNU General Public * * License for more details. * * * * You should have received a copy of the GNU General * * Public License along with this program; if not, write * * to The Free Software Foundation, Inc. * * 675 Mass Ave * * Cambridge * * MA 02139 * * USA. * ********************************************************* * * * * * Version: 1.0 * * Modification date: June 2003 * * Description: * *-------------------------------------------------------* * This is the main functions used by both masters and * * slaves nodes. * * * *********************************************************//********************************************************* * * * Master/slave CANopen Library * * * * LIVIC : Laboratoire Interractions V庨hicule * * Infrastructure Conducteur * * ---- * * INRETS/LIVIC : http://www.inrets.fr * * Institut National de Recherche sur * * les Transports * * et leur S庨curit庨 * * LCPC Laboratoire Central des Ponts et Chauss庨es * * Laboratoire Interractions V庨hicule Infrastructure * * Conducteur * * * * Authors : Camille BOSSARD * * Francis DUPIN * * Laurent Romieux * * * * Contact : bossard.ca@voila.fr * * francis.dupin@inrets.fr * * * * Date : 2003 * * This work is based on * * - CanOpenMatic by Edouard TISSERANT * * http://sourceforge.net/projects/canfestival/ * * - slavelib by Raphael Zulliger * * http://sourceforge.net/projects/canopen/ * ********************************************************* * * ********************************************************* * This program is free software; you can redistribute * * it and/or modify it under the terms of the GNU Lesser * * Public License as published by the Free Software * * Foundation; either version 2 of the License, or (at * * your option) any later version. * * * * This program is distributed in the hope that it will * * be useful, but WITHOUT ANY WARRANTY; without even the * * implied warranty of MERCHANTABILITY or FITNESS FOR A * * PARTICULAR PURPOSE. See the GNU General Public * * License for more details. * * * * You should have received a copy of the GNU General * * Public License along with this program; if not, write * * to The Free Software Foundation, Inc. * * 675 Mass Ave * * Cambridge * * MA 02139 * * USA. * ********************************************************* File : canOpenDriver.h *-------------------------------------------------------* * * * * *********************************************************/#ifndef __canOpenDriver_h__#define __canOpenDriver_h__#include <can.h>/** Called when a message is received by the application from the board * bus_id is hardware dependant * return 0xFF if error (unknown message received, * else return proceed_infos[fc].process_function(bus_id,&m) * i.e return the result of the function Proceed_xxx called * Return 0 if no new message. */UNS8 receiveMsgHandler (UNS8 bus_id);/** Used by the application which indicates that * its receives a message, *m, from the board * Return 0 if new message, other if no new message. */UNS8 f_can_receive (UNS8 notused, Message *m);/** Used by the application to transmit a message, *m, to the board * Return undefined today. */UNS8 f_can_send (UNS8 notused, Message *m);#endif // __canOpenDriver_h__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -