![](http://datasheet.mmic.net.cn/310000/STIR4200S_datasheet_16288576/STIR4200S_7.png)
3-4200-D1-2.0-0403
7
STIr4200
USB/IrDA Bridge Controller
O F F I C I A L P R O D U C T D O C U M E N T A T I O N
4.2.
USB Interface
The USB interface to the host controller includes a Control endpoint, a Bulk-In end-
point, and a Bulk-Out endpoint. The USB controller supports the USB 1.1 specifica-
tion. Hence, it supports all standard functionality associated with device
enumeration, standard USB device requests, etc. In addition, there is a set of ven-
dor specific commands provided to allow a USB driver to access registers in the
Digital IR Transceiver and ROM in the USB controller.
Note: The STIr4200 device conforms to all of the USB 1.1 specifications with one
exception of the "get_interface" command. This command is used only during USB
conformance testing, and during that testing, improper operation will be noted on
test results. However, the software drivers provided by SigmaTel, Inc. do NOT use
that command at all, and this does NOT cause any problem of any kind in operation.
A waiver for this command has been obtained from USBIF by SigmaTel, Inc. This
command is not used by the software, and therefore has no effect on device and
system operation. The only time this "get_interface" command is even accessed is
during USB conformance testing.
4.3.
Vendor-Specific Device Requests
4.3.1.
Write Multiple Registers
The write multiple registers vendor specific command allows the user to write multi-
ple sequential registers to the Digital IR Transceiver. Each register is one byte wide,
so the command indicates first register to write, the number of registers to write, and
the data phase supplies the data for those registers.
4.3.2.
Write One Register
The write one register vendor specific command allows the user to write a single
register to the Digital IR Transceiver.
Offset
Field
Size
Value (hex)
Description
0
1
2
4
6
bmRequestType 1
Brequest
Wvalue
Windex
Wlength
Data phase
0x40
0x00
Not used (0x0000)
0x0001
–
0x000f
0x0001
–
0x000f
1-15 bytes of Register Data
Table 4. Write Multiple Registers
Host to device, vendor type, device recipient
Write multiple registers
1
2
2
2
First register to write
Number of registers to write
Offset
Field
Size
Value (hex)
Description
0
1
2
4
6
bmRequestType 1
Brequest
Wvalue
Windex
Wlength
0x40
0x03
LSB contains data The data to write the register
0x0001
–
0x000f
Register to write
Not used (0x0000)
Table 5. Write One Register
Host to device, vendor type, device recipient
Write one register
1
2
2
2