- 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
code S_usb_hid_report_descriptor | usb_hid_report_descriptor

## 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_MegaHIDGeneric )
    , 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.

Referenced by hid_get_hid_descriptor().

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 140 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('H')   ,Usb_unicode('I')   ,Usb_unicode('D')   ,Usb_unicode(' ')   ,Usb_unicode('D')   ,Usb_unicode('E')   ,Usb_unicode('M')   ,Usb_unicode('O')  }
    }

Definition at line 149 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 158 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 172 of file usb_descriptors.c.

Referenced by usb_user_get_descriptor().

code S_usb_hid_report_descriptor usb_hid_report_descriptor

Initial value:

     {{
          0x06, 0xFF, 0xFF,
          0x09, 0x01,
          0xA1, 0x01,

          0x09, 0x02,
          0x09, 0x03,
          0x15, 0x00,
          0x26 ,0xFF,0x00,
          0x75, 0x08,
          0x95,  0x08 ,
          0x81, 0x02,

          0x09, 0x04,
          0x09, 0x05,
          0x15, 0x00,
          0x26, 0xFF,0x00,
          0x75, 0x08,
          0x95,  0x08 ,
          0x91, 0x02,

          0x09, 0x06,
          0x09, 0x07,
          0x15, 0x00,
          0x26, 0xFF,0x00,
          0x75, 0x08,
          0x95, 0x04,
          0xB1, 0x02,
          0xC0
     }}

Definition at line 179 of file usb_descriptors.c.

Referenced by hid_get_report_descriptor().