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

# usb_descriptors.c File Reference

`#include "config.h"`
`#include "conf_usb.h"`
`#include "lib_mcu/usb/usb_drv.h"`
`#include "usb_descriptors.h"`
`#include "modules/usb/device_chap9/usb_standard_request.h"`
`#include "usb_specific_request.h"`
`#include "lib_mcu/flash/flash_drv.h"`

Include dependency graph for usb_descriptors.c:

Go to the source code of this file.

## Variables
code S_usb_device_descriptor | usb_dev_desc
code S_usb_user_configuration_descriptor | usb_conf_desc
code S_usb_manufacturer_string_descriptor | usb_user_manufacturer_string_descriptor
code S_usb_product_string_descriptor | usb_user_product_string_descriptor
code S_usb_serial_number | usb_user_serial_number
code S_usb_language_id | usb_user_language_id

## Detailed Description

USB parameters.

This file contains the usb parameters that uniquely identify the application through descriptor tables.

- Compiler: IAR EWAVR and GNU GCC for AVR
- Supported devices: AT90USB1287, AT90USB1286, AT90USB647, AT90USB646

Author:
  Atmel Corporation: http://www.atmel.com
  Support and FAQ: http://support.atmel.no/

Definition in file usb_descriptors.c.

## Variable Documentation

code S_usb_device_descriptor usb_dev_desc

Initial value:

    {
      sizeof(usb_dev_desc)
    , DESCRIPTOR_DEVICE
    , Usb_write_word_enum_struc( 0x0200 )
    ,  0
    ,  0
    ,  0
    ,  64
    , Usb_write_word_enum_struc( VID_ATMEL )
    , Usb_write_word_enum_struc( PID_AT90USB128_64_MS )
    , Usb_write_word_enum_struc( 0x1000 )
    ,  0x01
    ,  0x02
    ,  0x03
    ,  1
    }

Definition at line 66 of file usb_descriptors.c.

code S_usb_user_configuration_descriptor usb_conf_desc

Definition at line 85 of file usb_descriptors.c.

code S_usb_manufacturer_string_descriptor usb_user_manufacturer_string_descriptor

Initial value:

     {
      sizeof(usb_user_manufacturer_string_descriptor)
    , DESCRIPTOR_STRING
    ,  { Usb_unicode('A')  , Usb_unicode('T')  , Usb_unicode('M')  , Usb_unicode('E')  , Usb_unicode('L')  }
    }

Definition at line 130 of file usb_descriptors.c.

Referenced by usb_user_get_descriptor().

code S_usb_product_string_descriptor usb_user_product_string_descriptor

Initial value:

     {
      sizeof(usb_user_product_string_descriptor)
    , DESCRIPTOR_STRING
    ,  { Usb_unicode('A')   ,Usb_unicode('V')   ,Usb_unicode('R')   ,Usb_unicode(' ')   ,Usb_unicode('U')   ,Usb_unicode('S')   ,Usb_unicode('B')   ,Usb_unicode(' ')   ,Usb_unicode('M')   ,Usb_unicode('S')   ,Usb_unicode(' ')   ,Usb_unicode('F')   ,Usb_unicode('I')   ,Usb_unicode('L')   ,Usb_unicode('E')   ,Usb_unicode(' ')   ,Usb_unicode('S')   ,Usb_unicode('Y')   ,Usb_unicode('S')   ,Usb_unicode('T')   ,Usb_unicode('E')   ,Usb_unicode('M')  }
    }

Definition at line 139 of file usb_descriptors.c.

Referenced by usb_user_get_descriptor().

code S_usb_serial_number usb_user_serial_number

Initial value:

     {

      sizeof(usb_user_serial_number)+4*SN_LENGTH
    , DESCRIPTOR_STRING

    }

Definition at line 148 of file usb_descriptors.c.

Referenced by usb_user_get_descriptor().

code S_usb_language_id usb_user_language_id

Initial value:

     {
      sizeof(usb_user_language_id)
    , DESCRIPTOR_STRING
    , Usb_write_word_enum_struc( 0x0409 )
    }

Definition at line 162 of file usb_descriptors.c.

Referenced by usb_user_get_descriptor().