English
Language : 

XR22802 Datasheet, PDF (18/46 Pages) Exar Corporation – Hi-Speed USB to 10/100 Ethernet Bridge
XR22802
Table 4: Supported USB Control Commands
Name
Request
Type
Request
Value
LSB MSB
Index
LSB
MSB
CDC_ECM_IF_
0x21
0x40
Num- Num- 0x0
0x0
SET_ETH_MCAST_FIL-
ber ber
TERS
(N) of (N) of
filters filters
LSB MSB
CDC_ECM_IF_
0x21
0x43
*Bit- *Bit- 0x0
0x0
SET_ETH_PACKET_-
map map
FILTERS
LSB MSB
CDC_ECM_IF_
0xA1
0x44
Selec 0x0 0x0
0x0
GET_ETH_STATISTIC
tor
USB Vendor Specific Requests
XR_GET_CHIP_ID
0xC0
0xFF
0x0 0x0 0x0
0x0
XR_SET_REG
See Table 5
XR_GET_REG
See Table 5
0x40
0x5
0xC0
0x5
write-
data
LSB
write-
data
MSB
write
addr
0x0
0x0
0x0
read
addr
0x0
Length
LSB
N*6
LSB
MSB
N*6
MSB
Description
0x0 0x0 See Bitmap definition in
note 1 below
0x4 0x0 See Selector definition in
note 2 below
Get Exar VID (2 bytes),
0x6 0x0 PID (2 bytes) and bcdDe-
vice (2 bytes)
0x0
0x0
Vendor specific register
access.
0x2
0x0
Vendor specific register
access.
Note 1: SET_ETH_PACKET_FILTERS Bitmap definition:
D15..D5: reserved
D4: MULTICAST If 1, packets with multicast addresses set by SetEthernetMulticastFilter are forwarded to the host. 0 = Disabled.
D3: BROADCAST If 1, broadcast packets are forwarded to the host. 0 = Disabled.
D2: DIRECTED If 1, unicast packets with a matching address are forwarded to the host. 0 = Disabled.
D1: ALL_MULTICAST If 1, all multicast packets are forwarded to the host. 0 = Disabled.
D0: PROMISCUOUS If 1, all packets are forwarded to the host, regardless of address. 0 = Disbled.
Note 2: SET_ETH_PACKET_FILTERS Selector definition:
0x01 = XMIT_OK
0x02 = RCV_OK
0x03 = XMIT_ERROR
0x04 = RCV_ERROR
0x05 = RCV_NO_BUFFER
0x0d = DIRECTED_FRAME_RCV
0x0f = MULTICAST_FRAME_RCV
0x11 = BROADCAST_FRAME_RCV
0x12 = RCV_CRC_ERROR
0x13 = XMIT_QUEUE_LENGTH
0x14 = RCV_ERR_ALIGNMENT
0x19 = RCV_OVERRUN
© 2015 Exar Corporation
18 / 46
exar.com/XR22802
Rev 1B