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:      at90usb128-otg-dual_role-toggle-1_0_0
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 
00045 
00047 typedef struct {
00048    U8      report[0x34];
00049 }  S_usb_hid_report_descriptor_mouse;
00050 
00051 
00052 #endif
00053 

Generated on Mon Feb 19 09:31:47 2007 for Atmel by  doxygen 1.5.1-p1