- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

# usb_commun_cdc.h

Go to the documentation of this file.

    00001 /*This file is prepared for Doxygen automatic documentation generation.*/
    00012
    00013 /* Copyright (c) 2009 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  * 4. This software may only be redistributed and used in connection with an Atmel
    00029  * AVR product.
    00030  *
    00031  * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
    00032  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    00033  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE EXPRESSLY AND
    00034  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
    00035  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    00036  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    00037  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    00038  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    00039  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    00040  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    00041  */
    00042
    00043 #ifndef _USB_COMMUN_CDC_H_
    00044 #define _USB_COMMUN_CDC_H_
    00045
    00048 #define  CDC_GLOB_CLASS          0x02
    00049 #define  CDC_COMM_CLASS          0x02
    00050 #define  CDC_DATA_CLASS          0x0A
    00051 #define  CDC_GLOB_SUBCLASS       0x00
    00052 #define  CDC_COMM_SUBCLASS       0x02
    00053 #define  CDC_DATA_SUBCLASS       0x00
    00054 #define  CDC_GLOB_PROTOCOL       0x00
    00055 #define  CDC_COMM_PROTOCOL       0x01
    00056 #define  CDC_DATA_PROTOCOL       0x00
    00057
    00058
    00061 #define  SETUP_CDC_SEND_ENCAPSULATED_COMMAND                   0x00
    00062 #define  SETUP_CDC_GET_ENCAPSULATED_RESPONSE                   0x01
    00063 #define  SETUP_CDC_SET_COMM_FEATURE                            0x02
    00064 #define  SETUP_CDC_GET_COMM_FEATURE                            0x03
    00065 #define  SETUP_CDC_CLEAR_COMM_FEATURE                          0x04
    00066 #define  SETUP_CDC_SET_AUX_LINE_STATE                          0x10
    00067 #define  SETUP_CDC_SET_HOOK_STATE                              0x11
    00068 #define  SETUP_CDC_PULSE_SETUP                                 0x12
    00069 #define  SETUP_CDC_SEND_PULSE                                  0x13
    00070 #define  SETUP_CDC_SET_PULSE_TIME                              0x14
    00071 #define  SETUP_CDC_RING_AUX_JACK                               0x15
    00072 #define  SETUP_CDC_SET_LINE_CODING                             0x20
    00073 #define  SETUP_CDC_GET_LINE_CODING                             0x21
    00074 #define  SETUP_CDC_SET_CONTROL_LINE_STATE                      0x22
    00075 #define  SETUP_CDC_SEND_BREAK                                  0x23
    00076 #define  SETUP_CDC_SET_RINGER_PARMS                            0x30
    00077 #define  SETUP_CDC_GET_RINGER_PARMS                            0x31
    00078 #define  SETUP_CDC_SET_OPERATION_PARMS                         0x32
    00079 #define  SETUP_CDC_GET_OPERATION_PARMS                         0x33
    00080 #define  SETUP_CDC_SET_LINE_PARMS                              0x34
    00081 #define  SETUP_CDC_GET_LINE_PARMS                              0x35
    00082 #define  SETUP_CDC_DIAL_DIGITS                                 0x36
    00083 #define  SETUP_CDC_SET_UNIT_PARAMETER                          0x37
    00084 #define  SETUP_CDC_GET_UNIT_PARAMETER                          0x38
    00085 #define  SETUP_CDC_CLEAR_UNIT_PARAMETER                        0x39
    00086 #define  SETUP_CDC_GET_PROFILE                                 0x3A
    00087 #define  SETUP_CDC_SET_ETHERNET_MULTICAST_FILTERS              0x40
    00088 #define  SETUP_CDC_SET_ETHERNET_POWER_MANAGEMENT_PATTERNFILTER 0x41
    00089 #define  SETUP_CDC_GET_ETHERNET_POWER_MANAGEMENT_PATTERNFILTER 0x42
    00090 #define  SETUP_CDC_SET_ETHERNET_PACKET_FILTER                  0x43
    00091 #define  SETUP_CDC_GET_ETHERNET_STATISTIC                      0x44
    00092 #define  SETUP_CDC_SET_ATM_DATA_FORMAT                         0x50
    00093 #define  SETUP_CDC_GET_ATM_DEVICE_STATISTICS                   0x51
    00094 #define  SETUP_CDC_SET_ATM_DEFAULT_VC                          0x52
    00095 #define  SETUP_CDC_GET_ATM_VC_STATISTICS                       0x53
    00096
    00097 // Added bNotification codes according cdc spec 1.1 chapter 6.3
    00098 #define  SETUP_CDC_BN_RING_DETECT                              0x09
    00099 #define  SETUP_CDC_BN_SERIAL_STATE                             0x20
    00100 #define  SETUP_CDC_BN_CALL_STATE_CHANGE                        0x28
    00101 #define  SETUP_CDC_BN_LINE_STATE_CHANGE                        0x29
    00102
    00103
    00104 #endif   // _USB_COMMUN_CDC_H_
    00105