|
UniSet
2.6.0
|
00001 /* 00002 * Copyright (c) 2015 Pavel Vainerman. 00003 * 00004 * This program is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU Lesser General Public License as 00006 * published by the Free Software Foundation, version 2.1. 00007 * 00008 * This program is distributed in the hope that it will be useful, but 00009 * WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Lesser Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public License 00014 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00015 */ 00016 //-------------------------------------------------------------------------- 00017 #ifndef WDTInterface_H_ 00018 #define WDTInterface_H_ 00019 /* 00020 Для всех станций кроме GUI используется драйвер wdt686.o и девайс /dev/wdt с мажером 208 и минором 0 00021 для GUI используется i810-tco, а девайс /dev/watchdog создаваемый через мискдевайс(?) 00022 */ 00023 //-------------------------------------------------------------------------- 00024 #include <string> 00025 namespace uniset 00026 { 00027 00028 class WDTInterface 00029 { 00030 public: 00031 WDTInterface( const std::string& dev ); 00032 ~WDTInterface(); 00033 00034 bool ping(); 00035 bool stop(); 00036 00037 protected: 00038 const std::string dev; 00039 }; 00040 // ------------------------------------------------------------------------- 00041 } // end of uniset namespace 00042 //-------------------------------------------------------------------------- 00043 #endif
1.7.6.1