OpenCores
URL https://opencores.org/ocsvn/usbhostslave/usbhostslave/trunk

Subversion Repositories usbhostslave

[/] [usbhostslave/] [trunk/] [usbDevice/] [RTL/] [usbDevice_define.v] - Blame information for rev 43

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 37 sfielding
// ----------------------------- usbDevice_define ---------------------------
2
 
3
`define ZERO_ZERO_STAT_INDEX 8'h6c
4
`define ONE_ZERO_STAT_INDEX 8'h6e
5
`define VENDOR_DATA_STAT_INDEX 8'h70
6
`define DEV_DESC_INDEX 8'h00
7
`define DEV_DESC_SIZE 8'h12
8
//config descriptor is bundled with interface desc, HID desc, and EP1 desc
9
`define CFG_DESC_INDEX 8'h12
10
`define CFG_DESC_SIZE 8'h22
11
`define REP_DESC_INDEX 8'h3a
12
`define REP_DESC_SIZE 8'h32
13
`define LANGID_DESC_INDEX 8'h80
14
`define LANGID_DESC_SIZE 8'h04
15
`define STRING1_DESC_INDEX 8'h90
16
`define STRING1_DESC_SIZE 8'd26
17
`define STRING2_DESC_INDEX 8'hb0
18
`define STRING2_DESC_SIZE 8'd20
19
`define STRING3_DESC_INDEX 8'hd0
20
`define STRING3_DESC_SIZE 8'd30
21
 
22
`define DEV_DESC 8'h01
23
`define CFG_DESC 8'h02
24
`define REP_DESC 8'h22
25
`define STRING_DESC 8'h03
26
 
27
//delays at 48MHz
28
`ifdef SIM_COMPILE
29
`define ONE_MSEC_DEL 16'h0300
30
`else
31
`define ONE_MSEC_DEL 16'hbb80
32
`endif
33
`define ONE_USEC_DEL 8'h30
34
 
35
`define GET_STATUS 8'h00
36
`define CLEAR_FEATURE 8'h01
37
`define SET_FEATURE 8'h03
38
`define SET_ADDRESS 8'h05
39
`define GET_DESCRIPTOR 8'h06
40
`define SET_DESCRIPTOR 8'h07
41
`define GET_CONFIG 8'h08
42
`define SET_CONFIG 8'h09
43
`define GET_INTERFACE 8'h0a
44
`define SET_INTERFACE 8'h0b
45
`define SYNCH_FRAME 8'h0c
46
 
47
`define MAX_RESP_SIZE 8'h40
48
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.