ATMEL: usb_descriptors.c File Reference

- 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_mouse | usb_hid_report_descriptor_mouse
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_AT90USB128_64_MS_HIDMS_HID_STK525 )
    , Usb_write_word_enum_struc( 0x1000 )
    ,  0x01
    ,  0x02
    ,  0x03
    ,  1
    }

Definition at line 69 of file usb_descriptors.c.

code S_usb_user_configuration_descriptor usb_conf_desc

Definition at line 88 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 205 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('K')   ,Usb_unicode('E')   ,Usb_unicode('Y')   ,Usb_unicode(' ')   ,Usb_unicode('C')   ,Usb_unicode('O')   ,Usb_unicode('M')   ,Usb_unicode('P')   ,Usb_unicode('O')   ,Usb_unicode('S')   ,Usb_unicode('I')   ,Usb_unicode('T')   ,Usb_unicode('E')   ,Usb_unicode(' ')   ,Usb_unicode('D')   ,Usb_unicode('E')   ,Usb_unicode('V')   ,Usb_unicode('I')   ,Usb_unicode('C')   ,Usb_unicode('E')  }
    }

Definition at line 214 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 223 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 237 of file usb_descriptors.c.

Referenced by usb_user_get_descriptor().

code S_usb_hid_report_descriptor_mouse usb_hid_report_descriptor_mouse

Initial value:

     {{
          0x05,0x01,
          0x09,0x02,
          0xA1,0x01,
          0x09,0x01,
          0xA1,0x00,
          0x05,0x09,
          0x19,0x01,
          0x29,0x03,
          0x15,0x00,
          0x25,0x01,
          0x75,0x01,
          0x95,0x03,
          0x81,0x02,
          0x75,0x05,
          0x95,0x01,
          0x81,0x01,
          0x05,0x01,
          0x09,0x30,
          0x09,0x31,
          0x09,0x38,
          0x15,0x81,
          0x25,0x7F,
          0x75,0x08,
          0x95,0x03,
          0x81,0x06,
          0xC0,
          0xC0
    }}

Definition at line 243 of file usb_descriptors.c.

Referenced by hid_get_report_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 274 of file usb_descriptors.c.

Referenced by hid_get_report_descriptor().