This repository has been archived on 2025-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
reprapfirmware-dc42/RepRapFirmware.h
2013-04-29 22:08:38 +01:00

82 lines
1.9 KiB
C++

/****************************************************************************************************
RepRapFirmware - Main Include
This defines versions etc, includes all the other include files in the right order and defines the
master RepRap class. No other definitions or information should be in here.
-----------------------------------------------------------------------------------------------------
Version 0.1
18 November 2012
Adrian Bowyer
RepRap Professional Ltd
http://reprappro.com
Licence: GPL
****************************************************************************************************/
#ifndef REPRAPFIRMWARE_H
#define REPRAPFIRMWARE_H
#define NAME "RepRapFirmware"
#define VERSION "0.1"
#define DATE "2012-11-18"
#define LAST_AUTHOR "reprappro.com"
#include "Configuration.h"
#include "Platform.h"
class RepRap
{
public:
RepRap();
void Init();
void Spin();
void Exit();
void Interrupt();
Platform* GetPlatform();
Move* GetMove();
Heat* GetHeat();
GCodes* GetGCodes();
Webserver* GetWebserver();
private:
Platform* platform;
boolean active;
Move* move;
Heat* heat;
GCodes* gCodes;
Webserver* webserver;
};
inline Platform* RepRap::GetPlatform() { return platform; }
inline Move* RepRap::GetMove() { return move; }
inline Heat* RepRap::GetHeat() { return heat; }
inline GCodes* RepRap::GetGCodes() { return gCodes; }
inline Webserver* RepRap::GetWebserver() { return webserver; }
// Functions and globals not part of any class
char* ftoa(char *a, const float& f, int prec);
boolean StringEndsWith(char* string, char* ending);
boolean StringStartsWith(char* string, char* starting);
boolean StringEquals(char* s1, char* s2);
int StringContains(char* string, char* match);
#include "Webserver.h"
#include "GCodes.h"
#include "Move.h"
#include "Heat.h"
extern RepRap reprap;
#endif