Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DMBasicGUI DMSupport
GCHeatControl.h
00001 #ifndef GCHEATCONTROL_H 00002 #define GCHEATCONTROL_H 00003 00004 #include "mbed.h" 00005 #include "DMBoard.h" 00006 00007 #include "USBHostGC.h" 00008 00009 /* 00010 A class to 'encapsulate' the heat control on the GC 00011 00012 Requires a pointer to the USBHostGC instance that corresponds to the GC, 00013 a pointer to the USBDeviceConnected instance that (also) corresponds to the GC 00014 00015 */ 00016 00017 //#define DEBUG_TEST // If defined, use a local flag only, not the actual GC 00018 00019 class GCHeatControl 00020 { 00021 public: 00022 GCHeatControl(USBDeviceConnected* newUsbDevice, USBHostGC* newUsbHostGC); 00023 00024 bool TurnHeatOn(void); 00025 00026 bool TurnHeatOff(void); 00027 00028 bool IsHeatOn(void); 00029 00030 private: 00031 USBDeviceConnected* usbDevice; 00032 USBHostGC* usbHostGC; 00033 00034 #ifdef DEBUG_TEST 00035 bool heatIsOn; 00036 #endif 00037 }; 00038 00039 00040 #endif // GCHEATCONTROL_H
Generated on Tue Jul 19 2022 00:31:06 by
 1.7.2