Xmega Application Note


usb_specific_request.h

Go to the documentation of this file.
00001 /* This file has been prepared for Doxygen automatic documentation generation.*/
00048 #ifndef _USB_USER_ENUM_H_
00049 #define _USB_USER_ENUM_H_
00050 
00051 #include "config.h"
00052 
00053 /****************************** DEFINES ***************************************/
00054 
00055 #define CS_INTERFACE              0x24
00056 #define CS_ENDPOINT               0x25
00057 
00058 #define CS_HEADER_FD              0x00
00059 #define CS_CALL_MGM_FD            0x01
00060 #define CS_ACM_FD                 0x02
00061 #define CS_DL_MGM_FD              0x03
00062 #define CS_TLF_RING_FD            0x04
00063 #define CS_TLF_CLSRC_FD           0x05
00064 #define CS_UNION_FD               0x06
00065 #define CS_COUNTRY_FD             0x07
00066 #define CS_TLF_OP_MOD_FD          0x08
00067 #define CS_USB_TERM_FD            0x09
00068 
00069 /* Call Management Capabilities */
00070 #define CALL_MGM_CAP_SELF_MGM     0x01
00071 #define CALL_MGM_CAP_DATA_CLASS   0x02
00072 
00073 /* ACM Capabilities. */
00074 #define ACM_CAP_COMM_FEATURE      0x01
00075 #define ACM_CAP_LINE_CODING       0x02
00076 #define ACM_CAP_BREAK             0x04
00077 #define ACM_CAP_NETWORK_CONN      0x08
00078 
00079 
00080 #define GET_LINE_CODING           0x21
00081 #define SET_LINE_CODING           0x20
00082 #define SET_CONTROL_LINE_STATE    0x22
00083 #define SEND_BREAK                0x23
00084 #define SEND_ENCAPSULATED_COMMAND 0x00
00085 #define GET_ENCAPSULATED_COMMAND  0x01
00086 
00087 
00088 /* Structures */
00089 
00091 typedef struct{
00092         uint32_t dwDTERate;
00093         uint8_t bCharFormat;
00094         uint8_t bParityType;
00095         uint8_t bDataBits;
00096 }S_line_coding;
00097 
00098 
00099 /************************* PROTOTYPES (GLOBAL) ********************************/
00100 
00101 /* External dependencies */
00102 extern code S_usb_device_descriptor usb_dev_desc;
00103 extern code S_usb_user_configuration_descriptor usb_conf_desc;
00104 extern code S_usb_user_configuration_descriptor usb_other_conf_desc;
00105 extern code S_usb_device_qualifier_descriptor usb_qual_desc;
00106 extern code S_usb_manufacturer_string_descriptor usb_user_manufacturer_string_descriptor;
00107 extern code S_usb_product_string_descriptor usb_user_product_string_descriptor;
00108 extern code S_usb_serial_number usb_user_serial_number;
00109 extern code S_usb_language_id usb_user_language_id;
00110 extern code S_usb_if0_descript usb_if0_descriptor;
00111 
00112 bool  usb_user_read_request(uint8_t, uint8_t);
00113 bool  usb_user_get_descriptor(uint8_t , uint8_t);
00114 void  usb_user_endpoint_init(uint8_t);
00115 void  cdc_get_line_coding();
00116 void  cdc_set_line_coding();
00117 void  cdc_set_control_line_state (void);
00118 
00119 
00120 #endif
00121 
@DOC_TITLE@
Generated on Mon Jan 18 09:26:08 2010 for AVR1907 Xplain USB Gateway by doxygen 1.5.5