Welcome to mirror list, hosted at ThFree Co, Russian Federation.

FirmwareUpdater.h « Comms « src - github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c897669690793a9270a18a3794d396310e74fe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * FirmwareUpdater.h
 *
 *  Created on: 21 May 2016
 *      Author: David
 */

#ifndef SRC_NETWORKING_FIRMWAREUPDATER_H_
#define SRC_NETWORKING_FIRMWAREUPDATER_H_

#include <RepRapFirmware.h>

namespace FirmwareUpdater
{
#if HAS_AUX_DEVICES
	const unsigned int PanelDueFirmwareModule = 4;
#endif

	GCodeResult CheckFirmwareUpdatePrerequisites(
			Bitmap<uint8_t> moduleMap,
			GCodeBuffer& gb,
			const StringRef& reply,
			size_t serialChannel,
			const StringRef& filenameRef) noexcept;
	bool IsReady() noexcept;
	void UpdateModule(unsigned int module, const size_t serialChannel, const StringRef& filenameRef) noexcept;
}

#endif /* SRC_NETWORKING_FIRMWAREUPDATER_H_ */