#include "config.h"
#include "modules/usb/device_chap9/usb_standard_request.h"
#include "conf_usb.h"
Go to the source code of this file.
This file contains the usb parameters that uniquely identify the USB application through descriptor tables.
Definition in file usb_descriptors.h.
#define Usb_unicode | ( | a | ) | ((U16)(a)) |
Definition at line 58 of file usb_descriptors.h.
#define Usb_get_dev_desc_pointer | ( | ) | (&(usb_dev_desc.bLength)) |
#define Usb_get_dev_desc_length | ( | ) | (sizeof (usb_dev_desc)) |
#define Usb_get_conf_desc_pointer | ( | ) | (&(usb_conf_desc.cfg_temp.bLength)) |
#define Usb_get_conf_desc_length | ( | ) | (sizeof (usb_conf_desc)) |
#define USB_SPECIFICATION 0x0200 |
Definition at line 67 of file usb_descriptors.h.
#define DEVICE_CLASS 0 |
Definition at line 68 of file usb_descriptors.h.
#define DEVICE_SUB_CLASS 0 |
Definition at line 69 of file usb_descriptors.h.
#define DEVICE_PROTOCOL 0 |
Definition at line 70 of file usb_descriptors.h.
#define EP_CONTROL_LENGTH 64 |
#define VENDOR_ID VID_ATMEL |
Definition at line 72 of file usb_descriptors.h.
#define PRODUCT_ID 0x0000 |
Definition at line 73 of file usb_descriptors.h.
#define RELEASE_NUMBER 0x1000 |
Definition at line 74 of file usb_descriptors.h.
#define MAN_INDEX 0x01 |
#define PROD_INDEX 0x02 |
#define SN_INDEX 0x03 |
#define NB_CONFIGURATION 1 |
#define NB_INTERFACE 2 |
Definition at line 85 of file usb_descriptors.h.
#define CONF_NB 1 |
Definition at line 86 of file usb_descriptors.h.
#define CONF_INDEX 0 |
Definition at line 87 of file usb_descriptors.h.
#define CONF_ATTRIBUTES USB_CONFIG_BUSPOWERED |
Definition at line 88 of file usb_descriptors.h.
#define MAX_POWER 50 |
Definition at line 89 of file usb_descriptors.h.
#define INTERFACE_NB_TEMP 0 |
#define ALTERNATE_TEMP 0 |
Definition at line 93 of file usb_descriptors.h.
#define NB_ENDPOINT_TEMP 2 |
Definition at line 94 of file usb_descriptors.h.
#define INTERFACE_CLASS_TEMP NO_CLASS |
Definition at line 95 of file usb_descriptors.h.
#define INTERFACE_SUB_CLASS_TEMP NO_SUBCLASS |
Definition at line 96 of file usb_descriptors.h.
#define INTERFACE_PROTOCOL_TEMP NO_PROTOCOL |
Definition at line 97 of file usb_descriptors.h.
#define INTERFACE_INDEX_TEMP 0 |
Definition at line 98 of file usb_descriptors.h.
#define ENDPOINT_NB_TEMP1 (EP_TEMP_IN | USB_ENDPOINT_IN) |
Definition at line 101 of file usb_descriptors.h.
#define EP_ATTRIBUTES_TEMP1 0x02 |
Definition at line 102 of file usb_descriptors.h.
#define EP_IN_LENGTH_TEMP1 64 |
#define EP_SIZE_TEMP1 EP_IN_LENGTH_TEMP1 |
Definition at line 104 of file usb_descriptors.h.
#define EP_INTERVAL_TEMP1 0x00 |
Definition at line 105 of file usb_descriptors.h.
#define ENDPOINT_NB_TEMP2 EP_TEMP_OUT |
Definition at line 108 of file usb_descriptors.h.
#define EP_ATTRIBUTES_TEMP2 0x02 |
Definition at line 109 of file usb_descriptors.h.
#define EP_IN_LENGTH_TEMP2 64 |
Definition at line 110 of file usb_descriptors.h.
#define EP_SIZE_TEMP2 EP_IN_LENGTH_TEMP2 |
Definition at line 111 of file usb_descriptors.h.
#define EP_INTERVAL_TEMP2 0x00 |
Definition at line 112 of file usb_descriptors.h.
#define INTERFACE_NB_SECOND_TEMP 1 |
#define ALTERNATE_SECOND_TEMP 0 |
Definition at line 116 of file usb_descriptors.h.
#define NB_ENDPOINT_SECOND_TEMP 1 |
Definition at line 117 of file usb_descriptors.h.
#define INTERFACE_CLASS_SECOND_TEMP 0x00 |
Definition at line 118 of file usb_descriptors.h.
#define INTERFACE_SUB_CLASS_SECOND_TEMP 0x55 |
Definition at line 119 of file usb_descriptors.h.
#define INTERFACE_PROTOCOL_SECOND_TEMP 0xAA |
Definition at line 120 of file usb_descriptors.h.
#define INTERFACE_INDEX_SECOND_TEMP 0 |
Definition at line 121 of file usb_descriptors.h.
#define ENDPOINT_NB_TEMP3 (EP_TEMP_INT_IN | USB_ENDPOINT_IN) |
Definition at line 124 of file usb_descriptors.h.
#define EP_ATTRIBUTES_TEMP3 0x03 |
Definition at line 125 of file usb_descriptors.h.
#define EP_IN_LENGTH_TEMP3 64 |
Definition at line 126 of file usb_descriptors.h.
#define EP_SIZE_TEMP3 EP_IN_LENGTH_TEMP2 |
Definition at line 127 of file usb_descriptors.h.
#define EP_INTERVAL_TEMP3 20 |
Definition at line 128 of file usb_descriptors.h.
#define DEVICE_STATUS USB_DEVICE_STATUS_BUS_POWERED |
Definition at line 131 of file usb_descriptors.h.
#define LANG_ID 0x00 |
#define USB_MN_LENGTH 5 |
Definition at line 136 of file usb_descriptors.h.
#define USB_MANUFACTURER_NAME |
Value:
{ Usb_unicode('A') \ , Usb_unicode('T') \ , Usb_unicode('M') \ , Usb_unicode('E') \ , Usb_unicode('L') \ }
Definition at line 137 of file usb_descriptors.h.
#define USB_PN_LENGTH 14 |
Definition at line 145 of file usb_descriptors.h.
#define USB_PRODUCT_NAME |
Value:
{ Usb_unicode('A') \ ,Usb_unicode('V') \ ,Usb_unicode('R') \ ,Usb_unicode(' ') \ ,Usb_unicode('U') \ ,Usb_unicode('S') \ ,Usb_unicode('B') \ ,Usb_unicode(' ') \ ,Usb_unicode('D') \ ,Usb_unicode('E') \ ,Usb_unicode('V') \ ,Usb_unicode('I') \ ,Usb_unicode('C') \ ,Usb_unicode('E') \ }
Definition at line 146 of file usb_descriptors.h.
#define USB_SN_LENGTH 0x0D |
Definition at line 163 of file usb_descriptors.h.
#define USB_SERIAL_NUMBER |
Value:
{ Usb_unicode('0') \ ,Usb_unicode('0') \ ,Usb_unicode('0') \ ,Usb_unicode('0') \ ,Usb_unicode('0') \ ,Usb_unicode('0') \ ,Usb_unicode('0') \ ,Usb_unicode('0') \ ,Usb_unicode('0') \ ,Usb_unicode('0') \ ,Usb_unicode('0') \ ,Usb_unicode('0') \ ,Usb_unicode('0') \ }
Definition at line 165 of file usb_descriptors.h.
#define LANGUAGE_ID 0x0409 |
Definition at line 181 of file usb_descriptors.h.