Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

conf_usb.h File Reference

Copyright (c) 2004. More...

#include "modules/usb/usb_enum.h"

Go to the source code of this file.

Data Structures

struct  S_usb_user_configuration_descriptor
struct  S_usb_manufacturer_string_descriptor
struct  S_usb_product_string_descriptor
struct  S_usb_serial_number

Defines

#define USB_HS   DISABLE
#define USB_NORMAL_SPEED
#define USB_FULL_SPEED   Usb_force_full_speed()
#define USB_HIGH_SPEED   Usb_force_high_spedd()
#define USB_FULL_SPEED_UTMI   Usb_force_full_speed_utmi()
#define Usb_set_speed()   USB_FULL_SPEED
#define EP_HID_IN   1
#define EP_HID_OUT   2
#define LENGTH_OF_REPORT   0x20
#define Usb_suspend_action()   Set_power_down_mode();
#define USB_SPECIFICATION   0x0002
#define DEVICE_CLASS   0
#define DEVICE_SUB_CLASS   0
#define DEVICE_PROTOCOL   0
#define EP_CONTROL_LENGTH   32
#define VENDOR_ID   0xEB03
#define PRODUCT_ID   0x1320
#define RELEASE_NUMBER   0x0003
#define MAN_INDEX   0x01
#define PROD_INDEX   0x02
#define SN_INDEX   0x03
#define NB_CONFIGURATION   1
#define NB_INTERFACE_FS   1
#define CONF_NB_FS   1
#define CONF_INDEX_FS   0
#define CONF_ATTRIBUTES_FS   USB_CONFIG_BUSPOWERED
#define MAX_POWER_FS   50
#define INTERFACE_NB_FS   0
#define ALTERNATE_FS   0
#define NB_ENDPOINT_FS   2
#define INTERFACE_CLASS_FS   0x03
#define INTERFACE_SUB_CLASS_FS   0
#define INTERFACE_PROTOCOL_FS   0
#define INTERFACE_INDEX_FS   0
#define ENDPOINT_NB_1_FS   (EP_HID_IN | 0x80)
#define EP_ATTRIBUTES_1_FS   0x03
#define EP_IN_LENGTH_FS   LENGTH_OF_REPORT
#define EP_SIZE_1_FS   (wSWAP(EP_IN_LENGTH_FS))
#define EP_INTERVAL_1_FS   0x01
#define ENDPOINT_NB_2_FS   (EP_HID_OUT)
#define EP_ATTRIBUTES_2_FS   0x03
#define EP_OUT_LENGTH_FS   LENGTH_OF_REPORT
#define EP_SIZE_2_FS   (wSWAP(EP_OUT_LENGTH_FS))
#define EP_INTERVAL_2_FS   0x01
#define SIZE_OF_REPORT   0x35
#define NB_ENDPOINTS   3
#define ENDPOINT_0   0x00
#define NB_CONFIGURATIONS   0x01
#define DEVICE_STATUS   0x00
#define INTERFACE_STATUS   0x00
#define LANGUAGE_ID   0x0904
#define USB_MANUFACTURER_NAME
#define USB_PRODUCT_NAME
#define USB_SERIAL_NUMBER
#define HID_DESCRIPTOR   0x21
#define HID_BDC   0x1001
#define HID_COUNTRY_CODE   0x00
#define HID_CLASS_DESC_NB   0x01
#define HID_DESCRIPTOR_TYPE   0x22
#define HID_DESCRIPTOR_LENGTH   (wSWAP((U16)0x34))
#define LANGUAGE_ID   0x0904
#define USB_MN_LENGTH   5
#define USB_PN_LENGTH   28
#define USB_SN_LENGTH   13
#define Usb_sof_action()
#define Usb_wake_up_action()
#define Usb_resume_action()
#define Usb_reset_action()
#define Usb_vbus_on_action()
#define Usb_vbus_off_action()
#define Usb_set_configuration_action()
#define Scsi_start_read_action()
#define Scsi_stop_read_action()
#define Scsi_start_write_action()
#define Scsi_stop_write_action()
#define STANDARD_PORT   0
#define LED_PORT_2MA   1
#define LED_PORT_4MA   2
#define LED_PORT_10MA   3
#define Wdt_immediate_reset()
#define Wdt_refresh()
#define Configure_led(num, type)
#define Led_0_on()   (P3_3 = 0)
#define Led_0_off()   (P3_3 = 1)
#define Led_0_toggle()   (P3_3 = ~P3_3)
#define Led_0_status()   (P3_3)
#define Led_0_write(x)   (P3_3 = x)
#define Led_1_on()   (P3_5 = 0)
#define Led_1_off()   (P3_5 = 1)
#define Led_1_toggle()   (P3_5 = ~P3_5)
#define Led_1_status()   (P3_5)
#define Led_1_write(x)   (P3_5 = x)
#define Led_2_on()   (P3_6 = 0)
#define Led_2_off()   (P3_6 = 1)
#define Led_2_toggle()   (P3_6 = ~P3_6)
#define Led_2_status()   (P3_6)
#define Led_2_write(x)   (P3_6 = x)
#define Led_3_on()   (P3_7 = 0)
#define Led_3_off()   (P3_7 = 1)
#define Led_3_toggle()   (P3_7 = ~P3_7)
#define Led_3_status()   (P3_7)
#define Led_3_write(x)   (P3_7 = x)
#define Led_all_on()   (P3 &= 0x17)
#define Led_all_off()   (P3 |= ~0x17)


Detailed Description

Copyright (c) 2004.

Please read file license.txt for copyright notice.

This file contains the possible external configuration of the USB This file will be given to any external customer

Version:
1.5 (c5131-usb-generic-1_2_0)

Todo:
Bug:

Definition in file conf_usb.h.


Define Documentation

#define USB_HS   DISABLE
 

Definition at line 17 of file conf_usb.h.

#define USB_NORMAL_SPEED
 

Definition at line 20 of file conf_usb.h.

#define USB_FULL_SPEED   Usb_force_full_speed()
 

Definition at line 21 of file conf_usb.h.

#define USB_HIGH_SPEED   Usb_force_high_spedd()
 

Definition at line 22 of file conf_usb.h.

#define USB_FULL_SPEED_UTMI   Usb_force_full_speed_utmi()
 

Definition at line 23 of file conf_usb.h.

 
#define Usb_set_speed  )     USB_FULL_SPEED
 

Definition at line 25 of file conf_usb.h.

Referenced by usb_start_device().

#define EP_HID_IN   1
 

Definition at line 27 of file conf_usb.h.

Referenced by usb_task(), usb_user_endpoint_init(), and usb_write_continuous().

#define EP_HID_OUT   2
 

Definition at line 28 of file conf_usb.h.

Referenced by usb_read_continuous(), and usb_user_endpoint_init().

#define LENGTH_OF_REPORT   0x20
 

Definition at line 29 of file conf_usb.h.

Referenced by usb_write_continuous(), and user_application_task_init().

 
#define Usb_suspend_action  )     Set_power_down_mode();
 

Definition at line 34 of file conf_usb.h.

Referenced by usb_task().

#define USB_SPECIFICATION   0x0002
 

Definition at line 41 of file conf_usb.h.

#define DEVICE_CLASS   0
 

Definition at line 42 of file conf_usb.h.

#define DEVICE_SUB_CLASS   0
 

Definition at line 43 of file conf_usb.h.

#define DEVICE_PROTOCOL   0
 

Definition at line 44 of file conf_usb.h.

#define EP_CONTROL_LENGTH   32
 

Definition at line 45 of file conf_usb.h.

Referenced by usb_get_descriptor().

#define VENDOR_ID   0xEB03
 

Definition at line 46 of file conf_usb.h.

#define PRODUCT_ID   0x1320
 

Definition at line 47 of file conf_usb.h.

#define RELEASE_NUMBER   0x0003
 

Definition at line 48 of file conf_usb.h.

#define MAN_INDEX   0x01
 

Definition at line 49 of file conf_usb.h.

#define PROD_INDEX   0x02
 

Definition at line 50 of file conf_usb.h.

#define SN_INDEX   0x03
 

Definition at line 51 of file conf_usb.h.

#define NB_CONFIGURATION   1
 

Definition at line 52 of file conf_usb.h.

#define NB_INTERFACE_FS   1
 

Definition at line 56 of file conf_usb.h.

#define CONF_NB_FS   1
 

Definition at line 57 of file conf_usb.h.

#define CONF_INDEX_FS   0
 

Definition at line 58 of file conf_usb.h.

#define CONF_ATTRIBUTES_FS   USB_CONFIG_BUSPOWERED
 

Definition at line 59 of file conf_usb.h.

#define MAX_POWER_FS   50
 

Definition at line 60 of file conf_usb.h.

#define INTERFACE_NB_FS   0
 

Definition at line 63 of file conf_usb.h.

#define ALTERNATE_FS   0
 

Definition at line 64 of file conf_usb.h.

#define NB_ENDPOINT_FS   2
 

Definition at line 65 of file conf_usb.h.

#define INTERFACE_CLASS_FS   0x03
 

Definition at line 66 of file conf_usb.h.

#define INTERFACE_SUB_CLASS_FS   0
 

Definition at line 67 of file conf_usb.h.

#define INTERFACE_PROTOCOL_FS   0
 

Definition at line 68 of file conf_usb.h.

#define INTERFACE_INDEX_FS   0
 

Definition at line 69 of file conf_usb.h.

#define ENDPOINT_NB_1_FS   (EP_HID_IN | 0x80)
 

Definition at line 72 of file conf_usb.h.

#define EP_ATTRIBUTES_1_FS   0x03
 

Definition at line 73 of file conf_usb.h.

#define EP_IN_LENGTH_FS   LENGTH_OF_REPORT
 

Definition at line 74 of file conf_usb.h.

#define EP_SIZE_1_FS   (wSWAP(EP_IN_LENGTH_FS))
 

Definition at line 75 of file conf_usb.h.

#define EP_INTERVAL_1_FS   0x01
 

Definition at line 76 of file conf_usb.h.

#define ENDPOINT_NB_2_FS   (EP_HID_OUT)
 

Definition at line 79 of file conf_usb.h.

#define EP_ATTRIBUTES_2_FS   0x03
 

Definition at line 80 of file conf_usb.h.

#define EP_OUT_LENGTH_FS   LENGTH_OF_REPORT
 

Definition at line 81 of file conf_usb.h.

#define EP_SIZE_2_FS   (wSWAP(EP_OUT_LENGTH_FS))
 

Definition at line 82 of file conf_usb.h.

#define EP_INTERVAL_2_FS   0x01
 

Definition at line 83 of file conf_usb.h.

#define SIZE_OF_REPORT   0x35
 

Definition at line 86 of file conf_usb.h.

Referenced by usb_user_get_descriptor().

#define NB_ENDPOINTS   3
 

Definition at line 97 of file conf_usb.h.

Referenced by usb_enum_var_init().

#define ENDPOINT_0   0x00
 

Definition at line 101 of file conf_usb.h.

#define NB_CONFIGURATIONS   0x01
 

Definition at line 103 of file conf_usb.h.

Referenced by usb_set_configuration().

#define DEVICE_STATUS   0x00
 

Definition at line 104 of file conf_usb.h.

Referenced by usb_get_status().

#define INTERFACE_STATUS   0x00
 

Definition at line 105 of file conf_usb.h.

Referenced by usb_get_status().

#define LANGUAGE_ID   0x0904
 

Definition at line 149 of file conf_usb.h.

#define USB_MANUFACTURER_NAME
 

Value:

{ 'A'<<8 \ , 'T'<<8 \ , 'M'<<8 \ , 'E'<<8 \ , 'L'<<8 \ }

Definition at line 109 of file conf_usb.h.

#define USB_PRODUCT_NAME
 

Value:

Usb_str_28('A', 'T', '8', '9', 'C', '5', \ '1', '3', '1', ' ', \ '-', ' ', 'U', 'S', 'B', ' ', 'H', \ 'I', 'D', ' ', 'G', 'e', 'n', \ 'e', 'r', 'i', 'c', ' ' \ )

Definition at line 117 of file conf_usb.h.

#define USB_SERIAL_NUMBER
 

Value:

{ '1'<<8 \ , '.'<<8 \ , '3'<<8 \ , '.'<<8 \ , '5'<<8 \ , '.'<<8 \ , '7'<<8 \ , '.'<<8 \ , '9'<<8 \ , '.'<<8 \ , 'B'<<8 \ , '.'<<8 \ , 'D'<<8 \ }

Definition at line 126 of file conf_usb.h.

#define HID_DESCRIPTOR   0x21
 

Definition at line 142 of file conf_usb.h.

Referenced by usb_user_get_descriptor().

#define HID_BDC   0x1001
 

Definition at line 143 of file conf_usb.h.

#define HID_COUNTRY_CODE   0x00
 

Definition at line 144 of file conf_usb.h.

#define HID_CLASS_DESC_NB   0x01
 

Definition at line 145 of file conf_usb.h.

#define HID_DESCRIPTOR_TYPE   0x22
 

Definition at line 146 of file conf_usb.h.

#define HID_DESCRIPTOR_LENGTH   (wSWAP((U16)0x34))
 

Definition at line 147 of file conf_usb.h.

#define LANGUAGE_ID   0x0904
 

Definition at line 149 of file conf_usb.h.

#define USB_MN_LENGTH   5
 

Definition at line 152 of file conf_usb.h.

#define USB_PN_LENGTH   28
 

Definition at line 165 of file conf_usb.h.

#define USB_SN_LENGTH   13
 

Definition at line 177 of file conf_usb.h.

 
#define Usb_sof_action  ) 
 

Definition at line 191 of file conf_usb.h.

 
#define Usb_wake_up_action  ) 
 

Definition at line 192 of file conf_usb.h.

 
#define Usb_resume_action  ) 
 

Definition at line 193 of file conf_usb.h.

 
#define Usb_reset_action  ) 
 

Definition at line 195 of file conf_usb.h.

 
#define Usb_vbus_on_action  ) 
 

Definition at line 196 of file conf_usb.h.

 
#define Usb_vbus_off_action  ) 
 

Definition at line 197 of file conf_usb.h.

 
#define Usb_set_configuration_action  ) 
 

Definition at line 198 of file conf_usb.h.

Referenced by usb_set_configuration().

 
#define Scsi_start_read_action  ) 
 

Definition at line 208 of file conf_usb.h.

 
#define Scsi_stop_read_action  ) 
 

Definition at line 209 of file conf_usb.h.

 
#define Scsi_start_write_action  ) 
 

Definition at line 210 of file conf_usb.h.

 
#define Scsi_stop_write_action  ) 
 

Definition at line 211 of file conf_usb.h.

#define STANDARD_PORT   0
 

Definition at line 215 of file conf_usb.h.

Referenced by user_application_task().

#define LED_PORT_2MA   1
 

Definition at line 216 of file conf_usb.h.

#define LED_PORT_4MA   2
 

Definition at line 217 of file conf_usb.h.

#define LED_PORT_10MA   3
 

Definition at line 218 of file conf_usb.h.

Referenced by user_application_task_init().

 
#define Wdt_immediate_reset  ) 
 

Value:

((WDTRST = 0x1E), \ (WDTRST = 0xE1), \ (WDTRST = 0x3C), \ (WDTRST = 0xC3))

Definition at line 221 of file conf_usb.h.

 
#define Wdt_refresh  ) 
 

Value:

((WDTRST = 0x1E), \ (WDTRST = 0xE1))

Definition at line 227 of file conf_usb.h.

#define Configure_led num,
type   ) 
 

Value:

{LEDCON &= (0xFF & ~(0x03 << (num*2))); \ LEDCON |= (type << (num*2));}

Definition at line 230 of file conf_usb.h.

Referenced by user_application_task(), and user_application_task_init().

 
#define Led_0_on  )     (P3_3 = 0)
 

Definition at line 233 of file conf_usb.h.

Referenced by user_application_task().

 
#define Led_0_off  )     (P3_3 = 1)
 

Definition at line 234 of file conf_usb.h.

Referenced by user_application_task().

 
#define Led_0_toggle  )     (P3_3 = ~P3_3)
 

Definition at line 235 of file conf_usb.h.

 
#define Led_0_status  )     (P3_3)
 

Definition at line 236 of file conf_usb.h.

#define Led_0_write  )     (P3_3 = x)
 

Definition at line 237 of file conf_usb.h.

 
#define Led_1_on  )     (P3_5 = 0)
 

Definition at line 238 of file conf_usb.h.

Referenced by user_application_task().

 
#define Led_1_off  )     (P3_5 = 1)
 

Definition at line 239 of file conf_usb.h.

Referenced by user_application_task().

 
#define Led_1_toggle  )     (P3_5 = ~P3_5)
 

Definition at line 240 of file conf_usb.h.

 
#define Led_1_status  )     (P3_5)
 

Definition at line 241 of file conf_usb.h.

#define Led_1_write  )     (P3_5 = x)
 

Definition at line 242 of file conf_usb.h.

 
#define Led_2_on  )     (P3_6 = 0)
 

Definition at line 243 of file conf_usb.h.

Referenced by user_application_task().

 
#define Led_2_off  )     (P3_6 = 1)
 

Definition at line 244 of file conf_usb.h.

Referenced by user_application_task().

 
#define Led_2_toggle  )     (P3_6 = ~P3_6)
 

Definition at line 245 of file conf_usb.h.

 
#define Led_2_status  )     (P3_6)
 

Definition at line 246 of file conf_usb.h.

#define Led_2_write  )     (P3_6 = x)
 

Definition at line 247 of file conf_usb.h.

 
#define Led_3_on  )     (P3_7 = 0)
 

Definition at line 248 of file conf_usb.h.

Referenced by user_application_task().

 
#define Led_3_off  )     (P3_7 = 1)
 

Definition at line 249 of file conf_usb.h.

Referenced by user_application_task().

 
#define Led_3_toggle  )     (P3_7 = ~P3_7)
 

Definition at line 250 of file conf_usb.h.

 
#define Led_3_status  )     (P3_7)
 

Definition at line 251 of file conf_usb.h.

#define Led_3_write  )     (P3_7 = x)
 

Definition at line 252 of file conf_usb.h.

 
#define Led_all_on  )     (P3 &= 0x17)
 

Definition at line 255 of file conf_usb.h.

 
#define Led_all_off  )     (P3 |= ~0x17)
 

Definition at line 256 of file conf_usb.h.

Referenced by usb_task(), user_application_task(), and user_application_task_init().


Generated on Mon Apr 10 17:23:30 2006 for Atmel by doxygen 1.3.7