00001 /*This file is prepared for Doxygen automatic documentation generation.*/ 00017 /* Copyright (c) 2009 Atmel Corporation. All rights reserved. 00018 * 00019 * Redistribution and use in source and binary forms, with or without 00020 * modification, are permitted provided that the following conditions are met: 00021 * 00022 * 1. Redistributions of source code must retain the above copyright notice, this 00023 * list of conditions and the following disclaimer. 00024 * 00025 * 2. Redistributions in binary form must reproduce the above copyright notice, 00026 * this list of conditions and the following disclaimer in the documentation 00027 * and/or other materials provided with the distribution. 00028 * 00029 * 3. The name of Atmel may not be used to endorse or promote products derived 00030 * from this software without specific prior written permission. 00031 * 00032 * 4. This software may only be redistributed and used in connection with an Atmel 00033 * AVR product. 00034 * 00035 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 00036 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00037 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 00038 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 00039 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00040 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00041 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00042 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00043 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00044 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE 00045 * 00046 */ 00047 #ifndef _USB_SPECIFIC_REQUEST_H_ 00048 #define _USB_SPECIFIC_REQUEST_H_ 00049 00050 //_____ I N C L U D E S ____________________________________________________ 00051 00052 #include "conf_usb.h" 00053 00054 #if USB_DEVICE_FEATURE == DISABLED 00055 #error usb_specific_request.h is #included although USB_DEVICE_FEATURE is disabled 00056 #endif 00057 00058 00059 //_____ M A C R O S ________________________________________________________ 00060 00061 00062 //_____ D E F I N I T I O N S ______________________________________________ 00063 00064 extern const S_usb_device_descriptor usb_dev_desc; 00065 extern const S_usb_user_configuration_descriptor usb_conf_desc; 00066 //extern const S_usb_user_configuration_descriptor usb_other_conf_desc; 00067 //extern const S_usb_device_qualifier_descriptor usb_qual_desc; 00068 extern const S_usb_manufacturer_string_descriptor usb_user_manufacturer_string_descriptor; 00069 extern const S_usb_product_string_descriptor usb_user_product_string_descriptor; 00070 extern const S_usb_serial_number usb_user_serial_number; 00071 extern const S_usb_language_id usb_user_language_id; 00072 00074 #define USB_HID_REPORT_DESC_KBD 39 00075 extern const U8 usb_hid_report_descriptor_kbd[USB_HID_REPORT_DESC_KBD]; 00076 00077 00080 00088 extern void usb_user_endpoint_init( U8 ); 00089 00096 extern Bool usb_user_read_request( U8, U8 ); 00097 extern U8 usb_user_interface_get( U16 wInterface ); 00098 extern void usb_user_interface_reset( U16 wInterface, U8 alternate_setting ); 00099 extern Bool usb_user_get_descriptor( U8 , U8 ); 00101 00103 extern void audio_speaker_set_mute(void); 00104 extern void audio_speaker_get_mute(void); 00105 extern void audio_speaker_set_volume(void); 00106 extern void audio_speaker_get_vol_cur(void); 00107 extern void audio_speaker_get_vol_min(void); 00108 extern void audio_speaker_get_vol_max(void); 00109 extern void audio_speaker_get_vol_res(void); 00110 extern void audio_speaker_set_sample_freq(void); 00111 00113 extern void audio_micro_set_mute(void); 00114 extern void audio_micro_get_mute(void); 00115 extern void audio_micro_set_volume(void); 00116 extern void audio_micro_get_vol_cur(void); 00117 extern void audio_micro_get_vol_min(void); 00118 extern void audio_micro_get_vol_max(void); 00119 extern void audio_micro_get_vol_res(void); 00120 00121 // ____ T Y P E D E F I N I T I O N _______________________________________ 00122 00123 00124 00125 #endif // _USB_SPECIFIC_REQUEST_H_