X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/84d77833503151acffbdda6217fa8ce59c6b4b8a..bb3879331211a19c3adc3927cac870cc7e36b775:/Demos/Host/ClassDriver/MouseHost/MouseHost.h?ds=sidebyside diff --git a/Demos/Host/ClassDriver/MouseHost/MouseHost.h b/Demos/Host/ClassDriver/MouseHost/MouseHost.h index 9e3087fb2..c6b2974bd 100644 --- a/Demos/Host/ClassDriver/MouseHost/MouseHost.h +++ b/Demos/Host/ClassDriver/MouseHost/MouseHost.h @@ -40,7 +40,6 @@ #include #include #include - #include #include #include @@ -49,17 +48,9 @@ #include #include #include - #include - - #include "ConfigDescriptor.h" + #include /* Macros: */ - /** Pipe number for the mouse data IN pipe */ - #define MOUSE_DATAPIPE 1 - - /** HID Class Specific request to set the report protocol mode */ - #define REQ_SetProtocol 0x0B - /** LED mask for the library LED driver, to indicate that the USB interface is not ready. */ #define LEDMASK_USB_NOTREADY LEDS_LED1 @@ -71,26 +62,14 @@ /** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */ #define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3) - - /* Type Defines: */ - /** Type define for a standard Boot Protocol Mouse report */ - typedef struct - { - uint8_t Button; /**< Button mask for currently pressed buttons in the mouse */ - int8_t X; /**< Current delta X movement of the mouse */ - int8_t Y; /**< Current delta Y movement on the mouse */ - } USB_MouseReport_Data_t; - + /* Function Prototypes: */ - void Mouse_HID_Task(void); void SetupHardware(void); - - void EVENT_USB_HostError(const uint8_t ErrorCode); - void EVENT_USB_DeviceAttached(void); - void EVENT_USB_DeviceUnattached(void); - void EVENT_USB_DeviceEnumerationFailed(const uint8_t ErrorCode, const uint8_t SubErrorCode); - void EVENT_USB_DeviceEnumerationComplete(void); - - void ReadNextReport(void); + + void EVENT_USB_Host_HostError(const uint8_t ErrorCode); + void EVENT_USB_Host_DeviceAttached(void); + void EVENT_USB_Host_DeviceUnattached(void); + void EVENT_USB_Host_DeviceEnumerationFailed(const uint8_t ErrorCode, const uint8_t SubErrorCode); + void EVENT_USB_Host_DeviceEnumerationComplete(void); #endif