X-Git-Url: https://git.hcoop.net/clinton/Smoothieware.git/blobdiff_plain/6d877d9b57d4e0e06f12af1a8663167858402858..18ca10a33a1ecb389a234eceea3631f2751aea6d:/src/modules/utils/simpleshell/SimpleShell.h diff --git a/src/modules/utils/simpleshell/SimpleShell.h b/src/modules/utils/simpleshell/SimpleShell.h index 68f22ea2..5f853463 100644 --- a/src/modules/utils/simpleshell/SimpleShell.h +++ b/src/modules/utils/simpleshell/SimpleShell.h @@ -5,9 +5,7 @@ You should have received a copy of the GNU General Public License along with Smoothie. If not, see . */ - -#ifndef simpleshell_h -#define simpleshell_h +#pragma once #include "Module.h" @@ -26,8 +24,14 @@ public: void on_console_line_received( void *argument ); void on_gcode_received(void *argument); void on_second_tick(void *); + static bool parse_command(const char *cmd, string args, StreamOutput *stream); + static void print_mem(StreamOutput *stream) { mem_command("", stream); } + static void version_command(string parameters, StreamOutput *stream ); private: + + void jog(string params, StreamOutput *stream); + static void ls_command(string parameters, StreamOutput *stream ); static void cd_command(string parameters, StreamOutput *stream ); static void delete_file_command(string parameters, StreamOutput *stream ); @@ -35,14 +39,19 @@ private: static void cat_command(string parameters, StreamOutput *stream ); static void rm_command(string parameters, StreamOutput *stream ); static void mv_command(string parameters, StreamOutput *stream ); + static void mkdir_command(string parameters, StreamOutput *stream ); static void upload_command(string parameters, StreamOutput *stream ); static void break_command(string parameters, StreamOutput *stream ); static void reset_command(string parameters, StreamOutput *stream ); static void dfu_command(string parameters, StreamOutput *stream ); static void help_command(string parameters, StreamOutput *stream ); - static void version_command(string parameters, StreamOutput *stream ); static void get_command(string parameters, StreamOutput *stream ); static void set_temp_command(string parameters, StreamOutput *stream ); + static void calc_thermistor_command( string parameters, StreamOutput *stream); + static void print_thermistors_command( string parameters, StreamOutput *stream); + static void md5sum_command( string parameters, StreamOutput *stream); + static void grblDP_command( string parameters, StreamOutput *stream); + static void switch_command(string parameters, StreamOutput *stream ); static void mem_command(string parameters, StreamOutput *stream ); @@ -53,7 +62,7 @@ private: static void remount_command( string parameters, StreamOutput *stream); - bool parse_command(const char *cmd, string args, StreamOutput *stream); + static void test_command( string parameters, StreamOutput *stream); typedef void (*PFUNC)(string parameters, StreamOutput *stream); typedef struct { @@ -64,6 +73,3 @@ private: static const ptentry_t commands_table[]; static int reset_delay_secs; }; - - -#endif