This is the firmware for the LaOS - Laser Open Source project. You can use it to drive a laser cutter. For hardware and more information, look at our wiki: http://wiki.laoslaser.org
Dependencies: EthernetNetIf mbed
LaosIO.h
00001 /** 00002 * LaosIO.h 00003 * input / output system 00004 * 00005 * Copyright (c) 2011 Peter Brier 00006 * 00007 * This file is part of the LaOS project (see: http://wiki.protospace.nl/index.php/LaOS) 00008 * 00009 * LaOS is free software: you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation, either version 3 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * LaOS 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 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with LaOS. If not, see <http://www.gnu.org/licenses/>. 00021 * 00022 * set and get inputs/outputs for the peripherals 00023 * 00024 @code 00025 --code-- 00026 00027 @endcode 00028 */ 00029 #ifndef _LAOSIO_H_ 00030 #define _LAOSIO_H_ 00031 #include "global.h" 00032 00033 /** IO System 00034 * Get and Set IO lines 00035 */ 00036 class LaosIO { 00037 public: 00038 /** Make new LaosIO object. 00039 */ 00040 LaosIO(); 00041 00042 ~LaosIO(); 00043 00044 void set(int line, bool state); 00045 bool get(int line); 00046 00047 private: 00048 unsigned int state; 00049 }; 00050 00051 #endif
Generated on Tue Jul 12 2022 21:03:03 by 1.7.2