Fork of Smoothie to port to mbed non-LPC targets.
Fork of Smoothie by
utils.h
00001 #ifndef utils_h 00002 #define utils_h 00003 00004 #include <stdint.h> 00005 using namespace std; 00006 #include <string> 00007 #include <vector> 00008 using std::string; 00009 00010 extern volatile bool _isr_context; 00011 00012 string lc(string str); 00013 00014 bool is_alpha( int ); 00015 bool is_digit( int ); 00016 bool is_numeric( int ); 00017 bool is_alphanum( int ); 00018 bool is_whitespace( int ); 00019 00020 string remove_non_number( string str ); 00021 00022 uint16_t get_checksum(const string& to_check); 00023 uint16_t get_checksum(const char* to_check); 00024 00025 void get_checksums(uint16_t check_sums[], const string key); 00026 00027 string shift_parameter( string ¶meters ); 00028 00029 string get_arguments( string possible_command ); 00030 00031 bool file_exists( const string file_name ); 00032 00033 void system_reset( bool dfu= false ); 00034 00035 string absolute_from_relative( string path ); 00036 00037 00038 #endif
Generated on Tue Jul 12 2022 20:09:03 by 1.7.2