USB Clinic
AT43DK370 USB Host/Function Dev. Kit User Guide
4-9
3423C–USB–1/04
4.7.5
Control Transfer
The Control command performs transfers to the control endpoint of the device. The
user has to enter the Device Address of the device, the Control Endpoint, the least sig-
nificant 4 bytes of the 8-byte setup data in the Setup Hi field, the most significant 4 bytes
of the 8-byte setup data in Setup Lo field, the Data Stage field, and the Buffer Size allo-
cated for this operation. For more information using this command, please refer to the
section “ControlTransfer() API” in the “AT43USB370 Software Development Guide for
Host Mode”.
4.7.6
Custom Transfer
The Custom Transfer command allows users to customize their own transfer type. It
supports all transfer types endpoints (Isochronous, Interrupt, Bulk and Control). The
user has to enter the Device Address of the device, the Endpoint intended, the Packet
Type (see Table 4-3), Data Toggle (see Table 4-4), the number of Retries allowed, the
number of NAKs allowed, the ISO Packet Size if ISO endpoint is used, and the Buffer
Size allocated for this operation. For more details on how to use the Custom Transfer
command, please refer to the section “USBP_H_CustomTransfer() API” of the
“AT43USB370 Software Development Guide for Host Mode”.
Table 4-2.
Data Stage
Data Stage
Value
Description
DATA_STAGE_NULL
0x00
Setup stage will be followed by the status stage.
DATA_STAGE_IN
0x01
Data stage following the setup stage will be in the IN
direction. The data will be received from the device.
DATA_STAGE_OUT
0x02
Data stage following the setup stage will be in the OUT
direction. The data will be sent to the device.
Table 4-3.
Packet Types
Packet Type
Value
PACKET_OUT
0x00
PACKET_IN
0x01
PACKET_SETUP
0x02
Table 4-4.
Data Toggle
Data Toggle
Value
DATA_TOGGLE_0
0x00
DATA_TOGGLE_1
0x01
Summary of Contents for AT43DK370
Page 1: ...AT43DK370 USB Host Function Development Kit User Guide for Revision 1 3...
Page 2: ......
Page 6: ...Table of Contents iv AT43DK370 USB Host Function Dev Kit User Guide 3423C USB 1 04...
Page 8: ...Introduction 1 2 AT43DK370 USB Host Function Dev Kit User Guide 3423C USB 1 04...
Page 46: ...Technical Support 8 2 AT43DK370 USB Host Function Dev Kit User Guide 3423C USB 1 04...
Page 56: ...Appendices 9 10 AT43DK370 USB Host Function Dev Kit User Guide 3423C USB 1 04...