Michael Spencer / Smoothie

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers FirmConfigSource.h Source File

FirmConfigSource.h

00001 /*
00002       This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl).
00003       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.
00004       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.
00005       You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
00006 */
00007 
00008 #ifndef FIRMCONFIGSOURCE_H
00009 #define FIRMCONFIGSOURCE_H
00010 
00011 #include "ConfigValue.h"
00012 #include "ConfigSource.h"
00013 #include "ConfigCache.h"
00014 
00015 using namespace std;
00016 #include <string>
00017 
00018 #define FIRM_CONFIGSOURCE_CHECKSUM    CHECKSUM("firm")
00019 
00020 class FirmConfigSource : public ConfigSource {
00021     public:
00022         FirmConfigSource(uint16_t name_checksum = FIRM_CONFIGSOURCE_CHECKSUM);
00023         void transfer_values_to_cache( ConfigCache* cache );
00024         bool is_named( uint16_t check_sum );
00025         void write( string setting, string value );
00026         string read( uint16_t check_sums[3] );
00027 
00028 };
00029 
00030 
00031 
00032 #endif // FIRMCONFIGSOURCE_H