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