Sam Grove / Mbed 2 deprecated canopen_masternode

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers can_mbed.h Source File

can_mbed.h

00001 /*
00002 This file is part of CanFestival, a library implementing CanOpen Stack.
00003 
00004 Copyright (C): Edouard TISSERANT and Francis DUPIN
00005 mbed Port: sgrove
00006 
00007 See COPYING file for copyrights details.
00008 
00009 This library is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU Lesser General Public
00011 License as published by the Free Software Foundation; either
00012 version 2.1 of the License, or (at your option) any later version.
00013 
00014 This library is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017 Lesser General Public License for more details.
00018 
00019 You should have received a copy of the GNU Lesser General Public
00020 License along with this library; if not, write to the Free Software
00021 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 */
00023 
00024 #ifndef __CAN_MBED__
00025 #define __CAN_MBED__
00026 
00027 #include "config.h"
00028 #include "mbed.h"
00029 
00030 // Canfestivals includes
00031 #include "canopen_can.h"
00032 
00033 /************************* To be called by user app ***************************/
00034 
00035 #ifdef __cplusplus
00036 extern "C"{
00037 #endif
00038 
00039 unsigned char canInit(unsigned int bitrate);
00040 unsigned char canSend(CAN_PORT notused, Message *m);
00041 unsigned char canReceive(Message *m);
00042 unsigned char canChangeBaudRate_driver( CAN_HANDLE fd, char* baud);
00043 
00044 #ifdef __cplusplus
00045 }
00046 #endif
00047 
00048 #endif