USB Host InputFunctions example
USB2 PLL running
reset waited 6
USBHS_ASYNCLISTADDR = 0
USBHS_PERIODICLISTBASE = 2003B000
periodictable = 2003B000
USB Ready
port change: 10001803
connect
[COLOR="#FF0000"] F_CPU=960000000 deg C=65[/COLOR]
Looped: 1 LoopedUSB: 0 LinkSpeed: 10BASE
begin reset
port change: 18001205
port enabled
end recovery
new_Device: 480 Mbit/sec
new_Pipe
enumeration:
enumeration:
enumeration:
Device Descriptor:
12 01 10 02 09 00 01 40 09 21 13 28 01 90 01 02 00 01
VendorID = 2109, ProductID = 2813, Version = 9001
Class/Subclass/Protocol = 9(Hub) / 0 / 1(Single-TT)
Number of Configurations = 1
enumeration:
enumeration:
Manufacturer: VIA Labs, Inc.
enumeration:
Product: USB2.0 Hub
enumeration:
Config data length = 25
enumeration:
Configuration Descriptor:
09 02 19 00 01 01 00 E0 00
NumInterfaces = 1
ConfigurationValue = 1
09 04 00 00 01 09 00 00 00
Interface = 0
Number of endpoints = 1
Class/Subclass/Protocol = 9(Hub) / 0 / 0
07 05 81 03 01 00 0C
Endpoint = 1 IN
Type = Interrupt
Max Size = 1
Polling Interval = 12
enumeration:
USBHub memory usage = 960
USBHub claim_device this=20002E00
found possible interface, altsetting=0
number of interfaces found = 1
USBHub control callback
09 29 04 E9 00 32 64 00 FF 00 00 00 00 00 00 00
Hub ports = 4
USBHub control callback
USBHub control callback
USBHub control callback
USBHub control callback
power turned on to all ports
device addr = 1
new_Pipe
allocate_interrupt_pipe_bandwidth
ep interval = 12
interval = 256
best_bandwidth = 2, at offset = 0
pipe cap1 = F0012101
HUB Callback (member)
status = 12
getstatus, port = 1
deferred getstatus, port = 4
USBHub control callback
01 01 01 00
New Port Status
status=10101 port=1
state=0
Device is present:
Has Power
USBHub control callback
Port Status Cleared, port=1
getstatus, port = 4
USBHub control callback
01 01 01 00
New Port Status
status=10101 port=4
state=0
Device is present:
Has Power
USBHub control callback
Port Status Cleared, port=4
timer event (19998 us): Debounce Timer, this = 20002E00, timer = 20003118
ports in use bitmask = 12
getstatus, port = 1
deferred getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=1
state=2
Device is present:
Has Power
getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=4
state=2
Device is present:
Has Power
timer event (19999 us): Debounce Timer, this = 20002E00, timer = 20003118
ports in use bitmask = 12
getstatus, port = 1
deferred getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=1
state=3
Device is present:
Has Power
getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=4
state=3
Device is present:
Has Power
timer event (19999 us): Debounce Timer, this = 20002E00, timer = 20003118
ports in use bitmask = 12
getstatus, port = 1
deferred getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=1
state=4
Device is present:
Has Power
getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=4
state=4
Device is present:
Has Power
timer event (19999 us): Debounce Timer, this = 20002E00, timer = 20003118
ports in use bitmask = 12
getstatus, port = 1
deferred getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=1
state=5
Device is present:
Has Power
getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=4
state=5
Device is present:
Has Power
timer event (19999 us): Debounce Timer, this = 20002E00, timer = 20003118
ports in use bitmask = 12
getstatus, port = 1
deferred getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=1
state=6
Device is present:
Has Power
sending reset
send_setreset
USBHub control callback
unhandled setup, message = 40323
getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=4
state=6
Device is present:
Has Power
timer event (19999 us): Debounce Timer, this = 20002E00, timer = 20003118
ports in use bitmask = 10
getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=4
state=6
Device is present:
Has Power
HUB Callback (member)
status = 2
getstatus, port = 1
USBHub control callback
03 05 10 00
New Port Status
status=100503 port=1
state=7
Device is present:
Enabled, speed = 480 Mbit/sec
Has Power
USBHub control callback
unhandled setup, message = 140123
timer event (19999 us): Debounce Timer, this = 20002E00, timer = 20003118
ports in use bitmask = 10
getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=4
state=6
Device is present:
Has Power
timer event (24999 us): Hello, I'm resettimer, this = 20002E00, timer = 20003134
port_doing_reset = 1
PORT_RECOVERY
new_Device: 480 Mbit/sec
new_Pipe
enumeration:
enumeration:
enumeration:
Device Descriptor:
12 01 10 02 00 00 00 40 80 00 01 A0 03 02 01 02 03 01
VendorID = 0080, ProductID = A001, Version = 0203
Class/Subclass/Protocol = 0 / 0 / 0
Number of Configurations = 1
enumeration:
enumeration:
Manufacturer: TOSHIBA
enumeration:
Product: External USB 3.0
enumeration:
Serial Number: 201503310007F
timer event (19998 us): Debounce Timer, this = 20002E00, timer = 20003118
ports in use bitmask = 10
getstatus, port = 4
enumeration:
Config data length = 85
USBHub control callback
01 01 00 00
New Port Status
status=101 port=4
state=6
Device is present:
Has Power
enumeration:
Configuration Descriptor:
09 02 55 00 01 01 00 80 FA
NumInterfaces = 1
ConfigurationValue = 1
09 04 00 00 02 08 06 50 00
Interface = 0
Number of endpoints = 2
Class/Subclass/Protocol = 8(Mass Storage) / 6(SCSI) / 80(Bulk Only)
07 05 81 02 00 02 00
Endpoint = 1 IN
Type = Bulk
Max Size = 512
Polling Interval = 0
07 05 02 02 00 02 00
Endpoint = 2 OUT
Type = Bulk
Max Size = 512
Polling Interval = 0
09 04 00 01 04 08 06 62 00
Interface = 0
Number of endpoints = 4
Class/Subclass/Protocol = 8(Mass Storage) / 6(SCSI) / 98(UAS)
07 05 01 02 00 02 00
Endpoint = 1 OUT
Type = Bulk
Max Size = 512
Polling Interval = 0
04 24 01 00
07 05 82 02 00 02 00
Endpoint = 2 IN
Type = Bulk
Max Size = 512
Polling Interval = 0
04 24 02 00
07 05 83 02 00 02 00
Endpoint = 3 IN
Type = Bulk
Max Size = 512
Polling Interval = 0
04 24 03 00
07 05 04 02 00 02 00
Endpoint = 4 OUT
Type = Bulk
Max Size = 512
Polling Interval = 0
04 24 04 00
enumeration:
USBHub memory usage = 960
USBHub claim_device this=20002A20
Descriptor 4 = INTERFACE
Descriptor 5 = ENDPOINT
Descriptor 5 = ENDPOINT
Descriptor 4 = INTERFACE
Descriptor 5 = ENDPOINT
Descriptor 36 = ???
Descriptor 5 = ENDPOINT
Descriptor 36 = ???
Descriptor 5 = ENDPOINT
Descriptor 36 = ???
Descriptor 5 = ENDPOINT
Descriptor 36 = ???
timer event (19998 us): Debounce Timer, this = 20002E00, timer = 20003118
ports in use bitmask = 10
getstatus, port = 4
USBHub control callback
01 01 00 00
New Port Status
status=101 port=4
state=6
Device is present:
Has Power
sending reset
send_setreset
USBHub control callback
unhandled setup, message = 40323
timer event (19999 us): Debounce Timer, this = 20002E00, timer = 20003118
ports in use bitmask = 0
HUB Callback (member)
status = 10
getstatus, port = 4
USBHub control callback
03 05 10 00
New Port Status
status=100503 port=4
state=7
Device is present:
Enabled, speed = 480 Mbit/sec
Has Power
USBHub control callback
unhandled setup, message = 140123
timer event (24999 us): Hello, I'm resettimer, this = 20002E00, timer = 20003134
port_doing_reset = 4
PORT_RECOVERY
new_Device: 480 Mbit/sec
new_Pipe
enumeration:
enumeration:
enumeration:
Device Descriptor:
12 01 00 02 FF FF 00 40 95 0B 2B 77 01 00 01 02 03 01
VendorID = 0B95, ProductID = 772B, Version = 0001
Class/Subclass/Protocol = 255 / 255 / 0
Number of Configurations = 1
enumeration:
enumeration:
Manufacturer: ASIX Elec. Corp.
enumeration:
Product: AX88772B
enumeration:
Serial Number: E225AB
enumeration:
Config data length = 39
enumeration:
Configuration Descriptor:
09 02 27 00 01 01 04 A0 64
NumInterfaces = 1
ConfigurationValue = 1
09 04 00 00 03 FF FF 00 07
Interface = 0
Number of endpoints = 3
Class/Subclass/Protocol = 255 / 255 / 0
07 05 81 03 08 00 0B
Endpoint = 1 IN
Type = Interrupt
Max Size = 8
Polling Interval = 11
07 05 82 02 00 02 00
Endpoint = 2 IN
Type = Bulk
Max Size = 512
Polling Interval = 0
07 05 03 02 00 02 00
Endpoint = 3 OUT
Type = Bulk
Max Size = 512
Polling Interval = 0
enumeration:
USBHub memory usage = 960
USBHub claim_device this=20002A20
Descriptor 4 = INTERFACE
ASIXEthernet claim this=200031E0
type=1
vid=B95, pid=772B, bDeviceClass = 255, bDeviceSubClass = 255, bDeviceProtocol = 0
numEndpoints=3
interrupt_size = 8
interrupt_ep = 129
interrupt_interval = 11
rx_size = 512
rx_ep = 130
rx_interval = 0
tx_size = 512
tx_ep = 3
tx_interval = 0
new_Pipe
new_Pipe
new_Pipe
allocate_interrupt_pipe_bandwidth
ep interval = 11
interval = 256
best_bandwidth = 3, at offset = 1
Control - ASIX...
Descriptor 5 = ENDPOINT
Descriptor 5 = ENDPOINT
Descriptor 5 = ENDPOINT
control callback (asix) 1
Done
control callback (asix) 2
Done
control callback (asix) 3
nodeID: 00 50 B6 E2 25 AB
control callback (asix) 4
Done
control callback (asix) 5
Done
control callback (asix) 6
Done
control callback (asix) 7
Done
control callback (asix) 8
Done
control callback (asix) 9
Done
control callback (asix) 10
Done
control callback (asix) 11
Done
control callback (asix) 12
Done
control callback (asix) 13
Done
control callback (asix) 14
Done
control callback (asix) 15
Done
control callback (asix) 16
Done
Looped: 6291783 LoopedUSB: 5660 LinkSpeed: 10BASE
control callback (asix) 17
Done
control callback (asix) 18
Done
control callback (asix) 19
Done
control callback (asix) 20
Done
control callback (asix) 21
Done
control callback (asix) 22
Done
control callback (asix) 23
Done
control callback (asix) 24
Done
control callback (asix) 25
Done
control callback (asix) 26
Done
control callback (asix) 27
Done
control callback (asix) 28
Done
control callback (asix) 29
Done
control callback (asix) 30
Done
control callback (asix) 31
Done
control callback (asix) 32
Done
control callback (asix) 33
Done
control callback (asix) 34
Done
control callback (asix) 35
Done
control callback (asix) 36
Done
control callback (asix) 37
Done
control callback (asix) 38
Done
control callback (asix) 39
Done
control callback (asix) 40
Done
control callback (asix) 41
Done
control callback (asix) 42
Done
control callback (asix) 43
Done
control callback (asix) 44
Done
control callback (asix) 45
Done
control callback (asix) 46
Done
control callback (asix) 47
Done
control callback (asix) 255
Looped: 8555960 LoopedUSB: 3507 LinkSpeed: 10BASE
control callback (asix) 49
Done
control callback (asix) 50
Done
control callback (asix) 51
Done
control callback (asix) 52
Done
control callback (asix) 53
Done
control callback (asix) 54
Done
control callback (asix) 55
Done
control callback (asix) 56
Done
control callback (asix) 57
Done
control callback (asix) 58
Done
control callback (asix) 59
Done
control callback (asix) 60
Done
control callback (asix) 61
Done
control callback (asix) 62
Done
control callback (asix) 63
Done
control callback (asix) 64
Done
control callback (asix) 65
Done
control callback (asix) 254
Mutex initialized: 0
Mutex initialized: 1
TCP/IP stack initialization is done.
SetMACAddress: 0050B6BE8BB4
MulticastJoin: 333300000001
MulticastTable:
0
0
10000000
0
0
0
0
0
MulticastJoin: 3333FFE225AB
MulticastTable:
0
0
10000000
0
0
0
0
100000
netif Initialized
Initializing DHCP
DHCP initialization done!
IPAddress: 0.0.0.0
SubnetMask: 0.0.0.0
Gateway: 0.0.0.0
DHCPServer: 0.0.0.0
State: 2
control callback (asix) 254
control callback (asix) 254
Looped: 8524003 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
IPAddress: 192.168.0.12
SubnetMask: 255.255.255.0
Gateway: 192.168.0.1
DHCPServer: 192.168.0.1
State: 5
Looped: 8296878 LoopedUSB: 3486 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295226 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295216 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295874 LoopedUSB: 3486 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295223 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295227 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295854 LoopedUSB: 3486 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295157 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295116 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295926 LoopedUSB: 3486 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295223 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295228 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295926 LoopedUSB: 3486 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295226 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295223 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295930 LoopedUSB: 3486 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295231 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295228 LoopedUSB: 3507 FNETMemFree: 64656 LinkSpeed: 100BASE
Looped: 8295918 LoopedUSB: 3486 FNETMemFree: 64656 LinkSpeed: 100BASE