8 udphs endpoint configuration register – Rainbow Electronics AT91CAP9S250A User Manual
Page 887
887
6264A–CAP–21-May-07
AT91CAP9S500A/AT91CAP9S250A
44.5.8
UDPHS Endpoint Configuration Register
Name:
UDPHS_EPTCFGx [x=0..
7
]
Access Type: Read/Write
• EPT_SIZE: Endpoint Size
Read and write:
Set this field according to the endpoint size in bytes (see
Section 44.4.5 ”Endpoint Configuration”
).
Endpoint Size
Note:
1. 1024 bytes is only for isochronous endpoint.
• EPT_DIR: Endpoint Direction
Read and write:
0 = Clear this bit to configure OUT direction for Bulk, Interrupt and Isochronous endpoints.
1 = set this bit to configure IN direction for Bulk, Interrupt and Isochronous endpoints.
For Control endpoints this bit has no effect and should be left at zero.
• EPT_TYPE: Endpoint Type
Read and write:
Set this field according to the endpoint type (see
Section 44.4.5 ”Endpoint Configuration”
(Endpoint 0 should always be configured as control)
31
30
29
28
27
26
25
24
EPT_MAPD
–
–
–
–
–
–
–
23
22
21
20
19
18
17
16
–
–
–
–
–
–
–
–
15
14
13
12
11
10
9
8
–
–
–
–
–
–
NB_TRANS
7
6
5
4
3
2
1
0
BK_NUMBER
EPT_TYPE
EPT_DIR
EPT_SIZE
000
8 bytes
001
16 bytes
010
32 bytes
011
64 bytes
100
128 bytes
101
256 bytes
110
512 bytes
111
1024 bytes