Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ds401.h
00001 /* 00002 This file is part of CanFestival, a library implementing CanOpen Stack. 00003 00004 Copyright (C): Andreas GLAUSER 00005 00006 See COPYING file for copyrights details. 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Lesser General Public 00010 License as published by the Free Software Foundation; either 00011 version 2.1 of the License, or (at your option) any later version. 00012 00013 This library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU Lesser General Public 00019 License along with this library; if not, write to the Free Software 00020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 */ 00022 00023 // DS 401 Digital IO handling according DS 401 V2.1 "Device Profile for Generic I/O Modules" 00024 00025 #ifndef __DS401_H__ 00026 #define __DS401_H__ 00027 00028 // Includes for the Canfestival 00029 #include "canfestival.h" 00030 #include "canopen_timer.h" 00031 #include "mbed_slave.h" 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 00037 unsigned char digital_input_handler(CO_Data* d, unsigned char *newInput, unsigned char size); 00038 00039 unsigned char digital_output_handler(CO_Data* d, unsigned char *newOuput, unsigned char size); 00040 00041 unsigned char analog_input_handler(CO_Data* d, unsigned int *newInput, unsigned char size); 00042 00043 unsigned char analog_output_handler(CO_Data* d, unsigned int *newOutput, unsigned char size); 00044 00045 #ifdef __cplusplus 00046 } 00047 #endif 00048 00049 #endif //__DS_401_h__
Generated on Tue Jul 12 2022 17:24:12 by
1.7.2