Repository for import to local machine

Dependencies:   DMBasicGUI DMSupport

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?

UserRevisionLine numberNew contents of line
jmitc91516 1:a5258871b33d 1 #ifndef GCREALTIMECLOCK_H
jmitc91516 1:a5258871b33d 2 #define GCREALTIMECLOCK_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 class contains functions that deal with the real time clock [RTC]
jmitc91516 1:a5258871b33d 11 in the GC. All the functions are static, and this class cannot be instantiated.
jmitc91516 1:a5258871b33d 12 */
jmitc91516 1:a5258871b33d 13
jmitc91516 1:a5258871b33d 14 class GCRealTimeClock {
jmitc91516 1:a5258871b33d 15 public:
jmitc91516 1:a5258871b33d 16 static bool GetGCClockTime(USBDeviceConnected* usbDevice, USBHostGC* usbHostGC, time_t *clockTime);
jmitc91516 1:a5258871b33d 17 static bool SetLPC4088RealTimeClockToMatchGC(USBDeviceConnected* usbDevice, USBHostGC* usbHostGC);
jmitc91516 1:a5258871b33d 18
jmitc91516 1:a5258871b33d 19 private:
jmitc91516 1:a5258871b33d 20 // Private constructor - so this class cannot be instantiated
jmitc91516 1:a5258871b33d 21 GCRealTimeClock();
jmitc91516 1:a5258871b33d 22
jmitc91516 1:a5258871b33d 23 static bool GetTimeFieldsFromGC(USBDeviceConnected* usbDevice,
jmitc91516 1:a5258871b33d 24 USBHostGC* usbHostGC,
jmitc91516 1:a5258871b33d 25 char *gcSecondsResponse,
jmitc91516 1:a5258871b33d 26 char *gcMinutesResponse,
jmitc91516 1:a5258871b33d 27 char *gcHoursResponse,
jmitc91516 1:a5258871b33d 28 char *gcDateResponse,
jmitc91516 1:a5258871b33d 29 char *gcMonthResponse,
jmitc91516 1:a5258871b33d 30 char *gcYearResponse);
jmitc91516 1:a5258871b33d 31
jmitc91516 1:a5258871b33d 32 static void MakeTimeValueFromGCTimeFields(struct tm *timeValue,
jmitc91516 1:a5258871b33d 33 char *gcSecondsResponse,
jmitc91516 1:a5258871b33d 34 char *gcMinutesResponse,
jmitc91516 1:a5258871b33d 35 char *gcHoursResponse,
jmitc91516 1:a5258871b33d 36 char *gcDateResponse,
jmitc91516 1:a5258871b33d 37 char *gcMonthResponse,
jmitc91516 1:a5258871b33d 38 char *gcYearResponse);
jmitc91516 1:a5258871b33d 39
jmitc91516 1:a5258871b33d 40 };
jmitc91516 1:a5258871b33d 41
jmitc91516 1:a5258871b33d 42 #endif // GCREALTIMECLOCK_H