usb_specific_request.h

Go to the documentation of this file.
00001 /*H**************************************************************************
00002 * NAME:         usb_specific_request.h
00003 *----------------------------------------------------------------------------
00004 * Copyright (c) 2006 Atmel.
00005 *----------------------------------------------------------------------------
00006 * RELEASE:      at90usb162-2enum-mouse_ms-1_0_1
00007 * REVISION:     1.1
00008 *----------------------------------------------------------------------------
00009 * PURPOSE:
00010 * This file contains the user call-back functions corresponding to the
00011 * application:
00012 *****************************************************************************/
00013 
00014 #ifndef _USB_USER_ENUM_H_
00015 #define _USB_USER_ENUM_H_
00016 
00017 /*_____ I N C L U D E S ____________________________________________________*/
00018 
00019 #include "config.h"
00020 
00021 /*_____ M A C R O S ________________________________________________________*/
00022 
00023 extern  code S_usb_device_descriptor usb_dev_desc;
00024 extern  code S_usb_user_configuration_descriptor usb_conf_desc;
00025 extern  code S_usb_user_configuration_descriptor usb_other_conf_desc;
00026 extern  code S_usb_device_qualifier_descriptor usb_qual_desc;
00027 extern  code S_usb_manufacturer_string_descriptor usb_user_manufacturer_string_descriptor;
00028 extern  code S_usb_product_string_descriptor usb_user_product_string_descriptor;
00029 extern  code S_usb_serial_number usb_user_serial_number;
00030 extern  code S_usb_language_id usb_user_language_id;
00031 
00032 
00033 
00034 /*_____ D E F I N I T I O N ________________________________________________*/
00035 Bool  usb_user_read_request(U8, U8);
00036 Bool  usb_user_get_descriptor(U8 , U8);
00037 void  usb_user_endpoint_init(U8);
00038 void hid_get_report(void);
00039 void hid_set_report(void);
00040 void usb_hid_get_interface(void);
00041 void usb_hid_set_idle(void);
00042 void hid_get_hid_descriptor(void);
00043 
00044 #define MASS_STORAGE_RESET    0xFF
00045 #define GET_MAX_LUN           0xFE
00046 
00048 typedef struct {
00049    U8      report[0x34];
00050 }  S_usb_hid_report_descriptor_mouse;
00051 
00053 typedef struct {
00054   U8      report[0x3B];
00055 }  S_usb_hid_report_descriptor_kbd;
00056 
00057 
00058 #endif
00059 

Generated on Fri Jun 15 14:07:33 2007 for Atmel by  doxygen 1.5.1-p1