Repository for import to local machine
Dependencies: DMBasicGUI DMSupport
GCHeatControl.h@8:26e49e6955bd, 2017-07-31 (annotated)
- Committer:
- jmitc91516
- Date:
- Mon Jul 31 15:37:57 2017 +0000
- Revision:
- 8:26e49e6955bd
- Parent:
- 1:a5258871b33d
Method ramp scrolling improved, and more bitmaps moved to QSPI memory
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jmitc91516 | 0:47c880c1463d | 1 | #ifndef GCHEATCONTROL_H |
jmitc91516 | 0:47c880c1463d | 2 | #define GCHEATCONTROL_H |
jmitc91516 | 0:47c880c1463d | 3 | |
jmitc91516 | 0:47c880c1463d | 4 | #include "mbed.h" |
jmitc91516 | 0:47c880c1463d | 5 | #include "DMBoard.h" |
jmitc91516 | 0:47c880c1463d | 6 | |
jmitc91516 | 0:47c880c1463d | 7 | #include "USBHostGC.h" |
jmitc91516 | 0:47c880c1463d | 8 | |
jmitc91516 | 1:a5258871b33d | 9 | /* |
jmitc91516 | 1:a5258871b33d | 10 | A class to 'encapsulate' the heat control on the GC |
jmitc91516 | 1:a5258871b33d | 11 | |
jmitc91516 | 1:a5258871b33d | 12 | Requires a pointer to the USBHostGC instance that corresponds to the GC, |
jmitc91516 | 1:a5258871b33d | 13 | a pointer to the USBDeviceConnected instance that (also) corresponds to the GC |
jmitc91516 | 1:a5258871b33d | 14 | |
jmitc91516 | 1:a5258871b33d | 15 | */ |
jmitc91516 | 1:a5258871b33d | 16 | |
jmitc91516 | 1:a5258871b33d | 17 | //#define DEBUG_TEST // If defined, use a local flag only, not the actual GC |
jmitc91516 | 0:47c880c1463d | 18 | |
jmitc91516 | 0:47c880c1463d | 19 | class GCHeatControl |
jmitc91516 | 0:47c880c1463d | 20 | { |
jmitc91516 | 0:47c880c1463d | 21 | public: |
jmitc91516 | 0:47c880c1463d | 22 | GCHeatControl(USBDeviceConnected* newUsbDevice, USBHostGC* newUsbHostGC); |
jmitc91516 | 0:47c880c1463d | 23 | |
jmitc91516 | 0:47c880c1463d | 24 | bool TurnHeatOn(void); |
jmitc91516 | 0:47c880c1463d | 25 | |
jmitc91516 | 0:47c880c1463d | 26 | bool TurnHeatOff(void); |
jmitc91516 | 0:47c880c1463d | 27 | |
jmitc91516 | 0:47c880c1463d | 28 | bool IsHeatOn(void); |
jmitc91516 | 0:47c880c1463d | 29 | |
jmitc91516 | 0:47c880c1463d | 30 | private: |
jmitc91516 | 0:47c880c1463d | 31 | USBDeviceConnected* usbDevice; |
jmitc91516 | 0:47c880c1463d | 32 | USBHostGC* usbHostGC; |
jmitc91516 | 0:47c880c1463d | 33 | |
jmitc91516 | 0:47c880c1463d | 34 | #ifdef DEBUG_TEST |
jmitc91516 | 0:47c880c1463d | 35 | bool heatIsOn; |
jmitc91516 | 0:47c880c1463d | 36 | #endif |
jmitc91516 | 0:47c880c1463d | 37 | }; |
jmitc91516 | 0:47c880c1463d | 38 | |
jmitc91516 | 0:47c880c1463d | 39 | |
jmitc91516 | 0:47c880c1463d | 40 | #endif // GCHEATCONTROL_H |