John Mitchell / lpc4088_displaymodule_GC500_2_5inch

Dependencies:   DMBasicGUI DMSupport

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GCHeatControl.h Source File

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