From 23792fc9e8b4a623cbf30a520d1b853e8a20f3c5 Mon Sep 17 00:00:00 2001 From: Dean Date: Tue, 29 Sep 2009 07:13:42 +0000 Subject: Remove old OTG demo directory with useless TestApp demo. Add new DualRole directory with new Class Driver powered Mouse dual role demonstration application showing a dual role device using the HID host/device Class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@847 d5102386-fcda-11dd-9fdb-3debd5008f28 --- .../ClassDriver/MouseHostDevice/DeviceFunctions.h | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.h (limited to 'Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.h') diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.h b/Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.h new file mode 100644 index 00000000..5fc2d84e --- /dev/null +++ b/Demos/DualRole/ClassDriver/MouseHostDevice/DeviceFunctions.h @@ -0,0 +1,52 @@ +/* + LUFA Library + Copyright (C) Dean Camera, 2009. + + dean [at] fourwalledcubicle [dot] com + www.fourwalledcubicle.com +*/ + +/* + Copyright 2009 Dean Camera (dean [at] fourwalledcubicle [dot] com) + + Permission to use, copy, modify, and distribute this software + and its documentation for any purpose and without fee is hereby + granted, provided that the above copyright notice appear in all + copies and that both that the copyright notice and this + permission notice and warranty disclaimer appear in supporting + documentation, and that the name of the author not be used in + advertising or publicity pertaining to distribution of the + software without specific, written prior permission. + + The author disclaim all warranties with regard to this + software, including all implied warranties of merchantability + and fitness. In no event shall the author be liable for any + special, indirect or consequential damages or any damages + whatsoever resulting from loss of use, data or profits, whether + in an action of contract, negligence or other tortious action, + arising out of or in connection with the use or performance of + this software. +*/ + +/** \file + * + * Header file for DeviceFunctions.c. + */ + +#ifndef _MOUSE_DEVICE_FUNCTIONS_H_ +#define _MOUSE_DEVICE_FUNCTIONS_H_ + + /* Includes: */ + #include "MouseHostDevice.h" + + /* External Variables: */ + extern USB_ClassInfo_HID_Device_t Mouse_HID_Device_Interface; + + /* Function Prototypes: */ + void EVENT_USB_Device_Connect(void); + void EVENT_USB_Device_Disconnect(void); + void EVENT_USB_Device_ConfigurationChanged(void); + void EVENT_USB_Device_UnhandledControlRequest(void); + void EVENT_USB_Device_StartOfFrame(void); + +#endif -- cgit v1.2.3