X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/7beafc64e2944b3e0bd41f7621bf7dc93855f859..d11ed10c5314c44dc01c06954d1d73d4894cbff8:/Projects/TemperatureDataLogger/TempDataLogger.h diff --git a/Projects/TemperatureDataLogger/TempDataLogger.h b/Projects/TemperatureDataLogger/TempDataLogger.h index 2389cd782..ee10a0971 100644 --- a/Projects/TemperatureDataLogger/TempDataLogger.h +++ b/Projects/TemperatureDataLogger/TempDataLogger.h @@ -1,13 +1,13 @@ /* LUFA Library - Copyright (C) Dean Camera, 2009. + Copyright (C) Dean Camera, 2010. dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ /* - Copyright 2009 Dean Camera (dean [at] fourwalledcubicle [dot] com) + Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted @@ -40,12 +40,14 @@ #include #include #include - + #include + #include "Descriptors.h" #include "Lib/SCSI.h" #include "Lib/DataflashManager.h" #include "Lib/FATFs/ff.h" + #include "Lib/DS1307.h" #include #include @@ -53,6 +55,7 @@ #include #include #include + #include /* Macros: */ /** LED mask for the library LED driver, to indicate that the USB interface is not ready. */ @@ -76,8 +79,24 @@ /** Data log interval between samples, in tens of milliseconds */ #define LOG_INTERVAL_10MS 1000 + /* Type Defines: */ + typedef struct + { + uint8_t Day; + uint8_t Month; + uint8_t Year; + + uint8_t Hour; + uint8_t Minute; + uint8_t Second; + + uint8_t LogInterval500MS; + } Device_Report_t; + /* Function Prototypes: */ void SetupHardware(void); + void OpenLogFile(void); + void CloseLogFile(void); void EVENT_USB_Device_Connect(void); void EVENT_USB_Device_Disconnect(void); @@ -85,5 +104,9 @@ void EVENT_USB_Device_UnhandledControlRequest(void); bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* MSInterfaceInfo); + bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo, uint8_t* const ReportID, + const uint8_t ReportType, void* ReportData, uint16_t* ReportSize); + void CALLBACK_HID_Device_ProcessHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo, const uint8_t ReportID, + const void* ReportData, const uint16_t ReportSize); #endif