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/LaosIO.cpp@0:3852426a5068, 2012-06-08 (annotated)
- Committer:
- fablabtruck
- Date:
- Fri Jun 08 09:26:40 2012 +0000
- Revision:
- 0:3852426a5068
svn revision 379
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fablabtruck | 0:3852426a5068 | 1 | /** |
fablabtruck | 0:3852426a5068 | 2 | * LaosIO.cpp |
fablabtruck | 0:3852426a5068 | 3 | * input / output system |
fablabtruck | 0:3852426a5068 | 4 | * |
fablabtruck | 0:3852426a5068 | 5 | * Copyright (c) 2011 Peter Brier |
fablabtruck | 0:3852426a5068 | 6 | * |
fablabtruck | 0:3852426a5068 | 7 | * This file is part of the LaOS project (see: http://wiki.protospace.nl/index.php/LaOS) |
fablabtruck | 0:3852426a5068 | 8 | * |
fablabtruck | 0:3852426a5068 | 9 | * LaOS is free software: you can redistribute it and/or modify |
fablabtruck | 0:3852426a5068 | 10 | * it under the terms of the GNU General Public License as published by |
fablabtruck | 0:3852426a5068 | 11 | * the Free Software Foundation, either version 3 of the License, or |
fablabtruck | 0:3852426a5068 | 12 | * (at your option) any later version. |
fablabtruck | 0:3852426a5068 | 13 | * |
fablabtruck | 0:3852426a5068 | 14 | * LaOS is distributed in the hope that it will be useful, |
fablabtruck | 0:3852426a5068 | 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
fablabtruck | 0:3852426a5068 | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
fablabtruck | 0:3852426a5068 | 17 | * GNU General Public License for more details. |
fablabtruck | 0:3852426a5068 | 18 | * |
fablabtruck | 0:3852426a5068 | 19 | * You should have received a copy of the GNU General Public License |
fablabtruck | 0:3852426a5068 | 20 | * along with LaOS. If not, see <http://www.gnu.org/licenses/>. |
fablabtruck | 0:3852426a5068 | 21 | * |
fablabtruck | 0:3852426a5068 | 22 | * set and get inputs/outputs for the peripherals |
fablabtruck | 0:3852426a5068 | 23 | * |
fablabtruck | 0:3852426a5068 | 24 | @code |
fablabtruck | 0:3852426a5068 | 25 | --code-- |
fablabtruck | 0:3852426a5068 | 26 | @endcode |
fablabtruck | 0:3852426a5068 | 27 | */ |
fablabtruck | 0:3852426a5068 | 28 | |
fablabtruck | 0:3852426a5068 | 29 | #include "LaosIO.h" |
fablabtruck | 0:3852426a5068 | 30 | |
fablabtruck | 0:3852426a5068 | 31 | LaosIO::LaosIO() |
fablabtruck | 0:3852426a5068 | 32 | { |
fablabtruck | 0:3852426a5068 | 33 | state = 0; |
fablabtruck | 0:3852426a5068 | 34 | } |
fablabtruck | 0:3852426a5068 | 35 | |
fablabtruck | 0:3852426a5068 | 36 | LaosIO::~LaosIO() |
fablabtruck | 0:3852426a5068 | 37 | { |
fablabtruck | 0:3852426a5068 | 38 | } |
fablabtruck | 0:3852426a5068 | 39 | |
fablabtruck | 0:3852426a5068 | 40 | |
fablabtruck | 0:3852426a5068 | 41 | void LaosIO::set(int line, bool state) |
fablabtruck | 0:3852426a5068 | 42 | { |
fablabtruck | 0:3852426a5068 | 43 | } |
fablabtruck | 0:3852426a5068 | 44 | |
fablabtruck | 0:3852426a5068 | 45 | bool LaosIO::get(int line) |
fablabtruck | 0:3852426a5068 | 46 | { |
fablabtruck | 0:3852426a5068 | 47 | return false; |
fablabtruck | 0:3852426a5068 | 48 | } |
fablabtruck | 0:3852426a5068 | 49 | |
fablabtruck | 0:3852426a5068 | 50 |