smoothie port to mbed online compiler (smoothieware.org)
For documentation, license, ..., please check http://smoothieware.org/
This version has been tested with a 3 axis machine
libs/Module.h@0:31e91bb0ef3c, 2012-07-31 (annotated)
- Committer:
- scachat
- Date:
- Tue Jul 31 21:11:18 2012 +0000
- Revision:
- 0:31e91bb0ef3c
smoothie port to mbed online compiler
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
scachat | 0:31e91bb0ef3c | 1 | /* |
scachat | 0:31e91bb0ef3c | 2 | This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl). |
scachat | 0:31e91bb0ef3c | 3 | Smoothie is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. |
scachat | 0:31e91bb0ef3c | 4 | Smoothie is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
scachat | 0:31e91bb0ef3c | 5 | You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>. |
scachat | 0:31e91bb0ef3c | 6 | */ |
scachat | 0:31e91bb0ef3c | 7 | |
scachat | 0:31e91bb0ef3c | 8 | #ifndef MODULE_H |
scachat | 0:31e91bb0ef3c | 9 | #define MODULE_H |
scachat | 0:31e91bb0ef3c | 10 | |
scachat | 0:31e91bb0ef3c | 11 | #include <string> |
scachat | 0:31e91bb0ef3c | 12 | using std::string; |
scachat | 0:31e91bb0ef3c | 13 | |
scachat | 0:31e91bb0ef3c | 14 | // Module base class |
scachat | 0:31e91bb0ef3c | 15 | // All modules must extend this class, see http://smoothieware.org/moduleexample |
scachat | 0:31e91bb0ef3c | 16 | class Kernel; |
scachat | 0:31e91bb0ef3c | 17 | class Module { |
scachat | 0:31e91bb0ef3c | 18 | public: |
scachat | 0:31e91bb0ef3c | 19 | Module(); |
scachat | 0:31e91bb0ef3c | 20 | virtual void on_module_loaded(); |
scachat | 0:31e91bb0ef3c | 21 | virtual void register_for_event(int event_id); |
scachat | 0:31e91bb0ef3c | 22 | virtual void on_main_loop(void * argument); |
scachat | 0:31e91bb0ef3c | 23 | virtual void on_console_line_received( void * argument); |
scachat | 0:31e91bb0ef3c | 24 | virtual void on_gcode_received( void * argument); |
scachat | 0:31e91bb0ef3c | 25 | virtual void on_gcode_execute( void * argument); |
scachat | 0:31e91bb0ef3c | 26 | virtual void on_stepper_wake_up( void * argument); |
scachat | 0:31e91bb0ef3c | 27 | virtual void on_speed_change( void * argument); |
scachat | 0:31e91bb0ef3c | 28 | virtual void on_block_begin( void * argument); |
scachat | 0:31e91bb0ef3c | 29 | virtual void on_block_end( void * argument); |
scachat | 0:31e91bb0ef3c | 30 | virtual void on_config_reload( void * argument); |
scachat | 0:31e91bb0ef3c | 31 | virtual void on_play( void * argument); |
scachat | 0:31e91bb0ef3c | 32 | virtual void on_pause( void * argument); |
scachat | 0:31e91bb0ef3c | 33 | virtual void on_idle( void * argument); |
scachat | 0:31e91bb0ef3c | 34 | Kernel * kernel; |
scachat | 0:31e91bb0ef3c | 35 | }; |
scachat | 0:31e91bb0ef3c | 36 | |
scachat | 0:31e91bb0ef3c | 37 | #endif |