usb_commun_cdc.h

Go to the documentation of this file.
00001 /*This file has been prepared for Doxygen automatic documentation generation.*/
00012 
00013 /* Copyright (c) 2007, Atmel Corporation All rights reserved.
00014  *
00015  * Redistribution and use in source and binary forms, with or without
00016  * modification, are permitted provided that the following conditions are met:
00017  *
00018  * 1. Redistributions of source code must retain the above copyright notice,
00019  * this list of conditions and the following disclaimer.
00020  *
00021  * 2. Redistributions in binary form must reproduce the above copyright notice,
00022  * this list of conditions and the following disclaimer in the documentation
00023  * and/or other materials provided with the distribution.
00024  *
00025  * 3. The name of ATMEL may not be used to endorse or promote products derived
00026  * from this software without specific prior written permission.
00027  *
00028  * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
00029  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00030  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
00031  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
00032  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00033  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00034  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00035  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00036  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00037  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00038  */
00039 
00040 #ifndef _USB_COMMUN_CDC_H_
00041 #define _USB_COMMUN_CDC_H_
00042 
00045 #define  CDC_GLOB_CLASS          0x02
00046 #define  CDC_COMM_CLASS          0x02
00047 #define  CDC_DATA_CLASS          0x0A
00048 #define  CDC_GLOB_SUBCLASS       0x00
00049 #define  CDC_COMM_SUBCLASS       0x02
00050 #define  CDC_DATA_SUBCLASS       0x00
00051 #define  CDC_GLOB_PROTOCOL       0x00
00052 #define  CDC_COMM_PROTOCOL       0x01
00053 #define  CDC_DATA_PROTOCOL       0x00
00055 
00058 #define  SETUP_CDC_SEND_ENCAPSULATED_COMMAND                   0x00
00059 #define  SETUP_CDC_GET_ENCAPSULATED_RESPONSE                   0x01
00060 #define  SETUP_CDC_SET_COMM_FEATURE                            0x02
00061 #define  SETUP_CDC_GET_COMM_FEATURE                            0x03
00062 #define  SETUP_CDC_CLEAR_COMM_FEATURE                          0x04
00063 #define  SETUP_CDC_SET_AUX_LINE_STATE                          0x10
00064 #define  SETUP_CDC_SET_HOOK_STATE                              0x11
00065 #define  SETUP_CDC_PULSE_SETUP                                 0x12
00066 #define  SETUP_CDC_SEND_PULSE                                  0x13
00067 #define  SETUP_CDC_SET_PULSE_TIME                              0x14
00068 #define  SETUP_CDC_RING_AUX_JACK                               0x15
00069 #define  SETUP_CDC_SET_LINE_CODING                             0x20
00070 #define  SETUP_CDC_GET_LINE_CODING                             0x21
00071 #define  SETUP_CDC_SET_CONTROL_LINE_STATE                      0x22
00072 #define  SETUP_CDC_SEND_BREAK                                  0x23
00073 #define  SETUP_CDC_SET_RINGER_PARMS                            0x30
00074 #define  SETUP_CDC_GET_RINGER_PARMS                            0x31
00075 #define  SETUP_CDC_SET_OPERATION_PARMS                         0x32
00076 #define  SETUP_CDC_GET_OPERATION_PARMS                         0x33
00077 #define  SETUP_CDC_SET_LINE_PARMS                              0x34
00078 #define  SETUP_CDC_GET_LINE_PARMS                              0x35
00079 #define  SETUP_CDC_DIAL_DIGITS                                 0x36
00080 #define  SETUP_CDC_SET_UNIT_PARAMETER                          0x37
00081 #define  SETUP_CDC_GET_UNIT_PARAMETER                          0x38
00082 #define  SETUP_CDC_CLEAR_UNIT_PARAMETER                        0x39
00083 #define  SETUP_CDC_GET_PROFILE                                 0x3A
00084 #define  SETUP_CDC_SET_ETHERNET_MULTICAST_FILTERS              0x40
00085 #define  SETUP_CDC_SET_ETHERNET_POWER_MANAGEMENT_PATTERNFILTER 0x41
00086 #define  SETUP_CDC_GET_ETHERNET_POWER_MANAGEMENT_PATTERNFILTER 0x42
00087 #define  SETUP_CDC_SET_ETHERNET_PACKET_FILTER                  0x43
00088 #define  SETUP_CDC_GET_ETHERNET_STATISTIC                      0x44
00089 #define  SETUP_CDC_SET_ATM_DATA_FORMAT                         0x50
00090 #define  SETUP_CDC_GET_ATM_DEVICE_STATISTICS                   0x51
00091 #define  SETUP_CDC_SET_ATM_DEFAULT_VC                          0x52
00092 #define  SETUP_CDC_GET_ATM_VC_STATISTICS                       0x53
00093 
00094 // Added bNotification codes according cdc spec 1.1 chapter 6.3
00095 #define  SETUP_CDC_BN_RING_DETECT                              0x09
00096 #define  SETUP_CDC_BN_SERIAL_STATE                             0x20
00097 #define  SETUP_CDC_BN_CALL_STATE_CHANGE                        0x28
00098 #define  SETUP_CDC_BN_LINE_STATE_CHANGE                        0x29
00100 
00101 #endif   // _USB_COMMUN_CDC_H_
00102 

Generated on Mon Nov 3 10:08:23 2008 for ATMEL by  doxygen 1.5.3