NO:
W90P710 Programming Guide
VERSION:
2.1
PAGE:
80
The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed,
distributed or reproduced without permission from Winbond.
Table No.: 1200-0003-07-A
6.5.4 Add/Remove Transfer Descriptors
The diagram of
Endpoint Descriptor
list linked with
Transfer Descriptor
queue is shown inFigure
10-1. The
Transfer Descriptor
queue of an
ED
is linked by its
HeadP
and
TailP
field.
According to OpenHCI specification, if
HeadP
is equal to
TailP
, then the
TD
queue is configured
as empty. In Figure 10-2, the
HeadP
and
TailP
pointer of last
ED
has pointed to the same
Transfer
Descriptor
, that is, the
TD
queue of this
ED
is empty. The
TD
there under the
ED
is a dummy
TD
.
While creating a new
ED
,
HCD
must also create a dummy
TD
for it, and let both
HeadP
and
TailP
pointer point to this dummy
TD
.
To add a new
TD
into the
TD
queue,
HCD
can use the dummy
TD
.
HCD
writes information and
data buffer link to the dummy
TD
, and creates a new dummy
TD
. This can be accomplished by the
following steps :
1. Writing
TD
information and data buffer link to the current dummy
TD
2. Creating a new dummy
TD
3. Let the
NextTD
of the current
TD
point to the new dummy
TD
4. Let TailP of
ED
point to the new dummy
TD
Figure 6-5 ED list and TD queue