Repository for import to local machine
Dependencies: DMBasicGUI DMSupport
USBHostGCUtilities.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 | 1:a5258871b33d | 1 | #ifndef USBHOSTGCUTILITIES_H |
jmitc91516 | 1:a5258871b33d | 2 | #define USBHOSTGCUTILITIES_H |
jmitc91516 | 1:a5258871b33d | 3 | |
jmitc91516 | 1:a5258871b33d | 4 | #include "mbed.h" |
jmitc91516 | 1:a5258871b33d | 5 | #include "DMBoard.h" |
jmitc91516 | 1:a5258871b33d | 6 | |
jmitc91516 | 1:a5258871b33d | 7 | #include "USBHostGC.h" |
jmitc91516 | 1:a5258871b33d | 8 | |
jmitc91516 | 1:a5258871b33d | 9 | /* |
jmitc91516 | 1:a5258871b33d | 10 | This is a class containing utility functions for use when talking to the GC over the USB link. |
jmitc91516 | 1:a5258871b33d | 11 | To avoid having the same functions duplicated in several classes. |
jmitc91516 | 1:a5258871b33d | 12 | |
jmitc91516 | 1:a5258871b33d | 13 | For simplicity, all functions are static. |
jmitc91516 | 1:a5258871b33d | 14 | */ |
jmitc91516 | 1:a5258871b33d | 15 | |
jmitc91516 | 1:a5258871b33d | 16 | class USBHostGCUtilities { |
jmitc91516 | 1:a5258871b33d | 17 | public: |
jmitc91516 | 1:a5258871b33d | 18 | static void SendCommandToGCAndGetResponse(USBDeviceConnected* usbDevice, USBHostGC* usbHostGC, char* command, char* response); |
jmitc91516 | 1:a5258871b33d | 19 | static bool SendCommandToGCWithDACKResponse(USBDeviceConnected* usbDevice, USBHostGC* usbHostGC, char *cmd); |
jmitc91516 | 1:a5258871b33d | 20 | |
jmitc91516 | 1:a5258871b33d | 21 | private: |
jmitc91516 | 1:a5258871b33d | 22 | // Private constructor - so this class cannot be instantiated |
jmitc91516 | 1:a5258871b33d | 23 | USBHostGCUtilities(); |
jmitc91516 | 1:a5258871b33d | 24 | |
jmitc91516 | 1:a5258871b33d | 25 | }; |
jmitc91516 | 1:a5258871b33d | 26 | |
jmitc91516 | 1:a5258871b33d | 27 | #endif // USBHOSTGCUTILITIES_H |