00001 /*H************************************************************************** 00002 * NAME: usb_specific_request.h 00003 *---------------------------------------------------------------------------- 00004 * Copyright (c) 2006 Atmel. 00005 *---------------------------------------------------------------------------- 00006 * RELEASE: at90usb162-cdc-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 * CDC DEVICE 00013 *****************************************************************************/ 00014 00015 #ifndef _USB_USER_ENUM_H_ 00016 #define _USB_USER_ENUM_H_ 00017 00018 /*_____ I N C L U D E S ____________________________________________________*/ 00019 00020 #include "config.h" 00021 00022 /*_____ M A C R O S ________________________________________________________*/ 00023 00024 00025 #define GET_LINE_CODING 0x21 00026 #define SET_LINE_CODING 0x20 00027 #define SET_CONTROL_LINE_STATE 0x22 00028 #define SEND_BREAK 0x23 00029 #define SEND_ENCAPSULATED_COMMAND 0x00 00030 #define GET_ENCAPSULATED_COMMAND 0x01 00031 00032 extern code S_usb_device_descriptor usb_dev_desc; 00033 extern code S_usb_user_configuration_descriptor usb_conf_desc; 00034 extern code S_usb_user_configuration_descriptor usb_other_conf_desc; 00035 extern code S_usb_device_qualifier_descriptor usb_qual_desc; 00036 extern code S_usb_manufacturer_string_descriptor usb_user_manufacturer_string_descriptor; 00037 extern code S_usb_product_string_descriptor usb_user_product_string_descriptor; 00038 extern code S_usb_serial_number usb_user_serial_number; 00039 extern code S_usb_language_id usb_user_language_id; 00040 00041 00042 00043 /*_____ D E F I N I T I O N ________________________________________________*/ 00044 Bool usb_user_read_request(U8, U8); 00045 Bool usb_user_get_descriptor(U8 , U8); 00046 void usb_user_endpoint_init(U8); 00047 void cdc_get_line_coding(); 00048 void cdc_set_line_coding(); 00049 void cdc_set_control_line_state (void); 00050 00051 // ____ T Y P E D E F I N I T I O N _______________________________________ 00052 00053 typedef struct 00054 { 00055 U32 dwDTERate; 00056 U8 bCharFormat; 00057 U8 bParityType; 00058 U8 bDataBits; 00059 }S_line_coding; 00060 00061 #endif 00062