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

- File List
- Globals

# usb_descriptors.c File Reference

,vUSB parameters. More...

`#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 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

## Detailed Description

,vUSB parameters.

Copyright (c) 2004 Atmel.

Use of this program is subject to Atmel's End User License Agreement. Please read file license.txt for copyright notice.

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

Version:
  1.1 at90usb162-2enum-mouse_ms-1_0_1
  Id
    usb_descriptors.c,v 1.1 2006/09/07 14:15:12 rletendu Exp

Todo:

Bug:

Definition in file usb_descriptors.c.

## Variable Documentation

code S_usb_device_descriptor usb_dev_desc

Initial value:

    {
      sizeof(usb_dev_desc)
    , DEVICE_DESCRIPTOR
    , Usb_write_word_enum_struc( 0x0200 )
    ,  0
    ,  0
    ,  0
    ,  8
    , Usb_write_word_enum_struc( 0x03EB )
    , Usb_write_word_enum_struc( 0x202A )
    , Usb_write_word_enum_struc( 0x1000 )
    ,  0x01
    ,  0x02
    ,  0x03
    ,  1
    }

Definition at line 38 of file usb_descriptors.c.

code S_usb_user_configuration_descriptor usb_conf_desc

Definition at line 57 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)
    , STRING_DESCRIPTOR
    ,  { ((U16)( 'A' ))  , ((U16)( 'T' ))  , ((U16)( 'M' ))  , ((U16)( 'E' ))  , ((U16)( 'L' ))  }
    }

Definition at line 133 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)
    , STRING_DESCRIPTOR
    ,  { ((U16)( 'A' ))   ,((U16)( 'V' ))   ,((U16)( 'R' ))   ,((U16)( ' ' ))   ,((U16)( 'U' ))   ,((U16)( 'S' ))   ,((U16)( 'B' ))   ,((U16)( ' ' ))   ,((U16)( 'M' ))   ,((U16)( 'O' ))   ,((U16)( 'U' ))   ,((U16)( 'S' ))   ,((U16)( 'E' ))   ,((U16)( ' ' ))   ,((U16)( 'D' ))   ,((U16)( 'E' ))   ,((U16)( 'M' ))   ,((U16)( 'O' ))  }
    }

Definition at line 142 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)
    , STRING_DESCRIPTOR
    ,  { ((U16)( '1' ))   ,((U16)( '.' ))   ,((U16)( '0' ))   ,((U16)( '.' ))   ,((U16)( '0' ))  }
    }

Definition at line 151 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)
    , STRING_DESCRIPTOR
    , Usb_write_word_enum_struc( 0x0409 )
    }

Definition at line 160 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 166 of file usb_descriptors.c.

Referenced by hid_get_report().